public class FXTransformOperation extends AbstractOperation
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. |
FXTransformOperation(javafx.scene.transform.Affine nodeTransform,
javafx.scene.transform.Affine oldTransform,
javafx.scene.transform.Affine newTransform)
Constructs a new
FXTransformOperation to change the given
nodeTransform. |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
equals(javafx.scene.transform.Affine a1,
javafx.scene.transform.Affine a2)
Returns
true if the given Affines are equal. |
IStatus |
execute(IProgressMonitor monitor,
IAdaptable info) |
javafx.scene.transform.Affine |
getNewTransform()
Returns the
Affine that will be applied to the
nodeTransform upon execution of this operation. |
javafx.scene.transform.Affine |
getOldTransform()
Returns the
Affine that will be applied to the
nodeTransform upon undoing of this operation. |
boolean |
hasEffect()
Returns
true if the execution of this operation will result
in changes. |
IStatus |
redo(IProgressMonitor monitor,
IAdaptable info) |
protected static javafx.scene.transform.Affine |
setAffine(javafx.scene.transform.Affine dst,
javafx.scene.transform.Affine src)
Assigns the transformation values of the src
Affine to the
dst Affine. |
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. |
void |
setOldTransform(javafx.scene.transform.Affine oldTransform)
Sets the
Affine that will be applied to the nodeTransform
upon undoing of this operation to the given value. |
IStatus |
undo(IProgressMonitor monitor,
IAdaptable info) |
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext, setLabel, toStringpublic 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 FXTransformOperation(javafx.scene.transform.Affine nodeTransform,
javafx.scene.transform.Affine oldTransform,
javafx.scene.transform.Affine newTransform)
FXTransformOperation to change the given
nodeTransform. The given oldTransform will be applied to
the nodeTransform upon undoing of this operation. The given
newTransform will be applied to the nodeTransform upon
execution of this operation.nodeTransform - The Affine that will be changed by this operation.oldTransform - The Affine that will be applied to the
nodeTransform upon undoing of this operation.newTransform - The Affine that will be applied to the
nodeTransform upon execution of this operation.protected static boolean equals(javafx.scene.transform.Affine a1,
javafx.scene.transform.Affine a2)
true if the given Affines are equal.
Otherwise returns false.a1 - The first operand.a2 - The second operand.true if the given Affines are equal,
otherwise false.protected static javafx.scene.transform.Affine setAffine(javafx.scene.transform.Affine dst,
javafx.scene.transform.Affine src)
Affine to the
dst Affine.dst - The destination Affine.src - The source Affine.Affine for convenience.public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
execute in interface IUndoableOperationexecute in class AbstractOperationExecutionExceptionpublic 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 javafx.scene.transform.Affine getOldTransform()
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 boolean hasEffect()
true if the execution of this operation will result
in changes. Otherwise returns false.true if the execution of this operation will result
in changes, otherwise false.public IStatus redo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
redo in interface IUndoableOperationredo in class AbstractOperationExecutionExceptionpublic 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 void setOldTransform(javafx.scene.transform.Affine oldTransform)
Affine that will be applied to the nodeTransform
upon undoing of this operation to the given value.oldTransform - The Affine that will be applied upon undoing of this
operation.public IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
undo in interface IUndoableOperationundo in class AbstractOperationExecutionExceptionCopyright (c) 2014 itemis AG and others. All rights reserved.