com.tensegrity.skeleton.swt
Class CompatibleSwtGraphApplication

java.lang.Object
  extended bycom.tensegrity.application.DefaultGraphApplication
      extended bycom.tensegrity.application.swt.DefaultSwtGraphApplication
          extended bycom.tensegrity.skeleton.swt.CompatibleSwtGraphApplication
All Implemented Interfaces:
Application, GraphApplication, SwtParentContainerProvider

public class CompatibleSwtGraphApplication
extends DefaultSwtGraphApplication
implements SwtParentContainerProvider

CompatibleSwtGraphApplication is a default implementation of a GraphApplication that is used when the parameter application is omitted in the constructor of an ApplicationFrame.

This class is final and for internal use only. Customers should implement an own GraphApplication using the DefaultGraphApplication.

Author:
BurkhardWick

Field Summary
 
Fields inherited from class com.tensegrity.application.DefaultGraphApplication
applicationFrames
 
Constructor Summary
CompatibleSwtGraphApplication(Applet applet, ApplicationFrame applicationFrame)
          Constructor
 
Method Summary
protected  ApplicationFrame[] createApplicationFrames()
          This method creates the ApplicationFrames of the application.
 java.lang.String getDefaultPreferencesFileName()
          Returns the file name that should be used for reading the default preferences
 java.lang.Class getDefaultPreferencesLoadClass()
          Returns the reference class that should be used to load the default preferences
 java.lang.String getPreferencesFileName()
          Returns the file name that should be used for storing the preferences
 org.eclipse.swt.widgets.Composite getSwtParentContainer()
          Returns the Composite. which can be used as container for other Controls.
 java.lang.String getTitle()
          Returns the name of this Application.
protected  void initGraphicsEnvironment()
          Implementations of this method should initialize the graphics environment. e.g. instances of TextOperations and ImageOperations should be registered here.
protected  void initLocale()
          Initializes the locale of the application.
 void setSwtParentContainer(org.eclipse.swt.widgets.Composite parent)
           
 
Methods inherited from class com.tensegrity.application.swt.DefaultSwtGraphApplication
getCommandRegistry, getDisplay, getKeyStrokeProvider, getUIManager, launch
 
Methods inherited from class com.tensegrity.application.DefaultGraphApplication
getApplet, getApplicationFrame, getApplicationFrames, getDefaultLayoutController, getDragContext, getLocale, getPreferenceHelp, getPreferences, getRuleRegistry, getUIManagerResources, savePreferences, setPreferenceHelp, setPreferences, setRuleRegistry, showError, shutDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompatibleSwtGraphApplication

public CompatibleSwtGraphApplication(Applet applet,
                                     ApplicationFrame applicationFrame)
Constructor

Parameters:
applet - The applet context of this application or null if this is a standalone application
applicationFrame - The application frame
Method Detail

createApplicationFrames

protected ApplicationFrame[] createApplicationFrames()
Description copied from class: DefaultGraphApplication
This method creates the ApplicationFrames of the application.

Specified by:
createApplicationFrames in class DefaultGraphApplication
Returns:
An array of created application frames. The array can be empty but it must not be null

getPreferencesFileName

public java.lang.String getPreferencesFileName()
Description copied from interface: Application
Returns the file name that should be used for storing the preferences

Specified by:
getPreferencesFileName in interface Application
Returns:
the file name that should be used for storing the preferences

getDefaultPreferencesFileName

public java.lang.String getDefaultPreferencesFileName()
Description copied from interface: Application
Returns the file name that should be used for reading the default preferences

Specified by:
getDefaultPreferencesFileName in interface Application
Returns:
the file name that should be used for reading the default preferences

getDefaultPreferencesLoadClass

public java.lang.Class getDefaultPreferencesLoadClass()
Description copied from interface: Application
Returns the reference class that should be used to load the default preferences

Specified by:
getDefaultPreferencesLoadClass in interface Application
Returns:
the reference class that should be used to load the default preferences

getTitle

public java.lang.String getTitle()
Description copied from interface: Application
Returns the name of this Application.

Specified by:
getTitle in interface Application
Returns:
the title of this Application.

initGraphicsEnvironment

protected void initGraphicsEnvironment()
Description copied from class: DefaultGraphApplication
Implementations of this method should initialize the graphics environment. e.g. instances of TextOperations and ImageOperations should be registered here.

Overrides:
initGraphicsEnvironment in class DefaultSwtGraphApplication

initLocale

protected void initLocale()
Description copied from class: DefaultGraphApplication
Initializes the locale of the application. This method is called in the constructor before creating the GUI, so all dialogs will be created using the locale that is set in this method.

Overrides:
initLocale in class DefaultGraphApplication

getSwtParentContainer

public org.eclipse.swt.widgets.Composite getSwtParentContainer()
Description copied from interface: SwtParentContainerProvider
Returns the Composite. which can be used as container for other Controls.

Specified by:
getSwtParentContainer in interface SwtParentContainerProvider
Returns:
the Composite. which can be used as container for other Controls.

setSwtParentContainer

public final void setSwtParentContainer(org.eclipse.swt.widgets.Composite parent)
Specified by:
setSwtParentContainer in interface SwtParentContainerProvider


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.