|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjigcell.compare.impl.Compare
jigcell.compare.ui.CompareFrontEnd
public class CompareFrontEnd
The Comparator frontend.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Nested Class Summary | |
|---|---|
protected static class |
CompareFrontEnd.FrontEndTabInfo
Information about a Comparator tab. |
protected class |
CompareFrontEnd.SplashScreen
A splash screen to display while things are loading. |
| Nested classes/interfaces inherited from class jigcell.compare.impl.Compare |
|---|
Compare.CompareSecurityManager, Compare.TabInfo |
| Field Summary | |
|---|---|
static java.lang.String |
CONFIG_LOOKFEEL
Property key for look and feel class |
static java.lang.String |
CONFIG_TABCONFIG
Property key for tab config names |
static java.lang.String |
CONFIG_WINDOWCOORDINATES
Property key for window coordinates |
static java.lang.String |
CONFIG_WINDOWMAXIMIZED
Property key for window maximized state |
protected static int |
COUNT_FRAMEBUFFER
Number of screen buffers to request |
private ITabAccessory |
currentTabAccessory
Current tab accessory |
private ITabAccessory |
defaultTabAccessory
Default tab accessory |
protected static java.awt.Dimension |
DIMENSION_WINDOW
Initial dimensions of the Comparator window |
private javax.swing.JFrame |
displayFrame
Display frame for frontend shell |
protected InterfaceBuilder |
manager
Provides interface help for the view |
protected static java.lang.String |
MENUBAR_DEFAULT
Default menu bar name |
protected MenuBuilder |
menuManager
Menu builder |
protected javax.swing.JTabbedPane |
pane
Main interface |
private ITab |
selectedTab
Currently selected tab in the display frame |
private static java.lang.Class[] |
SIGNATURE_TAB
Method signature of tabs |
private CompareFrontEnd.SplashScreen |
splash
Splash screen while loading |
private java.awt.Component |
tabComponent
Component of the tab to add to pane |
private ITab |
tabImplementation
Tab to add to pane |
protected javax.swing.JToolBar |
toolbar
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 | |
|---|---|
CompareFrontEnd(java.lang.String configFile)
Creates a new graphical Comparator. |
|
| Method Summary | |
|---|---|
protected void |
about(ITab tab)
Displays information about a Comparator tab. |
Compare.TabInfo |
addTab(ITab component)
Adds a tab to the main Comparator display. |
Compare.TabInfo |
addTab(ITab component,
boolean wrapped,
javax.swing.JMenu[] menus,
javax.swing.JButton[] tools)
Adds a tab to the main Comparator display. |
protected void |
addTabToView()
Inserts a new tab into the interface. |
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent e)
|
void |
componentShown(java.awt.event.ComponentEvent e)
|
void |
configure(ITab tab)
Starts configuring a Comparator tab. |
javax.swing.JDialog |
createAboutDialog()
Creates an about dialog for this tab or null if this tab does not describe itself. |
IConfigEditor |
createConfigEditor()
Creates a configuration editor for this tab or null if this tab does not support graphical configuration. |
protected javax.swing.JMenu[] |
createSharedMenus()
Creates the menus that will appear for all tabs. |
protected void |
exit(int status)
Exits from the Comparator. |
protected static java.lang.Class |
findLookAndFeelClass(java.lang.String name)
Finds the class for a given look and feel name. |
javax.swing.JFrame |
getDisplayFrame()
The frontend shell display frame. |
java.lang.String |
getName()
The name of this tab. |
ITab |
getSelectedTab()
The currently selected tab in the display frame. |
ITabAccessory |
getTabAccessory(ITab tab)
The accessory component for a tab. |
protected CompareFrontEnd.FrontEndTabInfo |
getTabInfo(ITab tab)
The tab info for a tab. |
protected static void |
installLookAndFeel(java.lang.String name,
java.lang.String className)
Installs a new look and feel if it has not already been registered. |
static void |
main(java.lang.String[] args)
Starts a new graphical Comparator. |
protected void |
propertyChange(java.beans.PropertyChangeEvent e)
|
void |
readConfiguration(java.lang.String state)
Reads the view configuration from the Comparator. |
protected void |
saveWindowSettings()
|
void |
selectTab(ITab tab)
Selects one of the tabs for the display frame. |
void |
setTabAccessory(ITab tab,
ITabAccessory accessory)
Sets the accessory component displayed for a tab. |
void |
shellHandleException(java.lang.String type,
java.lang.Object message,
java.lang.Throwable t)
Handle an exception in a Comparator component. |
void |
shellHandleMessage(java.lang.String type,
java.lang.Object message)
Handle an informational message in a Comparator component. |
protected void |
shellStableHook()
Stable hook for frontend shell. |
protected void |
shellStartHook()
Start hook for frontend shell. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
|
protected void |
updateLookAndFeel(java.lang.String state)
Modifies the application look and feel to match the current configuration. |
protected void |
updateViewAccessory(CompareFrontEnd.FrontEndTabInfo info)
Fills in the tab accessory using the provided tab info. |
protected void |
updateViewMenus(CompareFrontEnd.FrontEndTabInfo info)
Fills in the menu bar using the provided tab info. |
protected void |
updateViewTools(CompareFrontEnd.FrontEndTabInfo info)
Fills in the toolbar using the provided tab info. |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
void |
windowStateChanged(java.awt.event.WindowEvent e)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONFIG_LOOKFEEL
public static final java.lang.String CONFIG_TABCONFIG
public static final java.lang.String CONFIG_WINDOWCOORDINATES
public static final java.lang.String CONFIG_WINDOWMAXIMIZED
protected static final java.awt.Dimension DIMENSION_WINDOW
protected static final int COUNT_FRAMEBUFFER
protected static final java.lang.String MENUBAR_DEFAULT
private static final java.lang.Class[] SIGNATURE_TAB
protected InterfaceBuilder manager
protected javax.swing.JTabbedPane pane
protected javax.swing.JToolBar toolbar
protected MenuBuilder menuManager
private java.awt.Component tabComponent
private ITab selectedTab
private ITab tabImplementation
private ITabAccessory currentTabAccessory
private ITabAccessory defaultTabAccessory
private javax.swing.JFrame displayFrame
private CompareFrontEnd.SplashScreen splash
| Constructor Detail |
|---|
public CompareFrontEnd(java.lang.String configFile)
configFile - Name of configuration file| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - Program argumentsprotected static java.lang.Class findLookAndFeelClass(java.lang.String name)
name - Name of look and feel
protected static void installLookAndFeel(java.lang.String name,
java.lang.String className)
name - Name of new look and feelclassName - Class for new look and feelpublic Compare.TabInfo addTab(ITab component)
addTab in class Comparecomponent - Contents of the tab
public Compare.TabInfo addTab(ITab component,
boolean wrapped,
javax.swing.JMenu[] menus,
javax.swing.JButton[] tools)
component - Contents of the tabwrapped - Whether component should be wrapped in a scrollpanemenus - Menus to be displayed when tab is activetools - Tools to place in toolbarpublic void componentHidden(java.awt.event.ComponentEvent e)
componentHidden in interface java.awt.event.ComponentListenerpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved in interface java.awt.event.ComponentListenerpublic void componentResized(java.awt.event.ComponentEvent e)
componentResized in interface java.awt.event.ComponentListenerpublic void componentShown(java.awt.event.ComponentEvent e)
componentShown in interface java.awt.event.ComponentListenerpublic void configure(ITab tab)
public javax.swing.JDialog createAboutDialog()
createAboutDialog in interface ITabpublic IConfigEditor createConfigEditor()
createConfigEditor in interface ITabpublic javax.swing.JFrame getDisplayFrame()
getDisplayFrame in class Comparepublic java.lang.String getName()
getName in interface ITabpublic ITabAccessory getTabAccessory(ITab tab)
public ITab getSelectedTab()
protected void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in class Comparepublic void readConfiguration(java.lang.String state)
readConfiguration in interface ITabstate - Current state of the viewpublic void selectTab(ITab tab)
tab - Underlying tab component
public void setTabAccessory(ITab tab,
ITabAccessory accessory)
tab - Comparator tabaccessory - Accessory
public void shellHandleException(java.lang.String type,
java.lang.Object message,
java.lang.Throwable t)
shellHandleException in class Comparetype - Exception typemessage - Display messaget - Throwable
public void shellHandleMessage(java.lang.String type,
java.lang.Object message)
shellHandleMessage in class Comparetype - Message typemessage - Display messagepublic void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged in interface javax.swing.event.ChangeListenerpublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenerpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListenerpublic void windowStateChanged(java.awt.event.WindowEvent e)
windowStateChanged in interface java.awt.event.WindowStateListenerprotected void saveWindowSettings()
protected void about(ITab tab)
protected void addTabToView()
protected javax.swing.JMenu[] createSharedMenus()
protected void exit(int status)
exit in class Comparestatus - Status codeprotected CompareFrontEnd.FrontEndTabInfo getTabInfo(ITab tab)
tab - Tabprotected void shellStableHook()
shellStableHook in class Compareprotected void shellStartHook()
shellStartHook in class Compareprotected void updateLookAndFeel(java.lang.String state)
state - Application stateprotected void updateViewAccessory(CompareFrontEnd.FrontEndTabInfo info)
info - Tab infoprotected void updateViewMenus(CompareFrontEnd.FrontEndTabInfo info)
info - Tab infoprotected void updateViewTools(CompareFrontEnd.FrontEndTabInfo info)
info - Tab info
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||