|
|||||||||||
| 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
This abstract base class is responsible for all document-related commands and provides useful utility methods callable by derived classes.
| Constructor Summary | |
DocumentCommand(ApplicationFrame applicationFrame,
java.lang.String command)
Creates the DocumentCommand. |
|
| Method Summary | |
protected Document |
getDocument()
The method getDocument returns the current active Document or null. |
protected GraphApplication |
getGraphApplication()
Returns the graph application this command is registered in ApplicationFrame instance. |
protected GraphDocument |
newGraphDocumentFromFactory(java.lang.String name,
GraphApplication graphapplication,
GraphController graphcontroller,
VisualGraphView visualgraphview)
This method invokes the newGraphDocument method in the document factory and can be overridden by subclasses to perform custom post-intialization work. |
| Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand |
getApplicationFrame, getTitle, perform |
| Methods inherited from class com.tensegrity.generic.command.BaseCommand |
getDescription, getId, getPerformDescription, isEnabled, setEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DocumentCommand(ApplicationFrame applicationFrame,
java.lang.String command)
DocumentCommand.
applicationFrame - Application context of this command.command - the ID of this command.| Method Detail |
protected Document getDocument()
null.
null.protected GraphApplication getGraphApplication()
ApplicationFrame instance.
protected GraphDocument newGraphDocumentFromFactory(java.lang.String name,
GraphApplication graphapplication,
GraphController graphcontroller,
VisualGraphView visualgraphview)
name - name of the document.graphapplication - reference to the application context.graphcontroller - the GraphController instance that keeps the
model.visualgraphview - the visualgraph instance to show in the document.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||