Class javaLabView.Node
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javaLabView.Node

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----javaLabView.Moveable
                                   |
                                   +----javaLabView.Node

public class Node
extends Moveable
May be turned into an Abstract Class.

Variable Index

 o EDIT_COLOR
 o INPUT
 o OUTPUT

Method Index

 o action(Event, Object)
Prints the actions for this Node.
 o addComponent(Component)
Adds the Component to this Node.
 o editMode()
Changes the GUI representation of this node from non-Editable (run mode) to Editable (edit mode).
 o getComponent()
Returns the Component of this Node.
 o getFormLabel()
Returns a Name associated with the GUI representation of this node.
 o getIcon()
Returns the Icon associated with this node.
 o getIoOption()
Returns the state of this node.
 o getNodeNumber()
Returns the number of nodes created before the creation of this node plus one.
 o lockFormLabel(boolean)
Locks the Label for this Node in place or unlocks it.
 o main(String[])
Test method for this class...
 o move(Point)
Moves the GUI representation of this node within the Form.
 o moveIcon(Point)
Moves the Icon within the map.
 o paint(Graphics)
Defines the message for the place-holder of this Node.
 o removeComponent(Component)
Removes the Component to this Node.
 o runMode()
Changes the GUI representation of this node from Editable (edit mode) to non-Editable (run mode).
 o setIcon(String, Map, Point)
Associates an Icon to this node.
 o setIoOption(char)
Sets the state of this node.

Variables

 o EDIT_COLOR
  public final static Color EDIT_COLOR
 o INPUT
  public final static char INPUT
 o OUTPUT
  public final static char OUTPUT

Methods

 o getNodeNumber
  public int getNodeNumber()
Returns the number of nodes created before the creation of this node plus one.
 o getFormLabel
  public Name getFormLabel()
Returns a Name associated with the GUI representation of this node.
 o lockFormLabel
  public void lockFormLabel(boolean lock)
Locks the Label for this Node in place or unlocks it.
Parameters:
lock - true if locked, false if unlocked.
 o getIoOption
  public char getIoOption()
Returns the state of this node. Node.INPUT for input. Node.OUTPUT for output.
See Also:
INPUT, OUTPUT
 o setIoOption
  public void setIoOption(char option)
Sets the state of this node.
Parameters:
option - Node.INPUT for input. Node.OUTPUT for output.
See Also:
INPUT, OUTPUT
 o getIcon
  public Icon getIcon()
Returns the Icon associated with this node.
 o setIcon
  public void setIcon(String text,
                      Map map,
                      Point locMap)
Associates an Icon to this node.
Parameters:
text - the label associated with the icon.
map - the map where the icon will be located.
locMap - where in the map to locate the icon initially.
 o moveIcon
  public void moveIcon(Point delta)
Moves the Icon within the map.
Parameters:
delta - how much to move the icon from its present position.
 o move
  public void move(Point delta)
Moves the GUI representation of this node within the Form.
Parameters:
delta - how much to move the place-holder from its present position.
Overrides:
move in class Moveable
 o addComponent
  public void addComponent(Component c)
Adds the Component to this Node.
Parameters:
c - the component.
 o removeComponent
  public void removeComponent(Component c)
Removes the Component to this Node.
Parameters:
c - the component.
 o getComponent
  public Component getComponent()
Returns the Component of this Node. Must be overriden by every Node Type.
Parameters:
c - the component.
 o editMode
  public void editMode()
Changes the GUI representation of this node from non-Editable (run mode) to Editable (edit mode).
 o runMode
  public void runMode()
Changes the GUI representation of this node from Editable (edit mode) to non-Editable (run mode).
 o paint
  public void paint(Graphics g)
Defines the message for the place-holder of this Node.
Parameters:
g - the graphics context.
Overrides:
paint in class Component
 o action
  public boolean action(Event evt,
                        Object arg)
Prints the actions for this Node.
Overrides:
action in class Component
 o main
  public static void main(String arg[])
Test method for this class...
This method only gets called when the class is launched
from the command line.

All Packages  Class Hierarchy  This Package  Previous  Next  Index