public class FXTransformOperation extends AbstractOperation implements ITransactionalOperation
FXTransformOperation
can be used to change an Affine
, for
example, one that is contained within the transformations list of a
Node
to transform that Node
.Constructor and Description |
---|
FXTransformOperation(javafx.scene.transform.Affine nodeTransform)
Constructs a new
FXTransformOperation to change the given
nodeTransform. |
FXTransformOperation(javafx.scene.transform.Affine nodeTransform,
javafx.scene.transform.Affine newTransform)
Constructs a new
FXTransformOperation to change the given
nodeTransform. |
Modifier and Type | Method and Description |
---|---|
IStatus |
execute(IProgressMonitor monitor,
IAdaptable info) |
javafx.scene.transform.Affine |
getInitialTransform()
Returns the
Affine that will be applied to the
nodeTransform upon undoing of this operation. |
javafx.scene.transform.Affine |
getNewTransform()
Returns the
Affine that will be applied to the
nodeTransform upon execution of this operation. |
boolean |
isContentRelevant()
Returns
true if this ITransactionalOperation is
actually changing model data (instead of only affecting the
visualization). |
boolean |
isNoOp()
Returns
true if this ITransactionalOperation has no
effect (in comparison to its initial state). |
IStatus |
redo(IProgressMonitor monitor,
IAdaptable info) |
void |
setNewTransform(javafx.scene.transform.Affine newTransform)
Sets the
Affine that will be applied to the nodeTransform
upon execution of this operation to the given value. |
IStatus |
undo(IProgressMonitor monitor,
IAdaptable info) |
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext, setLabel, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext
public FXTransformOperation(javafx.scene.transform.Affine nodeTransform)
FXTransformOperation
to change the given
nodeTransform.nodeTransform
- The Affine
that will be changed by this operation.public FXTransformOperation(javafx.scene.transform.Affine nodeTransform, javafx.scene.transform.Affine newTransform)
FXTransformOperation
to change the given
nodeTransform. The given newTransform will be applied to
the nodeTransform upon execution of this operation.nodeTransform
- The Affine
that will be changed by this operation.newTransform
- The Affine
that will be applied to the
nodeTransform upon execution of this operation.public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
execute
in interface IUndoableOperation
execute
in class AbstractOperation
ExecutionException
public javafx.scene.transform.Affine getInitialTransform()
Affine
that will be applied to the
nodeTransform upon undoing of this operation.Affine
that will be applied to the
nodeTransform upon undoing of this operation.public javafx.scene.transform.Affine getNewTransform()
Affine
that will be applied to the
nodeTransform upon execution of this operation.Affine
that will be applied to the
nodeTransform upon execution of this operation.public boolean isContentRelevant()
ITransactionalOperation
true
if this ITransactionalOperation
is
actually changing model data (instead of only affecting the
visualization). Otherwise returns false
. The content
relevancy of an ITransactionalOperation
can be checked to
determine if the execution of the operation will affect the model, for
example, to set an editor's dirty flag.isContentRelevant
in interface ITransactionalOperation
true
if this ITransactionalOperation
is
actually changing model data, otherwise false
.public boolean isNoOp()
ITransactionalOperation
true
if this ITransactionalOperation
has no
effect (in comparison to its initial state). Otherwise returns
false
.isNoOp
in interface ITransactionalOperation
true
if this ITransactionalOperation
has no
effect, otherwise false
.public IStatus redo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
redo
in interface IUndoableOperation
redo
in class AbstractOperation
ExecutionException
public void setNewTransform(javafx.scene.transform.Affine newTransform)
Affine
that will be applied to the nodeTransform
upon execution of this operation to the given value.newTransform
- The Affine
that will be applied upon execution of this
operation.public IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
undo
in interface IUndoableOperation
undo
in class AbstractOperation
ExecutionException
Copyright (c) 2014 itemis AG and others. All rights reserved.