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

Class javaLabView.ButtonNode

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

public class ButtonNode
extends Node

Constructor Index

 o ButtonNode(String, Map, Map, Point)
Constructor used when placing the Node onto a location on the Form.
 o ButtonNode(String, Map, Point, Map)
Constructor used when placing the Node onto a location on the Map.

Method Index

 o getComponent()
Returns the Component of this Node.
 o paint(Graphics)
Defines the graphical representation of this Node.

Constructors

 o ButtonNode
  public ButtonNode(String text,
                    Map map,
                    Map form,
                    Point locForm)
Constructor used when placing the Node onto a location on the Form.
Parameters:
text - the name of the Node.
map - the Map where the NOde will paint itself onto.
form - the Panel on which the Node's GUI is placed.
locForm - the location of the Node's GUI on the Panel.
 o ButtonNode
  public ButtonNode(String text,
                    Map map,
                    Point locMap,
                    Map form)
Constructor used when placing the Node onto a location on the Map.
Parameters:
text - the name of the Node.
map - the Map where the NOde will paint itself onto.
locMap - the location of the Node's icon on the map.
form - the Panel on which the Node's GUI is placed.

Methods

 o paint
  public void paint(Graphics g)
Defines the graphical representation of this Node.
Parameters:
g - the graphics context.
Overrides:
paint in class Node
 o getComponent
  public Component getComponent()
Returns the Component of this Node.
Parameters:
c - the component.
Overrides:
getComponent in class Node

All Packages  Class Hierarchy  This Package  Previous  Next  Index