public class TransformVisualOperation extends AbstractOperation implements ITransactionalOperation
TransformVisualOperation 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 |
|---|
TransformVisualOperation(ITransformableContentPart<? extends javafx.scene.Node> transformablePart)
Constructs a new
TransformVisualOperation to change the given
nodeTransform. |
TransformVisualOperation(ITransformableContentPart<? extends javafx.scene.Node> transformablePart,
javafx.scene.transform.Affine newTransform)
Constructs a new
TransformVisualOperation to change the given
nodeTransform. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyTransform(javafx.scene.transform.Affine transform)
Sets the visual transformation to the given
Affine. |
IStatus |
execute(IProgressMonitor monitor,
IAdaptable info) |
javafx.scene.transform.Affine |
getInitialTransform()
Returns the initial
Affine of the
ITransformableContentPart. |
javafx.scene.transform.Affine |
getNewTransform()
Returns the
Affine that will be set as the transformation matrix
of the ITransformableContentPart. |
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 |
setFinalTransform(javafx.scene.transform.Affine newTransform)
Sets the
Affine that will be set as the transformation matrix of
the ITransformableContentPart. |
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 TransformVisualOperation(ITransformableContentPart<? extends javafx.scene.Node> transformablePart)
TransformVisualOperation to change the given
nodeTransform.transformablePart - The ITransformableContentPart that will be transformed
by this operation.public TransformVisualOperation(ITransformableContentPart<? extends javafx.scene.Node> transformablePart, javafx.scene.transform.Affine newTransform)
TransformVisualOperation to change the given
nodeTransform. The given newTransform will be applied to
the nodeTransform upon execution of this operation.transformablePart - The ITransformableContentPart that will be transformed
by this operation.newTransform - The Affine that will be set as the visual
transformation for the given ITransformableContentPart
upon execution of this operation.protected void applyTransform(javafx.scene.transform.Affine transform)
Affine.transform - The Affine that is to be set as the total visual
transformation for the ITransformableContentPart.public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
execute in interface IUndoableOperationexecute in class AbstractOperationExecutionExceptionpublic javafx.scene.transform.Affine getInitialTransform()
Affine of the
ITransformableContentPart.Affine of the
ITransformableContentPart.public javafx.scene.transform.Affine getNewTransform()
Affine that will be set as the transformation matrix
of the ITransformableContentPart.Affine that will be set as the transformation matrix
of the ITransformableContentPart.public boolean isContentRelevant()
ITransactionalOperationtrue if this ITransactionalOperation is
actually changing model data (instead of only affecting the
visualization). Otherwise returns false. The content
relevance 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 setFinalTransform(javafx.scene.transform.Affine newTransform)
Affine that will be set as the transformation matrix of
the ITransformableContentPart.newTransform - The Affine that will be set as the transformation
matrix of the ITransformableContentPart.public IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
undo in interface IUndoableOperationundo in class AbstractOperationExecutionExceptionCopyright (c) 2014, 2016 itemis AG and others. All rights reserved.