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.
-
EDIT_COLOR
-
-
INPUT
-
-
OUTPUT
-
-
action(Event, Object)
- Prints the actions for this Node.
-
addComponent(Component)
- Adds the Component to this Node.
-
editMode()
- Changes the GUI representation of this node from non-Editable (run mode)
to Editable (edit mode).
-
getComponent()
- Returns the Component of this Node.
-
getFormLabel()
- Returns a Name associated with the GUI representation of this node.
-
getIcon()
- Returns the Icon associated with this node.
-
getIoOption()
- Returns the state of this node.
-
getNodeNumber()
- Returns the number of nodes created before the creation of this node
plus one.
-
lockFormLabel(boolean)
- Locks the Label for this Node in place or unlocks it.
-
main(String[])
-
Test method for this class...
-
move(Point)
- Moves the GUI representation of this node within the Form.
-
moveIcon(Point)
- Moves the Icon within the map.
-
paint(Graphics)
- Defines the message for the place-holder of this Node.
-
removeComponent(Component)
- Removes the Component to this Node.
-
runMode()
- Changes the GUI representation of this node from Editable (edit mode)
to non-Editable (run mode).
-
setIcon(String, Map, Point)
- Associates an Icon to this node.
-
setIoOption(char)
- Sets the state of this node.
EDIT_COLOR
public final static Color EDIT_COLOR
INPUT
public final static char INPUT
OUTPUT
public final static char OUTPUT
getNodeNumber
public int getNodeNumber()
- Returns the number of nodes created before the creation of this node
plus one.
getFormLabel
public Name getFormLabel()
- Returns a Name associated with the GUI representation of this node.
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.
getIoOption
public char getIoOption()
- Returns the state of this node.
Node.INPUT for input.
Node.OUTPUT for output.
- See Also:
- INPUT, OUTPUT
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
getIcon
public Icon getIcon()
- Returns the Icon associated with this node.
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.
moveIcon
public void moveIcon(Point delta)
- Moves the Icon within the map.
- Parameters:
- delta - how much to move the icon from its present position.
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
addComponent
public void addComponent(Component c)
- Adds the Component to this Node.
- Parameters:
- c - the component.
removeComponent
public void removeComponent(Component c)
- Removes the Component to this Node.
- Parameters:
- c - the component.
getComponent
public Component getComponent()
- Returns the Component of this Node.
Must be overriden by every Node Type.
- Parameters:
- c - the component.
editMode
public void editMode()
- Changes the GUI representation of this node from non-Editable (run mode)
to Editable (edit mode).
runMode
public void runMode()
- Changes the GUI representation of this node from Editable (edit mode)
to non-Editable (run mode).
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
action
public boolean action(Event evt,
Object arg)
- Prints the actions for this Node.
- Overrides:
- action in class Component
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