public class FXBendOperation extends AbstractOperation
FXBendOperation can be used to manipulate an FXConnection
in an undo-context.| Constructor and Description |
|---|
FXBendOperation(FXConnection connection)
Constructs a new operation from the given connection.
|
| Modifier and Type | Method and Description |
|---|---|
IStatus |
execute(IProgressMonitor monitor,
IAdaptable info) |
FXConnection |
getConnection()
Returns the
FXConnection which is manipulated by this operation. |
java.util.List<IFXAnchor> |
getNewAnchors()
Returns the list of
IFXAnchors which will replace the
connection's anchors upon execution. |
java.util.List<IFXAnchor> |
getOldAnchors()
Returns the list of
IFXAnchors which will replace the
connection's anchors upon undoing. |
boolean |
hasEffect()
Returns
true if this operation will result in any
manipulations. |
IStatus |
redo(IProgressMonitor monitor,
IAdaptable info) |
void |
setNewAnchors(java.util.List<IFXAnchor> newAnchors)
Sets the list of
IFXAnchors which will replace the connection's
anchors upon execution. |
java.lang.String |
toString() |
IStatus |
undo(IProgressMonitor monitor,
IAdaptable info) |
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext, setLabelpublic FXBendOperation(FXConnection connection)
IFXAnchors are initialized based on the connection.connection - The FXConnection which will be modified by this
operation.public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
execute in interface IUndoableOperationexecute in class AbstractOperationExecutionExceptionpublic FXConnection getConnection()
FXConnection which is manipulated by this operation.FXConnection which is manipulated by this operation.public java.util.List<IFXAnchor> getNewAnchors()
IFXAnchors which will replace the
connection's anchors upon execution.IFXAnchors which will replace the
connection's anchors upon execution.public java.util.List<IFXAnchor> getOldAnchors()
IFXAnchors which will replace the
connection's anchors upon undoing.IFXAnchors which will replace the
connection's anchors upon undoing.public boolean hasEffect()
true if this operation will result in any
manipulations. Otherwise returns false.true if this operation will result in any
manipulations, otherwise false.public IStatus redo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
redo in interface IUndoableOperationredo in class AbstractOperationExecutionExceptionpublic void setNewAnchors(java.util.List<IFXAnchor> newAnchors)
IFXAnchors which will replace the connection's
anchors upon execution.newAnchors - The list of IFXAnchors which will replace the
connection's anchors upon execution.public java.lang.String toString()
toString in class AbstractOperationpublic IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
undo in interface IUndoableOperationundo in class AbstractOperationExecutionExceptionCopyright (c) 2014 itemis AG and others. All rights reserved.