jigcell.compare.cellcycle
Class CellCycleFrontEnd

java.lang.Object
  extended by jigcell.compare.impl.Compare
      extended by jigcell.compare.ui.CompareFrontEnd
          extended by jigcell.compare.cellcycle.CellCycleFrontEnd
All Implemented Interfaces:
java.awt.event.ComponentListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener, java.util.EventListener, javax.swing.event.ChangeListener, ITab

public class CellCycleFrontEnd
extends CompareFrontEnd

The Comparator frontend.

This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.

Author:
Nicholas Allen

Nested Class Summary
 
Nested classes/interfaces inherited from class jigcell.compare.ui.CompareFrontEnd
CompareFrontEnd.FrontEndTabInfo, CompareFrontEnd.SplashScreen
 
Nested classes/interfaces inherited from class jigcell.compare.impl.Compare
Compare.CompareSecurityManager, Compare.TabInfo
 
Field Summary
protected static java.lang.ref.WeakReference lastInstance
          Last instance of this class
protected static java.lang.String MESSAGE_SCRIPTERROR
          Error message when executing a script fails
protected static java.lang.String MESSAGE_SCRIPTSTARTERROR
          Error message when unable to start script interpreter
protected static javax.swing.border.Border UIDEBUG_BORDER
          Border to wrap around debugged objects
protected static java.awt.Color UIDEBUG_COLOR
          Color to highlight debug objects
protected static java.lang.String UIDEBUG_PROPERTY
          Property indicating a debugged component
static java.lang.String VARIABLE_COMPARE
          Variable to attach to Comparator when running scripts
 
Fields inherited from class jigcell.compare.ui.CompareFrontEnd
CONFIG_LOOKFEEL, CONFIG_TABCONFIG, CONFIG_WINDOWCOORDINATES, CONFIG_WINDOWMAXIMIZED, COUNT_FRAMEBUFFER, DIMENSION_WINDOW, manager, MENUBAR_DEFAULT, menuManager, pane, toolbar
 
Fields inherited from class jigcell.compare.impl.Compare
CONFIG_CLASSNAME, CONFIG_DATASOURCE, configMarkers, configSource, DEFAULT_CONFIG, MESSAGE_ERROR, MESSAGE_WARNING, PARAMETER_DEBUG_EXCEPTIONS, PROPERTY_CONFIG_EDIT, PROPERTY_DEBUG_EXCEPTIONS, RESOURCE_CONFIG, RESOURCE_DATAMANAGER, RESOURCE_TABS, securityManager, TAB_LOCK
 
Fields inherited from interface jigcell.compare.ITab
CONFIG_TABNAME, STATE_ENDINITIALIZE, STATE_ENDUI, STATE_INITIALIZE, STATE_RUNNING, STATES
 
Constructor Summary
CellCycleFrontEnd(java.lang.String configFile)
          Creates a new graphical Comparator.
 
Method Summary
protected  javax.swing.JMenu[] createSharedMenus()
          Creates the menus that will appear for all tabs.
 void debugUI()
          Adds debugging information to all UI components.
protected  void debugUI(java.awt.Container component, java.util.Set seen)
          Adds debugging information to all UI components.
protected  void executeScriptFile(java.lang.String scriptFile)
          Loads an external script file and executes it in the Comparator.
static CellCycleFrontEnd getLastInstance()
          The last instance created of this class or null if no instance of this class has been created or the last instance created of this class has been destroyed.
static void main(java.lang.String[] args)
          Starts a new graphical Comparator.
protected  void shellStartHook()
          Start hook for frontend shell. No initialization is guaranteed to have taken place at this point.
 
Methods inherited from class jigcell.compare.ui.CompareFrontEnd
about, addTab, addTab, addTabToView, componentHidden, componentMoved, componentResized, componentShown, configure, createAboutDialog, createConfigEditor, exit, findLookAndFeelClass, getDisplayFrame, getName, getSelectedTab, getTabAccessory, getTabInfo, installLookAndFeel, propertyChange, readConfiguration, saveWindowSettings, selectTab, setTabAccessory, shellHandleException, shellHandleMessage, shellStableHook, stateChanged, updateLookAndFeel, updateViewAccessory, updateViewMenus, updateViewTools, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened, windowStateChanged
 
Methods inherited from class jigcell.compare.impl.Compare
acquireSync, addDelegate, addPropertyChangeListener, addPropertyChangeListener, addResource, addResourceBundle, addTransient, assertion, assertion, attemptSync, createDataManager, findTabByClass, findTabByClassExact, findTabByName, firePropertyChange, firePropertyChange, formatString, formatString, getConfig, getDataManager, getDebugExceptions, getPropertyChangeListeners, getPropertyChangeListeners, getResource, getResourceMap, getResourceNames, getString, getTabMap, getTabs, message, removePropertyChangeListener, removePropertyChangeListener, removeResource, replaceResource, scanResourceCatalog, scanResourceMap, scanResources, setConfig, setDataManager, setDebugExceptions, shellHandleException, throwUncheckedException, updateEncoder, updateResourceMap, warning, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VARIABLE_COMPARE

public static final java.lang.String VARIABLE_COMPARE
Variable to attach to Comparator when running scripts

See Also:
Constant Field Values

UIDEBUG_COLOR

protected static final java.awt.Color UIDEBUG_COLOR
Color to highlight debug objects


UIDEBUG_BORDER

protected static final javax.swing.border.Border UIDEBUG_BORDER
Border to wrap around debugged objects


MESSAGE_SCRIPTERROR

protected static final java.lang.String MESSAGE_SCRIPTERROR
Error message when executing a script fails

See Also:
Constant Field Values

MESSAGE_SCRIPTSTARTERROR

protected static final java.lang.String MESSAGE_SCRIPTSTARTERROR
Error message when unable to start script interpreter

See Also:
Constant Field Values

UIDEBUG_PROPERTY

protected static final java.lang.String UIDEBUG_PROPERTY
Property indicating a debugged component

See Also:
Constant Field Values

lastInstance

protected static java.lang.ref.WeakReference lastInstance
Last instance of this class

Constructor Detail

CellCycleFrontEnd

public CellCycleFrontEnd(java.lang.String configFile)
Creates a new graphical Comparator.

Parameters:
configFile - Name of configuration file
Method Detail

getLastInstance

public static CellCycleFrontEnd getLastInstance()
The last instance created of this class or null if no instance of this class has been created or the last instance created of this class has been destroyed.


main

public static void main(java.lang.String[] args)
Starts a new graphical Comparator.

Parameters:
args - Program arguments

debugUI

public void debugUI()
Adds debugging information to all UI components.


createSharedMenus

protected javax.swing.JMenu[] createSharedMenus()
Creates the menus that will appear for all tabs.

Overrides:
createSharedMenus in class CompareFrontEnd

debugUI

protected void debugUI(java.awt.Container component,
                       java.util.Set seen)
Adds debugging information to all UI components.

Parameters:
component - Component to debug
seen - Components already updated

executeScriptFile

protected void executeScriptFile(java.lang.String scriptFile)
Loads an external script file and executes it in the Comparator.

Parameters:
scriptFile - Name of script file to execute

shellStartHook

protected void shellStartHook()
Start hook for frontend shell. No initialization is guaranteed to have taken place at this point.

Overrides:
shellStartHook in class CompareFrontEnd