Class builder.Name
All Packages Class Hierarchy This Package Previous Next Index
Class builder.Name
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----builder.Moveable
|
+----builder.Name
- public class Name
- extends Moveable
A moveable Label.
-
Name(Map)
- Constructor.
-
Name(Map, Point)
- Constructor.
-
Name(String, Map, Point)
- Main Constructor.
-
getLabel()
- getLabel
-
lock(boolean)
- lock
Locks this Name in place.
-
paint(Graphics)
- paint
Defines the icon for the map representation of this Node.
-
setLabel(String)
- setLabel
Sets the text for this Name.
-
toString()
- toString
Name
public Name(String text,
Map m,
Point l)
- Main Constructor.
- Parameters:
- text - the text of the label.
- m - the Map where the Name is placed.
- l - initial location of the Name in the Map.
Name
public Name(Map m,
Point l)
- Constructor.
- Parameters:
- m - the Map where the Name is placed.
- l - initial location of the Name in the Map.
Name
public Name(Map m)
- Constructor.
- Parameters:
- m - the Map where the Name is placed.
setLabel
public void setLabel(String text)
- setLabel
Sets the text for this Name.
- Parameters:
- text - the text of the label.
getLabel
public String getLabel()
- getLabel
- Returns:
- the text of the label.
toString
public String toString()
- toString
- Returns:
- the text of the label.
- Overrides:
- toString in class Component
lock
public void lock(boolean status)
- lock
Locks this Name in place.
- Parameters:
- status - true if locked, false if unlocked.
- 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
All Packages Class Hierarchy This Package Previous Next Index