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.
-
Icon()
- Blank Constructor.
-
Icon(String, Map, Point, Node)
- Main Constructor.
-
getIconLabel()
- getIconLabel
-
getParentNode()
- getParentNode
-
lock(boolean)
- lock
sets the it's own lock status and the lock status of it's label.
-
mouseDown(Event, int, int)
-
-
mouseUp(Event, int, int)
-
-
move(Point)
- move
Moves itself and it's label.
-
paint(Graphics)
- paint
Defines the icon for the map representation of this Node.
-
removeIcon()
- removeIcon
Removes the Icon and it's label from the Map.
-
setMoving(boolean)
- setMoving
sets the Icon's own moving status and the moving status of it's label.
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.
Icon
public Icon()
- Blank Constructor.
removeIcon
public void removeIcon()
- removeIcon
Removes the Icon and it's label from the Map.
getIconLabel
public Name getIconLabel()
- getIconLabel
- Returns:
- the label associated with this Icon.
getParentNode
public Node getParentNode()
- getParentNode
- Returns:
- the Node that this Icon represents.
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
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
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
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
mouseDown
public boolean mouseDown(Event evt,
int x,
int y)
- Overrides:
- mouseDown in class Moveable
mouseUp
public boolean mouseUp(Event evt,
int x,
int y)
- Overrides:
- mouseUp in class Moveable
All Packages Class Hierarchy This Package Previous Next Index