public class FXResizeNodeOperation extends AbstractOperation
| Constructor and Description |
|---|
FXResizeNodeOperation(javafx.scene.Node visual) |
FXResizeNodeOperation(javafx.scene.Node visual,
double dw,
double dh) |
FXResizeNodeOperation(java.lang.String label,
javafx.scene.Node visual,
Point oldLocation,
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() |
double |
getDw() |
Dimension |
getOldSize() |
javafx.scene.Node |
getVisual() |
IStatus |
redo(IProgressMonitor monitor,
IAdaptable info) |
void |
setDh(double dh) |
void |
setDw(double dw) |
IStatus |
undo(IProgressMonitor monitor,
IAdaptable info) |
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext, setLabel, toStringpublic FXResizeNodeOperation(javafx.scene.Node visual)
public FXResizeNodeOperation(javafx.scene.Node visual,
double dw,
double dh)
public FXResizeNodeOperation(java.lang.String label,
javafx.scene.Node visual,
Point oldLocation,
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.oldLocation - The old location of the visual (including layout-bounds
minimum).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()
public IStatus redo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
redo in interface IUndoableOperationredo in class AbstractOperationExecutionExceptionpublic void setDh(double dh)
public void setDw(double dw)
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.