|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.gef.commands.Command uk.ac.kcl.cch.jb.pliny.commands.CreateAnchorCommand
Creates a new anchor in a Pliny reference or annotation area.
It is invoked from a GEF policy
ScalableImageXYLayoutEditPolicy.getCreateCommand(org.eclipse.gef.requests.CreateRequest)
Constructor Summary | |
CreateAnchorCommand(Resource resource,
org.eclipse.draw2d.geometry.Rectangle bounds)
creates a new anchor (a kind of LinkableObject )
in the reference/annotation area associated with a
Resource . |
Method Summary | |
void |
execute()
|
void |
undo()
|
Methods inherited from class org.eclipse.gef.commands.Command |
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CreateAnchorCommand(Resource resource, org.eclipse.draw2d.geometry.Rectangle bounds)
LinkableObject
)
in the reference/annotation area associated with a
Resource
. This is done
by setting the display area to the given bounds. Anchors are
LinkableObjects that don't have a SurrogateFor set.
resource
- Resource to be owner of the new anchorbounds
- area where the bounds are to appear.Method Detail |
public void execute()
public void undo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |