public class DefaultMoveAnchorFeature extends AbstractFeature implements IMoveAnchorFeature
| Constructor and Description |
|---|
DefaultMoveAnchorFeature(IFeatureProvider fp)
Creates a new
DefaultMoveAnchorFeature. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExecute(IContext context)
Decides if the current feature can execute with the given context.
|
boolean |
canMoveAnchor(IMoveAnchorContext context)
Can move anchor.
|
void |
execute(IContext context)
Executes the current feature with the given context.
|
java.lang.String |
getName()
Gets the name.
|
void |
moveAnchor(IMoveAnchorContext context)
Move anchor.
|
void |
postMoveAnchor(IMoveAnchorContext context)
Post move anchor.
|
void |
preMoveAnchor(IMoveAnchorContext context)
Pre move anchor.
|
canUndo, getDescription, getFeatureProvider, hasDoneChanges, isAvailable, manageFont, manageFont, setProgressCallback, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcanUndo, hasDoneChanges, isAvailablegetDescriptiongetFeatureProviderpublic DefaultMoveAnchorFeature(IFeatureProvider fp)
DefaultMoveAnchorFeature.fp - the feature providerpublic boolean canMoveAnchor(IMoveAnchorContext context)
IMoveAnchorFeaturecanMoveAnchor in interface IMoveAnchorFeaturecontext - the contextpublic void moveAnchor(IMoveAnchorContext context)
IMoveAnchorFeaturemoveAnchor in interface IMoveAnchorFeaturecontext - the contextpublic void preMoveAnchor(IMoveAnchorContext context)
IMoveAnchorFeaturepreMoveAnchor in interface IMoveAnchorFeaturecontext - the contextpublic void postMoveAnchor(IMoveAnchorContext context)
IMoveAnchorFeaturepostMoveAnchor in interface IMoveAnchorFeaturecontext - the contextpublic boolean canExecute(IContext context)
IFeaturecanExecute in interface IFeaturecontext - this is the general input for this methodIContextpublic void execute(IContext context)
IFeaturepublic java.lang.String getName()
INamegetName in interface INamegetName in class AbstractFeature