|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.commands.Command
roneditor.objectnetview.commands.CreateONArcCommand
public class CreateONArcCommand
Command class for a ONArc-Connection. Connects a ONNode with a other ONNode via a onARC.
Field Summary | |
---|---|
private static java.lang.String |
ConnectionCommand_Description
|
private static java.lang.String |
ConnectionCommand_Label
|
protected ronmodel.ONArc |
onArc
|
protected ronmodel.ONNode |
source
|
protected int |
sourceAnchorID
|
protected ronmodel.ONNode |
target
|
protected int |
targetAnchorID
|
protected int |
weight
|
Constructor Summary | |
---|---|
CreateONArcCommand()
Constructor. |
Method Summary | |
---|---|
boolean |
canExecute()
|
void |
execute()
Entry point for the command execution. |
java.lang.String |
getLabel()
Returns the command label. |
ronmodel.ONArc |
getONArc()
|
ronmodel.ONNode |
getSource()
|
int |
getSourceAnchorID()
|
ronmodel.ONNode |
getTarget()
|
int |
getTargetAnchorID()
|
int |
getWeight()
|
void |
redo()
Redo command execution. |
void |
setONArc(ronmodel.ONArc onArc)
|
void |
setSource(ronmodel.ONNode source)
|
void |
setSourceAnchorID(int sourceAnchorID)
|
void |
setTarget(ronmodel.ONNode target)
|
void |
setTargetAnchorID(int targetAnchorID)
|
void |
setWeight(int weight)
|
void |
undo()
Undo command execution. |
Methods inherited from class org.eclipse.gef.commands.Command |
---|
canUndo, chain, dispose, getDebugLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String ConnectionCommand_Label
private static final java.lang.String ConnectionCommand_Description
protected ronmodel.ONNode source
protected ronmodel.ONNode target
protected ronmodel.ONArc onArc
protected int weight
protected int sourceAnchorID
protected int targetAnchorID
Constructor Detail |
---|
public CreateONArcCommand()
Method Detail |
---|
public boolean canExecute()
canExecute
in class org.eclipse.gef.commands.Command
ONPlace
-> ONTransition
oder ONTransition
-> ONPlace
).
false sonstpublic void execute()
ONArc
wird im ObjectNet
zwischen
ein ONPlace
und ONTransition
eingefügt
execute
in class org.eclipse.gef.commands.Command
public java.lang.String getLabel()
getLabel
in class org.eclipse.gef.commands.Command
public void redo()
redo
in class org.eclipse.gef.commands.Command
public void undo()
undo
in class org.eclipse.gef.commands.Command
public void setONArc(ronmodel.ONArc onArc)
public void setSource(ronmodel.ONNode source)
public void setTarget(ronmodel.ONNode target)
public void setWeight(int weight)
public ronmodel.ONArc getONArc()
public ronmodel.ONNode getSource()
public ronmodel.ONNode getTarget()
public int getWeight()
public int getSourceAnchorID()
public void setSourceAnchorID(int sourceAnchorID)
public int getTargetAnchorID()
public void setTargetAnchorID(int targetAnchorID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |