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.

Constructor Index

 o Name(Map)
Constructor.
 o Name(Map, Point)
Constructor.
 o Name(String, Map, Point)
Main Constructor.

Method Index

 o getLabel()
getLabel
 o lock(boolean)
lock Locks this Name in place.
 o paint(Graphics)
paint Defines the icon for the map representation of this Node.
 o setLabel(String)
setLabel Sets the text for this Name.
 o toString()
toString

Constructors

 o 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.
 o 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.
 o Name
  public Name(Map m)
Constructor.
Parameters:
m - the Map where the Name is placed.

Methods

 o setLabel
  public void setLabel(String text)
setLabel Sets the text for this Name.
Parameters:
text - the text of the label.
 o getLabel
  public String getLabel()
getLabel
Returns:
the text of the label.
 o toString
  public String toString()
toString
Returns:
the text of the label.
Overrides:
toString in class Component
 o 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
 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index