## SWDataNetworkGui - SWDataNodeGui - SWDataSlotGui

These classes implement a Gui for the Data Network. Most of the methods of this class are only used by the class itself to create the gui.

#### - Example -

    // Define the network
    x = SWDataNetwork.new;

    // Create a GUI for it
    x.makeGui;

    // Access to the GUI:
    x.gui

### - Methods - SWDataNetworkGui -

*new( network, w )
  Create a new instance of SWDataNetworkGui for the SWDataNetwork network. w is an optional parent window to embed the GUI in.
hide ( )
  Hide the GUI
show ( )
  Show the GUI
setInfo ( string )
  Set information in the info static text.
updateRate_ ( dt )
  Set the update rate for the GUI.

#### Internal methods

w ( )
  The main window or the parent of the GUI.
w_ ( )
  private - should only be called from within the *new method
network ( )
  The SWDataNetwork for which this is the GUI.
network_ ( )
  private - should only be called from within the *new method
watcher ( )
  The watcher for the GUI
key ( )
  Network name textfield
verb ( )
  Verbosity button
debug ( )
  Debug button
watch ( )
  Watch button
worry ( )
  Worry time text field
info ( )
  Info static text
nodeview ( )
  View holding the small version of the nodes
nv2 ( )
  Container view for the small nodes
nodes ( )
  The small version nodes
addNodeSmall ( node )
  Add a node to the small nodes view
addNode ( node )
  Forwards to addNodeSmall
slotview ( )
  View holding the big version of the nodes
sv2 ( )
  Container view for the big nodes
bigNodes ( )
  The big version nodes
updateSlotView ( )
  Update the slot view
addNodeBig ( node )
  Add a node to the big nodes view
removeNodeBig ( bnode )
  Remove a node from the big nodes view
refreshBigNodes ( )
  Refresh the display of the big nodes
updateVals ( )
  Called by the watcher to update the values in the GUI views

### - Methods - SWDataNodeGui -

This class is used inside SWDataNetworkGui to build up the node information. You would not normally need to use this directly.

*new ( node, w, xpos, ypos )
  Create a new instance of SWDataNodeGui for the SWDataNode node in the big version (i.e. containing GUI's for the slots). w is an optional parent window to embed the GUI in, e.g. the SWDataNetworkGui.
*newSmall ( node, w, xpos, ypos )
  Create a new instance of SWDataNodeGui for the SWDataNode node in the small version. w is an optional parent window to embed the GUI in, e.g. the SWDataNetworkGui.
initSmall ( xpos, ypos )
  Initialisation specific to the small version.
initBig ( xpos, ypos )
  Initialisation specific to the big version.
init ( xpos, ypos )
  Common initialisation
hide ( )
  Hide the GUI
show ( )
  Show the GUI
start ( )
  Start the watcher of this node GUI (only necessary if the GUI is not part of a SWDataNetworkGui).
updateRate_ ( dt )
  Update rate of the watcher.
expand ( exp )
  Expand the view, i.e. create or remove a big version of the GUI.
ysize ( )
  Vertical size of the view
w ( )
  The main window or the parent of the GUI.
w_ ( )
  private - should only be called from within the *new method
node ( )
node_ ( )
  The node of which this is the GUI.
watcher ( )
  The watcher for the GUI
cw ( )
cw_ ( )
key ( )
elaps ( )
bus ( )
debug ( )
mon ( )
expandBut ( )
nslots ( )
slots ( )
  The slots' GUIs
parent ( )
  The parent GUI of this one (should be a SWDataNetworkGui)
parent_ ( p )
bigNode ( )
  Corresponding large version of the node
bigNode_ ( )
updateVals ( )
  Called by the watcher or the parent window to update the data in this GUI

### - Methods - SWDataSlotGui -

*new ( slot, w )
  Create a new instance of SWDataSlotGui for the SWDataSlot slot. w is an optional parent window to embed the GUI in, e.g. a SWDataNodeGui.
updateVals ( )
  Called by the watcher or the parent window to update the data in this GUI
hide ( )
  Hide the GUI
show ( )
  Show the GUI
slot ( )
slot_ ( )
  The slot of which this is the GUI.
start ( )
  Start the watcher of this node GUI (only necessary if the GUI is not part of a SWDataNetworkGui).
updateRate_ ( dt )
  Update rate of the watcher.
w ( )
  The main window or the parent of the GUI.
w_ ( )
  private - should only be called from within the *new method
parent ( )
  The parent GUI of this one (should be a SWDataNetworkGui)
parent_ ( p )
watcher ( )
  The watcher for the GUI
cw ( )
key ( )
val ( )
bus ( )
debug ( )
slider ( )
mon ( )