|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A GUI to control how long messages are displayed. More...

Classes | |
| class | MsgTypeSetting |
| A message type and its slider. More... | |
| class | MsgTypeRenderer |
| Renders each node in the tree as a message type name and a slider. More... | |
Public Member Functions | |
| VisualizerControls () | |
| Constructor. | |
| void | actionPerformed (ActionEvent e) |
| void | treeExpanded (TreeExpansionEvent event) |
| void | treeCollapsed (TreeExpansionEvent event) |
| void | enableStepButton (final boolean enabled) |
| Enables or disables the STEP button. | |
Package Functions | |
| void | addControlPanel (MessageType msgType) |
| Adds a new control panel for a message type. | |
Private Member Functions | |
| synchronized MsgTypeSetting | getTreeNode (MessageType type) |
| Retrieves the node for the input message type. | |
Private Attributes | |
| JTree | tree |
| The tree containing the settings. | |
| MsgTypeSetting | root |
| The root of the message type hierarchy. | |
| HashMap< MessageType, MsgTypeSetting > | nodes = new HashMap< MessageType, MsgTypeSetting > () |
| The tree nodes, indexed by message type. | |
| DefaultTreeModel | model |
| The tree model used to dynamically add nodes in a thread-safe way. | |
| JButton | stepBtn |
| The STEP button. | |
Static Private Attributes | |
| static final long | serialVersionUID = 3541530360724833030L |
| Serial version UID. | |
| static final String | STEP_BUTTON_NAME = "Step" |
| The name of the STEP button. | |
A GUI to control how long messages are displayed.
| frodo2.gui.VisualizerControls.VisualizerControls | ( | ) |
Constructor.
References model, frodo2.communication.MessageType.ROOT, STEP_BUTTON_NAME, stepBtn, and tree.
| void frodo2.gui.VisualizerControls.actionPerformed | ( | ActionEvent | e | ) |
|
package |
Adds a new control panel for a message type.
| msgType | the message type |
References getTreeNode().

| void frodo2.gui.VisualizerControls.enableStepButton | ( | final boolean | enabled | ) |
Enables or disables the STEP button.
| enabled | whether the STEP button should be enabled |
|
private |
Retrieves the node for the input message type.
| type | the message type |
References frodo2.communication.MessageType.equals(), frodo2.communication.MessageType.getParent(), getTreeNode(), and frodo2.communication.MessageType.ROOT.
Referenced by addControlPanel(), and getTreeNode().

| void frodo2.gui.VisualizerControls.treeCollapsed | ( | TreeExpansionEvent | event | ) |
| void frodo2.gui.VisualizerControls.treeExpanded | ( | TreeExpansionEvent | event | ) |
|
private |
The tree model used to dynamically add nodes in a thread-safe way.
Referenced by VisualizerControls().
|
private |
The tree nodes, indexed by message type.
|
private |
The root of the message type hierarchy.
|
staticprivate |
Serial version UID.
|
staticprivate |
The name of the STEP button.
Referenced by VisualizerControls().
|
private |
The STEP button.
Referenced by VisualizerControls().
|
private |
The tree containing the settings.
Referenced by frodo2.gui.VisualizerControls.MsgTypeRenderer.getTreeCellEditorComponent(), frodo2.gui.VisualizerControls.MsgTypeRenderer.getTreeCellRendererComponent(), frodo2.gui.VisualizerControls.MsgTypeSetting.stateChanged(), and VisualizerControls().