|
|||||||||||
| 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
This abstract Command implementation is the base class for all commands
that deal with GraphDocument instances.
isEnabled(). The implementation for this method fits for most commands
that refer to a GraphDocument.
| Constructor Summary | |
GraphDocumentCommand(ApplicationFrame applicationFrame,
java.lang.String command)
Creates the GraphDocumentCommand. |
|
| Method Summary | |
protected GraphDocument |
getGraphDocument()
Returns the current document as GraphDocument, if it is one, otherwise null. |
VisualGraphView |
getVisualGraphView()
Returns the VisualGraphView of the currently active document.
|
boolean |
isEnabled()
(non-Javadoc) This method returns true if the currently active
Document is an instance of GraphDocument. |
| Methods inherited from class com.tensegrity.skeleton.commands.DocumentCommand |
getDocument, getGraphApplication, newGraphDocumentFromFactory |
| Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand |
getApplicationFrame, getTitle, perform |
| 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 |
| Constructor Detail |
public GraphDocumentCommand(ApplicationFrame applicationFrame,
java.lang.String command)
GraphDocumentCommand.
applicationFrame - Application context of this command.command - the ID of this command.| Method Detail |
public boolean isEnabled()
true if the currently active
Document is an instance of GraphDocument.
isEnabled in interface CommandisEnabled in class BaseCommandpublic VisualGraphView getVisualGraphView()
VisualGraphView of the currently active document.
This method returns null either when
DocumentCommand.getDocument() method returns null, or
the current document is not of type GraphDocument.
VisualGraphView of the current GraphDocument.protected GraphDocument getGraphDocument()
null.
null.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||