|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.launch.LaunchTask
com.tensegrity.skeleton.swing.launch.AbstractLaunchTask
com.tensegrity.skeleton.swing.launch.CommandLaunchTask
A LaunchTask for creating all the required Command
instances for the application.
The run() method uses the Template Method Design Pattern
in order to make customization of this class easier. It delegates the Commands
creation to the following methods:
doToggleLeftColumnCommand()
doToggleRightColumnCommand()
Simply provide an empty implementation of these methods if you do not require the corresponding command.
| Field Summary |
| Fields inherited from class com.tensegrity.gui.launch.LaunchTask |
lasterror, LAUNCHTASKSTATUS_FATAL, LAUNCHTASKSTATUS_FATAL_RETRY, LAUNCHTASKSTATUS_SERIOUS, LAUNCHTASKSTATUS_SERIOUS_RETRY, LAUNCHTASKSTATUS_SHUTDOWN, LAUNCHTASKSTATUS_SUCCESS, LAUNCHTASKSTATUS_WARNING |
| Constructor Summary | |
CommandLaunchTask(ApplicationFrame applicationFrame)
Creates a new CommandLaunchTask by initializing the internal Commands instance. |
|
| Method Summary | |
protected boolean |
contains(java.lang.String lnfName)
This method checks whether a LookAndFeel has already been
installed. |
protected void |
doAboutCommand()
Creates the default AboutCommand Command. |
protected void |
doAlignCommands()
Creates alignment commands. |
protected void |
doCancelCommand()
This generic command should not be replaced |
protected void |
doCloneDocumentCommand()
Creates the default CloneDocumentCommand Command. |
protected void |
doCloseAllCommand()
Creates the default CloseAllCommand Command. |
protected void |
doCloseCommand()
Creates the default CloseCommand Command. |
protected void |
doCopyCommand()
Creates the default CopyCommand Command. |
protected void |
doCutCommand()
Creates the default CutCommand Command. |
protected void |
doDebugCommands()
Creates various commands useful for debug purpose. |
protected void |
doDeleteCommand()
Creates the default DeleteCommand Command. |
protected void |
doEnglishSwitchLanguageCommand()
Creates the default SwitchLanguageCommand (English) Command. |
protected void |
doFindCommand()
Creates the find command which is used to find elements and select them depending on some user defined information |
protected void |
doFitToViewportCommand()
Creates the default FitToViewportCommand Command. |
protected void |
doFloatCommand()
Creates the default doFloatCommand. |
protected void |
doGermanSwitchLanguageCommand()
Creates the default SwitchLanguageCommand (German) Command. |
protected void |
doGroupSelectionCommand()
Creates the default GroupSelectionCommand Command. |
protected void |
doHelpCommand()
Creates the default doHelpCommand Command. |
protected void |
doImportExportLayoutsCommands()
|
protected void |
doLoadStylesCommand()
Creates the default LoadStyles Command. |
protected void |
doLookAndFeelCommands()
Creates the default LookAndFeel Commands. |
protected void |
doNewDocumentCommand()
Creates the default NewDocumentCommand Command. |
protected void |
doOpenCommand()
Creates the default OpenCommand Command. |
protected void |
doPageSetupCommand()
Creates the default PageSetupCommand Command. |
protected void |
doPasteCommand()
Creates the default PasteCommand Command. |
protected void |
doPreferencesCommand()
Creates the default PreferencesCommand Command. |
protected void |
doPrintCommand()
Creates the default PrintCommand Command. |
protected void |
doPrintPreviewCommand()
Creates the default PrintPreviewCommand Command. |
protected void |
doQuitCommand()
Creates the default QuitCommand Command. |
protected void |
doRedoCommand()
Creates the default RedoCommand Command. |
protected void |
doSaveAsCommand()
Creates the default SaveAsCommand Command. |
protected void |
doSaveCommand()
Creates the default SaveCommand Command. |
protected void |
doSaveStylesCommand()
Creates the default SaveStyles Command. |
protected void |
doSelectAllCommand()
Creates the default SelectAllCommand Command. |
protected void |
doShapeFormatCommand()
Creates the default ShapeFormatCommand Command. |
protected void |
doStyleDialogCommand()
Creates the default StyleDialog Command. |
protected void |
doTableCommand()
Creates the default
command. |
protected void |
doToggleAutomaticLayoutCommand()
Creates the ToggleAutomaticLayoutCommand. |
protected void |
doToggleConnectModeCommand()
Creates the ToggleConnectModeCommand command. |
protected void |
doToggleFullscreenCommand()
Creates the ToggleFullscreenCommand command. |
protected void |
doToggleLeftColumnCommand()
Creates the default
Command.
|
protected void |
doToggleRightColumnCommand()
Creates the default
Command.
|
protected void |
doUndoCommand()
Creates the default UndoCommand Command. |
protected void |
doUngroupSelectionCommand()
Creates the default UngroupSelectionCommand Command. |
protected void |
doViewGridCommand()
Creates the ViewGridCommand Command.
|
protected void |
doViewRulerCommand()
Creates the ViewRulerCommand Command.
|
protected void |
doZoom1000GraphCommand()
Creates the default Zoom1000GraphCommand Command. |
protected void |
doZoom100GraphCommand()
Creates the default Zoom100GraphCommand Command. |
protected void |
doZoom10GraphCommand()
Creates the default Zoom10GraphCommand Command. |
protected void |
doZoom150GraphCommand()
Creates the default Zoom150GraphCommand Command. |
protected void |
doZoom1To1GraphCommand()
Creates the default Zoom1To1GraphCommand Command. |
protected void |
doZoom200GraphCommand()
Creates the default Zoom200GraphCommand Command. |
protected void |
doZoom25GraphCommand()
Creates the default Zoom25GraphCommand Command. |
protected void |
doZoom400GraphCommand()
Creates the default Zoom400GraphCommand Command. |
protected void |
doZoom500GraphCommand()
Creates the default Zoom500GraphCommand Command. |
protected void |
doZoom50GraphCommand()
Creates the default Zoom50GraphCommand Command. |
protected void |
doZoom600GraphCommand()
Creates the default Zoom600GraphCommand Command. |
protected void |
doZoom75GraphCommand()
Creates the default Zoom75GraphCommand Command. |
protected void |
doZoom800GraphCommand()
Creates the default Zoom800GraphCommand Command. |
protected void |
doZoomDialogCommand()
Creates the default ZoomDialogCommand Command. |
protected void |
doZoomInCommand()
Creates the default ZoomInCommand Command. |
protected void |
doZoomOutCommand()
Creates the default ZoomOutCommand Command. |
protected void |
doZoomRectangleCommand()
Creates the default ZoomToRectangle command. |
protected void |
doZoomToFitCommand()
Creates the default ZoomToFitCommand Command. |
protected void |
doZoomToSelectionCommand()
Creates the doZoomToSelectionCommand command. |
protected void |
doZoomXGraphCommand()
Creates the default ZoomGraphCommand Commands. |
protected void |
initTensegrityLookAndFeels()
Initializes all LookAndFeels that are added or altered by Tensegrity Software to allow (better) usage in the application. |
void |
postCreate(java.lang.Object object)
The postCreate of this class will be invoked when all Command
instances have been created and the run method is about to return. |
int |
run()
The run method of this launch task. |
| Methods inherited from class com.tensegrity.skeleton.swing.launch.AbstractLaunchTask |
findResourceText, getApplicationFrame, getName, getStatusPrefix, getStatusPrefixResourceKey |
| Methods inherited from class com.tensegrity.gui.launch.LaunchTask |
getError, getStatusDetails |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CommandLaunchTask(ApplicationFrame applicationFrame)
applicationFrame - the ApplicationFrame to use.| Method Detail |
public final int run()
throws java.lang.Exception
LaunchTask
run in class LaunchTaskLAUNCHTASKSTATUS_* constants defined
in this interface.
java.lang.Exceptionprotected void doImportExportLayoutsCommands()
protected void doToggleConnectModeCommand()
ToggleConnectModeCommand command.
protected final void doCancelCommand()
protected void doToggleFullscreenCommand()
ToggleFullscreenCommand command.
protected void doZoomToSelectionCommand()
doZoomToSelectionCommand command.
protected void doFindCommand()
protected void doNewDocumentCommand()
run() method.
Simply provide an empty implementation if you do not require
a NewDocumentCommand Command or override if you require a custom
NewDocumentCommand.
protected void doOpenCommand()
run() method.
Simply provide an empty implementation if you do not require
a OpenCommand Command or override if you require a custom
OpenCommand.
protected void doCloneDocumentCommand()
run() method.
Simply provide an empty implementation if you do not require
a CloneDocumentCommand Command or override if you require a custom
CloneDocumentCommand.
protected void doCloseCommand()
run() method.
Simply provide an empty implementation if you do not require
a CloseCommand Command or override if you require a custom
CloseCommand.
protected void doCloseAllCommand()
run() method.
Simply provide an empty implementation if you do not require
a CloseCommand Command or override if you require a custom
CloseCommand.
protected void doSaveCommand()
run() method.
Simply provide an empty implementation if you do not require
a SaveCommand Command or override if you require a custom
SaveCommand.
protected void doSaveAsCommand()
run() method.
Simply provide an empty implementation if you do not require
a SaveAsCommand Command or override if you require a custom
SaveAsCommand.
protected void doPageSetupCommand()
run() method.
Simply provide an empty implementation if you do not require
a PageSetupCommand Command or override if you require a custom
PageSetupCommand.
protected void doPrintPreviewCommand()
run() method.
Simply provide an empty implementation if you do not require
a PrintPreviewCommand Command or override if you require a custom
PrintPreviewCommand.
protected void doPrintCommand()
run() method.
Simply provide an empty implementation if you do not require
a PrintCommand Command or override if you require a custom
PrintCommand.
protected void doQuitCommand()
run() method.
Simply provide an empty implementation if you do not require
a QuitCommand Command or override if you require a custom
QuitCommand.
protected void doUndoCommand()
run() method.
Simply provide an empty implementation if you do not require
a UndoCommand Command or override if you require a custom
UndoCommand.
protected void doRedoCommand()
run() method.
Simply provide an empty implementation if you do not require
a RedoCommand Command or override if you require a custom
RedoCommand.
protected void doCutCommand()
run() method.
Simply provide an empty implementation if you do not require
a CutCommand Command or override if you require a custom
CutCommand.
protected void doCopyCommand()
run() method.
Simply provide an empty implementation if you do not require
a CopyCommand Command or override if you require a custom
CopyCommand.
protected void doPasteCommand()
run() method.
Simply provide an empty implementation if you do not require
a PasteCommand Command or override if you require a custom
PasteCommand.
protected void doDeleteCommand()
run() method.
Simply provide an empty implementation if you do not require
a DeleteCommand Command or override if you require a custom
DeleteCommand.
protected void doSelectAllCommand()
run() method.
Simply provide an empty implementation if you do not require
a SelectAllCommand Command or override if you require a custom
SelectAllCommand.
protected void doZoomInCommand()
run() method.
Simply provide an empty implementation if you do not require
a ZoomInCommand Command or override if you require a custom
ZoomInCommand.
protected void doZoomOutCommand()
run() method.
Simply provide an empty implementation if you do not require
a ZoomOutCommand Command or override if you require a custom
ZoomOutCommand.
protected void doZoomToFitCommand()
run() method.
Simply provide an empty implementation if you do not require
a ZoomToFitCommand Command or override if you require a custom
ZoomToFitCommand.
protected void doZoomRectangleCommand()
run() method.
Simply provide an empty implementation if you do not require
a ZoomToRectangle Command or override if you require a custom
ZoomToRectangle.
protected void doZoom1To1GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom1To1GraphCommand Command or override if you require a custom
Zoom1To1GraphCommand.
protected void doZoom10GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom10GraphCommand Command or override if you require a custom
Zoom10GraphCommand.
protected void doZoom25GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom25GraphCommand Command or override if you require a custom
Zoom25GraphCommand.
protected void doZoom50GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom50GraphCommand Command or override if you require a custom
Zoom50GraphCommand.
protected void doZoom75GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom75GraphCommand Command or override if you require a custom
Zoom75GraphCommand.
protected void doZoom100GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom100GraphCommand Command or override if you require a custom
Zoom100GraphCommand.
protected void doZoom150GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom150GraphCommand Command or override if you require a custom
Zoom150GraphCommand.
protected void doZoom200GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom200GraphCommand Command or override if you require a custom
Zoom200GraphCommand.
protected void doZoom400GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom400GraphCommand Command or override if you require a custom
Zoom400GraphCommand.
protected void doZoom500GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom500GraphCommand Command or override if you require a custom
Zoom500GraphCommand.
protected void doZoom600GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom600GraphCommand Command or override if you require a custom
Zoom600GraphCommand.
protected void doZoom800GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom800GraphCommand Command or override if you require a custom
Zoom800GraphCommand.
protected void doZoom1000GraphCommand()
run() method.
Simply provide an empty implementation if you do not require
a Zoom1000GraphCommand Command or override if you require a custom
Zoom1000GraphCommand.
protected void doZoomXGraphCommand()
run() method.
Simply provide an empty implementation if you do not require
any ZoomGraphCommand Commands.
protected void doZoomDialogCommand()
run() method.
Simply provide an empty implementation if you do not require
a ZoomDialogCommand Command or override if you require a custom
ZoomDialogCommand.
protected void doViewRulerCommand()
ViewRulerCommand Command.
This method is internally called by the run() method.
protected void doViewGridCommand()
ViewGridCommand Command.
This method is internally called by the run() method.
protected void doShapeFormatCommand()
run() method.
Simply provide an empty implementation if you do not require
a ShapeFormatCommand Command or override if you require a custom
ShapeFormatCommand.
protected void initTensegrityLookAndFeels()
protected void doLookAndFeelCommands()
run() method.
Simply provide an empty implementation if you do not require
LookAndFeel Commands or override if you require custom
LookAndFeel commands.
Note: Because the preferred way to set a Look & Feel now is to
set the class name in the preferences this method should
be overridden to avoid execution of this code. It might be
removed completely in the future.
protected boolean contains(java.lang.String lnfName)
LookAndFeel has already been
installed. Thus it takes the parameter String and compares it to all currently
installed LNF's by using the
UIManager.getInstalledLookAndFeels() method.
lnfName - the name of a LookAndFeel to look up.
protected void doGroupSelectionCommand()
run() method.
Simply provide an empty implementation if you do not require
a GroupSelectionCommand or override if you require a custom
GroupSelectionCommand.
protected void doUngroupSelectionCommand()
run() method.
Simply provide an empty implementation if you do not require
a UngroupSelectionCommand or override if you require a custom
UngroupSelectionCommand.
protected void doGermanSwitchLanguageCommand()
run() method.
Simply provide an empty implementation if you do not require
a SwitchLanguageCommand (German) Command or override if you require a custom
SwitchLanguageCommand (German).
protected void doEnglishSwitchLanguageCommand()
run() method.
Simply provide an empty implementation if you do not require
a SwitchLanguageCommand (English) Command or override if you require a custom
SwitchLanguageCommand (English).
protected void doStyleDialogCommand()
run() method.
Simply provide an empty implementation if you do not require
a PreferencesCommand Command or override if you require a custom
PreferencesCommand.
protected void doSaveStylesCommand()
run() method.
Simply provide an empty implementation if you do not require
a PreferencesCommand Command or override if you require a custom
PreferencesCommand.
protected void doLoadStylesCommand()
run() method.
Simply provide an empty implementation if you do not require
a PreferencesCommand Command or override if you require a custom
PreferencesCommand.
protected void doPreferencesCommand()
run() method.
Simply provide an empty implementation if you do not require
a PreferencesCommand Command or override if you require a custom
PreferencesCommand.
protected void doAboutCommand()
run() method.
Simply provide an empty implementation if you do not require
a AboutCommand Command or override if you require a custom
AboutCommand.
protected void doFitToViewportCommand()
run() method.
Simply provide an empty implementation if you do not require
a FitToViewportCommand Command or override if you require a custom
FitToViewportCommand.
protected void doFloatCommand()
run() method.
Simply provide an empty implementation if you do not require
a doFloatCommand or override if you require a custom
doFloatCommand .
protected void doHelpCommand()
run() method.
Simply provide an empty implementation if you do not require
a doHelpCommand Command or override if you require a custom
doHelpCommand.
protected void doDebugCommands()
DebugApplicationCommand,
DebugGraphCommandprotected void doToggleLeftColumnCommand()
ToggleLeftColumnCommand
Command.
This method is internally called by the run()
method.
Simply provide an empty implementation if you do not require a ToggleLeftColumnCommand
Command or override if you require a custom ToggleLeftColumnCommand.
protected void doToggleRightColumnCommand()
ToggleRightColumnCommand
Command.
This method is internally called by the run()
method.
Simply provide an empty implementation if you do not require a ToggleRightColumnCommand
Command or override if you require a custom ToggleRightColumnCommand.
protected void doTableCommand()
TableCommand
command.
protected void doToggleAutomaticLayoutCommand()
ToggleAutomaticLayoutCommand.
protected void doAlignCommands()
public void postCreate(java.lang.Object object)
postCreate of this class will be invoked when all Command
instances have been created and the run method is about to return. The
parameter object is the CommandRegistry of the underlying application.
postCreate in class AbstractLaunchTaskobject - AbstractLaunchTask.postCreate(Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||