edu.iu.iv.common.gui
Class BasicIVCUserInterface

java.lang.Object
  |
  +--edu.iu.iv.common.gui.BasicIVCUserInterface
All Implemented Interfaces:
AddModelListener, IVCUserInterface

public class BasicIVCUserInterface
extends java.lang.Object
implements IVCUserInterface

This class creates a Graphical User Interface for the IVC. It uses the freeware Liquid LookAndFeel as default (see javax.swing.LookAndFeel) downloaded from http://liquidlnf.sourceforge.net. It will scan for plugins and add all installed plugins (algorithms, views, etc) to the menu bar. It also includes an output window on the background of the window, and all of the views and algorithms loaded will appear as internal frames.

Author:
Josh Bonner and Laura Northrup

Constructor Summary
BasicIVCUserInterface()
          Creates a new user interface, sets its look and feel, and constructs its frame.
 
Method Summary
 void addModel(java.lang.Object model)
          Adds a model to this listener.
 void close()
          Terminates the GUI.
 void popupDialog(java.awt.Container container)
          Creates a modal dialog box based on the given container.
 void show()
          Shows the IVC Toolkit GUI to the user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicIVCUserInterface

public BasicIVCUserInterface()
Creates a new user interface, sets its look and feel, and constructs its frame.

Method Detail

popupDialog

public void popupDialog(java.awt.Container container)
Description copied from interface: IVCUserInterface
Creates a modal dialog box based on the given container.

Specified by:
popupDialog in interface IVCUserInterface
Parameters:
container - the contents of the dialog that will be created
See Also:
IVCUserInterface.popupDialog(java.awt.Container)

show

public void show()
Description copied from interface: IVCUserInterface
Shows the IVC Toolkit GUI to the user.

Specified by:
show in interface IVCUserInterface
See Also:
IVCUserInterface.show()

addModel

public void addModel(java.lang.Object model)
Description copied from interface: AddModelListener
Adds a model to this listener.

Specified by:
addModel in interface AddModelListener
Parameters:
model - the model to add
See Also:
AddModelListener.addModel(java.lang.Object)

close

public void close()
Description copied from interface: IVCUserInterface
Terminates the GUI.

Specified by:
close in interface IVCUserInterface
See Also:
IVCUserInterface.close()