Last Updated: 3/4/97
Class NFActiveLabel

Class NFActiveLabel

public class NFActiveLabel

This class holds information about a single active label.

Constructors

Methods


NFActiveLabel ()
Create a new object, with no values assigned.

NFActiveLabel (String label,
               URL url,
               String target)
Create a new object, with the given values assigned.

void activate (AppletContext ac)
Activate the active label by showing any document specified by the url attribute.

static void defineParams (NFParam p,
                          String param)
Create a parser definition for an ActiveLabel tuple.

static int defineParams (NFParam p,
                         String param,
                         Vector v)
Append the parser elements for an ActiveLabel to the given vector. This method returns the number of elements appended.

void draw (Graphics g,
           int x,
           int y,
           NFLabel label)
Draw the active label at the given location using the given graphics and label objects

boolean inside (int x,
                int y)
Returns true if the given point is inside of the active label bounds.

static Vector loadAllParams (NFParam p,
                             String name)
Build a vector of ActiveLabels based on the definition of the parameter with the given name.

static NFActiveLabel loadParams (NFParam p,
                                 Object val)
Build an ActiveLabel using the value vector provided by the parser.

static NFActiveLabel loadParams (NFParam p,
                                 Object val,
                                 int offset)
Use the parser values stored in the given vector, starting at the given offset.

void setBounds (Polygon p)
Set the boundary for the active label

void setBounds (int x,
                int y,
                int width,
                int height)
Set the boundary for the active label

void setLabel (String label)
Set the label. If the label is set to null, no label will be drawn.

void setTarget (String target)
Set the target

void setURL (URL url)
Set the URL