Class builder.Icon
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class builder.Icon

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----builder.Moveable
                                   |
                                   +----builder.Icon

public class Icon
extends Moveable
The Flow Control representation of the Node.

Constructor Index

 o Icon()
Blank Constructor.
 o Icon(String, Map, Point, Node)
Main Constructor.

Method Index

 o getIconLabel()
getIconLabel
 o getParentNode()
getParentNode
 o lock(boolean)
lock sets the it's own lock status and the lock status of it's label.
 o mouseDown(Event, int, int)
 o mouseUp(Event, int, int)
 o move(Point)
move Moves itself and it's label.
 o paint(Graphics)
paint Defines the icon for the map representation of this Node.
 o removeIcon()
removeIcon Removes the Icon and it's label from the Map.
 o setMoving(boolean)
setMoving sets the Icon's own moving status and the moving status of it's label.

Constructors

 o Icon
  public Icon(String label,
              Map m,
              Point l,
              Node parent)
Main Constructor.
Parameters:
label - name associated with the Icon.
m - the Map where the Icon is placed.
l - initial location of the Icon in the Map.
parent - The Node to which this Icon belongs.
 o Icon
  public Icon()
Blank Constructor.

Methods

 o removeIcon
  public void removeIcon()
removeIcon Removes the Icon and it's label from the Map.
 o getIconLabel
  public Name getIconLabel()
getIconLabel
Returns:
the label associated with this Icon.
 o getParentNode
  public Node getParentNode()
getParentNode
Returns:
the Node that this Icon represents.
 o setMoving
  public void setMoving(boolean status)
setMoving sets the Icon's own moving status and the moving status of it's label.
Parameters:
status - true if moving, flase if not moving.
Overrides:
setMoving in class Moveable
 o move
  public void move(Point delta)
move Moves itself and it's label.
Parameters:
delta - how much to move the Icon in the x and y directions.
Overrides:
move in class Moveable
 o lock
  public void lock(boolean status)
lock sets the it's own lock status and the lock status of it's label.
Parameters:
status - true if moving, flase if not moving.
Overrides:
lock in class Moveable
 o paint
  public void paint(Graphics g)
paint Defines the icon for the map representation of this Node.
Parameters:
g - the graphics context.
Overrides:
paint in class Component
 o mouseDown
  public boolean mouseDown(Event evt,
                           int x,
                           int y)
Overrides:
mouseDown in class Moveable
 o mouseUp
  public boolean mouseUp(Event evt,
                         int x,
                         int y)
Overrides:
mouseUp in class Moveable

All Packages  Class Hierarchy  This Package  Previous  Next  Index