public class FXResizeNodeOperation extends AbstractOperation
FXResizeNodeOperation can be used to alter the size of a
visual.| Constructor and Description |
|---|
FXResizeNodeOperation(javafx.scene.Node visual)
Constructs a new
FXResizeNodeOperation for the manipulation of
the given Node. |
FXResizeNodeOperation(javafx.scene.Node visual,
double dw,
double dh)
Constructs a new
FXResizeNodeOperation for the manipulation of
the given Node. |
FXResizeNodeOperation(java.lang.String label,
javafx.scene.Node visual,
Dimension oldSize,
double dw,
double dh)
Constructs a new
FXResizeNodeOperation from the given values. |
| Modifier and Type | Method and Description |
|---|---|
IStatus |
execute(IProgressMonitor monitor,
IAdaptable info) |
double |
getDh()
Returns the delta height that is applied when executing this operation.
|
double |
getDw()
Returns the delta width that is applied when executing this operation.
|
Dimension |
getOldSize()
Returns the dimensions that are applied when undoing this operation.
|
javafx.scene.Node |
getVisual()
Returns the
Node that is manipulated by this operation. |
boolean |
hasEffect()
Returns
true if the execution of this operation will result
in a manipulation. |
IStatus |
redo(IProgressMonitor monitor,
IAdaptable info) |
void |
setDh(double dh)
Sets the delta height that will be applied when executing this operation
to the given value.
|
void |
setDw(double dw)
Sets the delta width that will be applied when executing this operation
to the given value.
|
IStatus |
undo(IProgressMonitor monitor,
IAdaptable info) |
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext, setLabel, toStringpublic FXResizeNodeOperation(javafx.scene.Node visual)
FXResizeNodeOperation for the manipulation of
the given Node.visual - The Node that is manipulated by this operation.public FXResizeNodeOperation(javafx.scene.Node visual,
double dw,
double dh)
FXResizeNodeOperation for the manipulation of
the given Node. The given delta width and height will be applied
when executing this operation.visual - The Node that is manipulated by this operation.dw - The delta width that is applied when executing this operation.dh - The delta height that is applied when executing this
operation.public FXResizeNodeOperation(java.lang.String label,
javafx.scene.Node visual,
Dimension oldSize,
double dw,
double dh)
FXResizeNodeOperation from the given values.
Note that the oldLocation does include the layout-bounds minimum.label - Descriptive title for the operation.visual - The visual that is resized/relocated.oldSize - The old size of the visual.dw - The horizontal size difference.dh - The vertical size difference.public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
execute in interface IUndoableOperationexecute in class AbstractOperationExecutionExceptionpublic double getDh()
public double getDw()
public Dimension getOldSize()
public javafx.scene.Node getVisual()
Node that is manipulated by this operation.Node that is manipulated by this operation.public boolean hasEffect()
true if the execution of this operation will result
in a manipulation. Otherwise, false is returned.true if the execution of this operation will result
in a manipulation, otherwise false.public IStatus redo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
redo in interface IUndoableOperationredo in class AbstractOperationExecutionExceptionpublic void setDh(double dh)
dh - The delta height that will be applied when executing this
operation.public void setDw(double dw)
dw - The delta width that will be applied when executing 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.