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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContextpublic 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 IUndoableOperationexecute in class AbstractOperationExecutionExceptionpublic 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()
ITransactionalOperationtrue 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 ITransactionalOperationtrue if this ITransactionalOperation is
actually changing model data, otherwise false.public boolean isNoOp()
ITransactionalOperationtrue if this ITransactionalOperation has no
effect (in comparison to its initial state). Otherwise returns
false.isNoOp in interface ITransactionalOperationtrue if this ITransactionalOperation has no
effect, 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 IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
undo in interface IUndoableOperationundo in class AbstractOperationExecutionExceptionCopyright (c) 2014 itemis AG and others. All rights reserved.