edu.washington.cs.supple.wlib.java2
Class TestDisplay

java.lang.Object
  extended byedu.washington.cs.supple.wlib.java2.TestDisplay
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Direct Known Subclasses:
TestShortcutDisplay, TestSimpleShortcutDisplay

public class TestDisplay
extends java.lang.Object
implements java.awt.event.ActionListener

Author:
kgajos, anthonyw

Field Summary
protected  java.io.File curTraceFile
           
protected  java.util.Vector devices
           
protected  javax.swing.JFrame frame
           
protected  RenderedUiSolverListener listener
           
protected  UiObject object
           
protected  AdaptivePanel panel
           
protected  AbstractSolver recentSolver
           
protected  java.util.Vector uis
           
 
Constructor Summary
TestDisplay(UiObject uiObject)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          (non-Javadoc) ActionEvent handler for UI elements
 void addDevice(DeviceProperties dp)
           
 void addUiExample(SuppleApplication example)
           
protected  javax.swing.JMenu buildCostMenu()
           
protected  javax.swing.JMenu buildDeviceMenu()
           
protected  javax.swing.JMenu buildFeaturesMenu()
           
protected  javax.swing.JMenu buildLFMenu()
           
protected  javax.swing.JMenu buildMeasurementMenu()
           
protected  javax.swing.JMenuBar buildMenuBar()
           
protected  javax.swing.JPanel buildReferenceUIPanel()
           
protected  javax.swing.JMenu buildRenderingMenu()
           
protected  javax.swing.JMenu buildShortcutMenu()
           
protected  javax.swing.JMenu buildSizeMenu()
           
protected  javax.swing.JMenu buildTraceMenu()
           
protected  javax.swing.JMenu buildUiMenu()
           
 void displayFrame(java.awt.Dimension size)
           
protected  void loadTrace()
          Pops up file chooser dialog and loads a trace file from a location indicated by the user; sets curTraceFile field
protected  void refresh()
           
protected  void refreshCostFunction()
           
protected  void saveTrace()
          If the currentTraceFile is set, the current trace is saved to that location; otherwise saveTraceAs() is called
protected  void saveTraceAs()
          Pops up a file chooser dialogue and saves the current trace in the location specified by the user; sets curTraceFile field
protected  void showRenderedUiProperties()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

object

protected UiObject object

frame

protected javax.swing.JFrame frame

devices

protected java.util.Vector devices

uis

protected java.util.Vector uis

panel

protected AdaptivePanel panel

listener

protected RenderedUiSolverListener listener

recentSolver

protected AbstractSolver recentSolver

curTraceFile

protected java.io.File curTraceFile
Constructor Detail

TestDisplay

public TestDisplay(UiObject uiObject)
Method Detail

displayFrame

public void displayFrame(java.awt.Dimension size)

addDevice

public void addDevice(DeviceProperties dp)

addUiExample

public void addUiExample(SuppleApplication example)

refreshCostFunction

protected void refreshCostFunction()

buildReferenceUIPanel

protected javax.swing.JPanel buildReferenceUIPanel()

buildMenuBar

protected javax.swing.JMenuBar buildMenuBar()

buildLFMenu

protected javax.swing.JMenu buildLFMenu()

buildDeviceMenu

protected javax.swing.JMenu buildDeviceMenu()

buildUiMenu

protected javax.swing.JMenu buildUiMenu()

buildFeaturesMenu

protected javax.swing.JMenu buildFeaturesMenu()

buildTraceMenu

protected javax.swing.JMenu buildTraceMenu()

buildMeasurementMenu

protected javax.swing.JMenu buildMeasurementMenu()

buildRenderingMenu

protected javax.swing.JMenu buildRenderingMenu()

buildShortcutMenu

protected javax.swing.JMenu buildShortcutMenu()

buildCostMenu

protected javax.swing.JMenu buildCostMenu()

buildSizeMenu

protected javax.swing.JMenu buildSizeMenu()

refresh

protected void refresh()

saveTrace

protected void saveTrace()
If the currentTraceFile is set, the current trace is saved to that location; otherwise saveTraceAs() is called


saveTraceAs

protected void saveTraceAs()
Pops up a file chooser dialogue and saves the current trace in the location specified by the user; sets curTraceFile field


loadTrace

protected void loadTrace()
Pops up file chooser dialog and loads a trace file from a location indicated by the user; sets curTraceFile field


showRenderedUiProperties

protected void showRenderedUiProperties()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
(non-Javadoc) ActionEvent handler for UI elements

Specified by:
actionPerformed in interface java.awt.event.ActionListener