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, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
canUndo, hasDoneChanges, isAvailable
getDescription
getFeatureProvider
public DefaultMoveAnchorFeature(IFeatureProvider fp)
DefaultMoveAnchorFeature
.fp
- the feature providerpublic boolean canMoveAnchor(IMoveAnchorContext context)
IMoveAnchorFeature
canMoveAnchor
in interface IMoveAnchorFeature
context
- the contextpublic void moveAnchor(IMoveAnchorContext context)
IMoveAnchorFeature
moveAnchor
in interface IMoveAnchorFeature
context
- the contextpublic void preMoveAnchor(IMoveAnchorContext context)
IMoveAnchorFeature
preMoveAnchor
in interface IMoveAnchorFeature
context
- the contextpublic void postMoveAnchor(IMoveAnchorContext context)
IMoveAnchorFeature
postMoveAnchor
in interface IMoveAnchorFeature
context
- the contextpublic boolean canExecute(IContext context)
IFeature
canExecute
in interface IFeature
context
- this is the general input for this methodIContext
public void execute(IContext context)
IFeature
public java.lang.String getName()
IName
getName
in interface IName
getName
in class AbstractFeature