public class SetSourceCommand extends SetEndPointCommand
edge, location, nail
commandManager, committed
version
Constructor and Description |
---|
SetSourceCommand(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, swap
cancel, commit, execute, move, undo
getVersion, setVersion
public SetSourceCommand(CommandManager commandManager, Edge edge)
commandManager
- - The command manageredge
- - The edgepublic AbstractLocation getLocation()
SetEndPointCommand
getLocation
in class SetEndPointCommand
protected void setLocation(AbstractLocation location)
SetEndPointCommand
setLocation
in class SetEndPointCommand
location
- - The set locationprotected void insertNail(Nail nail)
SetEndPointCommand
insertNail
in class SetEndPointCommand
nail
- - The nail objectCopyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.