uk.ac.essex.ia.opview
Class OpViewer

java.lang.Object
  extended by uk.ac.essex.common.gui.ViewerImpl
      extended by uk.ac.essex.ia.opview.OpViewer
All Implemented Interfaces:
Viewer, OVPreferences

public class OpViewer
extends ViewerImpl
implements OVPreferences

This is the mian class that handles displaying operations


Field Summary
static java.lang.String ACTION_XML_FILE
           
protected  Interpreter interpreter
           
static java.awt.event.KeyListener keyListener
           
protected  java.util.ArrayList operatorMenus
           
protected  OperatorManager opManager
           
 
Fields inherited from class uk.ac.essex.common.gui.ViewerImpl
applicationFrame, editHandler, fileHandler, helpHandler, optionsHandler
 
Fields inherited from interface uk.ac.essex.ia.opview.pref.OVPreferences
CURRENT_FILE_NAME, FILE_LIST, RESTORE_SESSION
 
Method Summary
 void addMenus(ApplicationModel model)
          Add all the menus from the application model
 void addToToolbar(javax.swing.Action[] actions)
          TODO
static OpViewer getInstance()
           
 Interpreter getInterpreter()
           
static IAJGraph getNewJGraph()
          Gets a blank new empty IAJGraph object
 void loadOperators(javax.swing.JMenu[] operatorMenus)
           
static void main(java.lang.String[] args)
          Main method
 void restoreSession()
          This loads the GUI into the users prefered state
 void show()
          Shows the frame
 void shutDown()
          Called to shut the Viewer down, this allows it to save open files etc.
 
Methods inherited from class uk.ac.essex.common.gui.ViewerImpl
getApplicationFrame, getEditHandler, getFileHandler, getHelpHandler, getOptionsHandler, restoreSessionFiles, saveOpenFiles, saveSessionFiles, shouldRestoreSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_XML_FILE

public static final java.lang.String ACTION_XML_FILE
See Also:
Constant Field Values

keyListener

public static java.awt.event.KeyListener keyListener

interpreter

protected Interpreter interpreter

opManager

protected OperatorManager opManager

operatorMenus

protected java.util.ArrayList operatorMenus
Method Detail

getInstance

public static OpViewer getInstance()
Returns:
OpViewer - An instance of this class

getNewJGraph

public static IAJGraph getNewJGraph()
Gets a blank new empty IAJGraph object


getInterpreter

public Interpreter getInterpreter()
Returns:
OperatorIntepreter

loadOperators

public void loadOperators(javax.swing.JMenu[] operatorMenus)

show

public void show()
Shows the frame


addMenus

public void addMenus(ApplicationModel model)
Add all the menus from the application model


addToToolbar

public void addToToolbar(javax.swing.Action[] actions)
TODO

Parameters:
actions -

shutDown

public void shutDown()
              throws ShutdownCancelledException
Description copied from class: ViewerImpl
Called to shut the Viewer down, this allows it to save open files etc.

Specified by:
shutDown in interface Viewer
Overrides:
shutDown in class ViewerImpl
Throws:
ShutdownCancelledException

restoreSession

public void restoreSession()
This loads the GUI into the users prefered state

Specified by:
restoreSession in interface Viewer
Overrides:
restoreSession in class ViewerImpl

main

public static void main(java.lang.String[] args)
Main method