edu.washington.cs.supple.wlib.java2
Class TestDisplay
java.lang.Object
edu.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
TestDisplay
public TestDisplay(UiObject uiObject)
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