| Overview | Package | Class | Tree | Index | Help | NetCharts 4.5 | ||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object | +--netcharts.graphics.NFActiveLabel
| Field Summary | |
| java.awt.Polygon | areaPoly
The bounding Polygon if this active label's boundary is not defined by a Rectangle. |
| java.lang.String | label
The label for this ActiveLabel. |
| int | selectedItemIndex
The CDL Parameter index corrsdonding to the Item over which this ActiveLabel appears. |
| java.util.Vector | selectedItemLabels
The chart specific data corresponding to the Item over which this ActiveLabel appears. |
| java.lang.String | selectedItemParam
The CDL Parameter corrsdonding to the Item over which this ActiveLabel appears. |
| java.lang.String | target
The frame target for this ActiveLabel's URL. |
| java.net.URL | url
The URL for this ActiveLabel. |
| int | xmax
The X of the bottom right corner of the bounding Rectangle if this active label's boundary is not defined by a Polygon. |
| int | xmin
The X of the top left corner of the bounding Rectangle if this active label's boundary is not defined by a Polygon. |
| int | ymax
The Y of the bottom right corner of the bounding Rectangle if this active label's boundary is not defined by a Polygon. |
| int | ymin
The Y of the top left corner of the bounding Rectangle if this active label's boundary is not defined by a Polygon. |
| Constructor Summary | |
| NFActiveLabel()
Create a new object, with no values assigned. | |
| NFActiveLabel(java.lang.String label,
java.net.URL url,
java.lang.String target)
Create a new object, with the given values assigned. | |
| Method Summary | |
| void | activate(java.applet.AppletContext ac)
Activate the active label by showing any document specified by the url attribute. |
| void | draw(java.awt.Graphics g,
int x,
int y,
NFLabelIntf label)
Draw the active label at the given location using the given graphics and label objects |
| void | draw(java.awt.Graphics g,
NFLabelIntf label)
Draw the active label using the given graphics and label objects |
| void | drawOutline(java.awt.Graphics g,
NFLabelIntf label)
Draw the outline of the active label's rectangle or polygon using colors extracted from the passed in NFLabel. |
| boolean | inside(int x,
int y)
Returns true if the given point is inside of the active label bounds. |
| boolean | isValid()
Check if this ActiveLabel's area is valid. |
| static java.util.Vector | loadAllParams(NFParam p,
java.lang.String name)
Build a vector of ActiveLabels based on the definition of the parameter with the given name. |
| static NFActiveLabel | loadParams(NFParam p,
java.lang.Object val)
Build an ActiveLabel using the value vector provided by the parser. |
| static NFActiveLabel | loadParams(NFParam p,
java.lang.Object val,
int offset)
Use the parser values stored in the given vector, starting at the given offset. |
| void | reset()
Reset this ActiveLabel's area. |
| void | setBounds(int x,
int y,
int width,
int height)
Set the boundary for the active label |
| void | setBounds(java.awt.Polygon p)
Set the boundary for the active label |
| void | setLabel(java.lang.String label)
Set the label. |
| void | setTarget(java.lang.String target)
Set the target |
| void | setURL(java.net.URL url)
Set the URL |
| Field Detail |
public java.lang.String label
public java.net.URL url
public java.lang.String target
public int xmin
public int ymin
public int xmax
public int ymax
public java.awt.Polygon areaPoly
public java.lang.String selectedItemParam
public int selectedItemIndex
public java.util.Vector selectedItemLabels
| Constructor Detail |
public NFActiveLabel()
public NFActiveLabel(java.lang.String label,
java.net.URL url,
java.lang.String target)
label
- The ActiveLabel label.
url
- The URL of this ActiveLabel.
target
- The ActiveLabel target.| Method Detail |
public void setLabel(java.lang.String label)
label
- The ActiveLabel label.public void setURL(java.net.URL url)
url
- The URL of this ActiveLabel.public void setTarget(java.lang.String target)
target
- The ActiveLabel target.
public void setBounds(int x,
int y,
int width,
int height)
x
- The X coordinate of the area.
y
- The Y coordinate of the area.
width
- The width of the area.
height
- The height of the area.public void setBounds(java.awt.Polygon p)
p
- The Polygon area.
public boolean inside(int x,
int y)
x
- The X coordinate of the area.
y
- The Y coordinate of the area.public void reset()
public boolean isValid()
public void activate(java.applet.AppletContext ac)
ac
- The AppletContext to use to show documents.
public void drawOutline(java.awt.Graphics g,
NFLabelIntf label)
g
- The Graphics to draw on.
label
- The NFLabel compatible object to get color info from.
public void draw(java.awt.Graphics g,
int x,
int y,
NFLabelIntf label)
g
- The Graphics to draw on.
x
- The X coordinate of the area.
y
- The Y coordinate of the area.
label
- The NFLabel compatible object to get color info from.
public void draw(java.awt.Graphics g,
NFLabelIntf label)
g
- The Graphics to draw on.
label
- The NFLabel compatible object to get color info from.
public static java.util.Vector loadAllParams(NFParam p,
java.lang.String name)
p
- The NFParam to load parameters from.
name
- The name of the parameter to load.
public static NFActiveLabel loadParams(NFParam p,
java.lang.Object val)
p
- The NFParam to load parameters from.
val
- The parameter value.
public static NFActiveLabel loadParams(NFParam p,
java.lang.Object val,
int offset)
p
- The NFParam to load parameters from.
val
- The parameter value.
offset
- The offset of the ActiveLabel parameter.| Overview | Package | Class | Tree | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
| Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2004 |
Last Modified: Feb 20, 2004 |