|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.command.BaseCommand
com.tensegrity.skeleton.commands.CommonBaseCommand
com.tensegrity.skeleton.commands.DocumentCommand
com.tensegrity.skeleton.commands.GraphDocumentCommand
com.tensegrity.skeleton.commands.ToggleConnectModeCommand
Toggles the modus so that you can create new visual edges by selecting two visual nodes. If not selected, the mouse works as selection tool.
| Constructor Summary | |
ToggleConnectModeCommand(ApplicationFrame appFrame,
java.lang.String command)
Creates a new ToggleConnectModeCommand based on the
given command id and ApplicationFrame context. |
|
| Method Summary | |
boolean |
isActive()
Returns true if the view is in Edge Creation Mode. |
boolean |
isEnabled()
Returns true if this command is enabled. |
void |
perform(java.lang.Object args)
This method will specify the functionality the command offers. |
protected void |
revalidateCancelable()
Register/unregister as cancelable |
| Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentCommand |
getGraphDocument, getVisualGraphView |
| Methods inherited from class com.tensegrity.skeleton.commands.DocumentCommand |
getDocument, getGraphApplication, newGraphDocumentFromFactory |
| Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand |
getApplicationFrame, getTitle |
| Methods inherited from class com.tensegrity.generic.command.BaseCommand |
getDescription, getId, getPerformDescription, setEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.tensegrity.generic.command.Command |
getDescription, getId, getPerformDescription, setEnabled |
| Constructor Detail |
public ToggleConnectModeCommand(ApplicationFrame appFrame,
java.lang.String command)
ToggleConnectModeCommand based on the
given command id and ApplicationFrame context.
appFrame - the ApplicationFrame context.command - the command id.| Method Detail |
public void perform(java.lang.Object args)
Command
perform in interface Commandperform in class CommonBaseCommandCommand.perform(java.lang.Object)protected void revalidateCancelable()
public boolean isActive()
true if the view is in Edge Creation Mode.
isActive in interface ToggleCommandtrue if the view is in Edge Creation Mode.public boolean isEnabled()
Commandtrue if this command is enabled.
isEnabled in interface CommandisEnabled in class GraphDocumentCommand
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||