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

java.lang.Object
  extended byedu.washington.cs.supple.wlib.java2.TestDisplay
      extended byedu.washington.cs.supple.wlib.java2.TestSimpleShortcutDisplay
All Implemented Interfaces:
java.awt.event.ActionListener, AdaptivePanelVisitor, java.util.EventListener, java.beans.PropertyChangeListener

public class TestSimpleShortcutDisplay
extends TestDisplay
implements java.beans.PropertyChangeListener, AdaptivePanelVisitor

Author:
kgajos

Field Summary
protected  NavShortcutPanel navShortcutPanel
           
protected  PrimitiveShortcutPanel primitiveShortcutPanel
           
protected  boolean showShortcuts
           
 
Fields inherited from class edu.washington.cs.supple.wlib.java2.TestDisplay
curTraceFile, devices, frame, listener, object, panel, recentSolver, uis
 
Constructor Summary
TestSimpleShortcutDisplay(UiObject object)
           
 
Method Summary
 java.awt.Component augmentComponent(java.awt.Component c, Solution solution, java.awt.Dimension panelSize)
          Allows the visitor to augment the contents before they are displayed
 void displayFrame(java.awt.Dimension size)
           
protected  java.util.Collection generateFakeShortcuts(Solution solution)
           
 void propertyChange(java.beans.PropertyChangeEvent ev)
           
protected  void setShowShortcuts(boolean show)
           
 
Methods inherited from class edu.washington.cs.supple.wlib.java2.TestDisplay
actionPerformed, addDevice, addUiExample, buildCostMenu, buildDeviceMenu, buildFeaturesMenu, buildLFMenu, buildMeasurementMenu, buildMenuBar, buildReferenceUIPanel, buildRenderingMenu, buildShortcutMenu, buildSizeMenu, buildTraceMenu, buildUiMenu, loadTrace, refresh, refreshCostFunction, saveTrace, saveTraceAs, showRenderedUiProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

navShortcutPanel

protected NavShortcutPanel navShortcutPanel

primitiveShortcutPanel

protected PrimitiveShortcutPanel primitiveShortcutPanel

showShortcuts

protected boolean showShortcuts
Constructor Detail

TestSimpleShortcutDisplay

public TestSimpleShortcutDisplay(UiObject object)
Parameters:
object -
Method Detail

displayFrame

public void displayFrame(java.awt.Dimension size)
Overrides:
displayFrame in class TestDisplay

generateFakeShortcuts

protected java.util.Collection generateFakeShortcuts(Solution solution)

setShowShortcuts

protected void setShowShortcuts(boolean show)

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent ev)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

augmentComponent

public java.awt.Component augmentComponent(java.awt.Component c,
                                           Solution solution,
                                           java.awt.Dimension panelSize)
Description copied from interface: AdaptivePanelVisitor
Allows the visitor to augment the contents before they are displayed

Specified by:
augmentComponent in interface AdaptivePanelVisitor
Parameters:
c - component to be displayed
solution - the solution object corresponding to the currently displayed component
panelSize - the size of the panel
Returns:
augmented component