public class SetTargetCommand extends SetEndPointCommand
edge, location, nailcommandManager, committedversion| Constructor and Description |
|---|
SetTargetCommand(CommandManager commandManager,
Edge edge)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
AbstractLocation |
getLocation()
Returns the current end point.
|
protected void |
insertNail(Nail nail)
Inserts a nail next to the end point.
|
protected void |
setLocation(AbstractLocation location)
Sets the current end point on the edge.
|
convertToNail, doCancel, doExecute, doUndo, getModifiedElement, moveNailTo, setEndPoint, swapcancel, commit, execute, move, undogetVersion, setVersionpublic SetTargetCommand(CommandManager commandManager, Edge edge)
commandManager - - The command manageredge - - The edgepublic AbstractLocation getLocation()
SetEndPointCommandgetLocation in class SetEndPointCommandprotected void setLocation(AbstractLocation location)
SetEndPointCommandsetLocation in class SetEndPointCommandlocation - - The set locationprotected void insertNail(Nail nail)
SetEndPointCommandinsertNail in class SetEndPointCommandnail - - The nail objectCopyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.