|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetcharts.pro.common.NFBaseClass
netcharts.pro.common.NFTextStyle
netcharts.pro.common.NFModalLabel
public class NFModalLabel
The NFModalLabel object describes a element of text to include whether or not the text should be shown as well as the rendering attributes of the text. It is used to describe dynamically generated text elements like axis labels and active (popup) labels.
Field Summary |
---|
Fields inherited from class netcharts.pro.common.NFTextStyle |
---|
CENTER, LEFT, LINETHROUGH_DECORATION, NO_ASCENT, NO_DECORATION, NO_DESCENT, NO_LEADING, NO_MAXLINEADVANCE, OVERLINE_DECORATION, RIGHT, UNDERLINE_DECORATION |
Constructor Summary | |
---|---|
NFModalLabel()
Constructs a default modal label. |
|
NFModalLabel(boolean state)
Constructs a text item in the given state. |
|
NFModalLabel(boolean state,
java.awt.Color color,
java.awt.Font font)
Constructs a text item with the given state, color, and font. |
|
NFModalLabel(boolean state,
java.awt.Color color,
java.awt.Font font,
int angle,
int alignment)
Constructs a text item with the given state, color, font, angle and alignment. |
|
NFModalLabel(boolean state,
java.awt.Color color,
java.awt.Font font,
int angle,
int alignment,
int decoration)
Constructs a text item with the given state, color, font, angle, alignment and decoration. |
Method Summary | |
---|---|
java.lang.String |
getCDL()
Generate CDL parameters representing this label |
java.lang.String |
getCDL(java.lang.String[] extra)
|
void |
getCDL(java.lang.StringBuffer sb,
boolean includeParens)
Append CDL parameters representing this text label to the given StringBuffer. |
void |
getCDL(java.lang.StringBuffer sb,
boolean includeParens,
java.lang.String[] extra)
|
boolean |
getState()
Get the text item's state. |
void |
setCDL(java.lang.Object cdlObject)
Configures this label from a CDL parameter object. |
void |
setCDL(java.lang.String cdl)
Configures this label from a CDL parameter representation. |
void |
setCDL(java.lang.String[] elements,
int offset)
Configures this object from a CDL parameter representation. |
void |
setState(boolean state)
Set the state of this text item. |
Methods inherited from class netcharts.pro.common.NFTextStyle |
---|
getAlignment, getAngle, getAscent, getCDL, getColor, getDecoration, getDescent, getFont, getLeading, getMaxLineAdvance, setAlignment, setAngle, setAscent, setColor, setDecoration, setDescent, setFont, setLeading, setMaxLineAdvance, toString |
Methods inherited from class netcharts.pro.common.NFBaseClass |
---|
clone, getModified, getUserObject, setModified, setUserObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface netcharts.pro.common.NFCDLGenerator |
---|
toString |
Constructor Detail |
---|
public NFModalLabel()
public NFModalLabel(boolean state)
state
- When true, the text should be shown.public NFModalLabel(boolean state, java.awt.Color color, java.awt.Font font)
state
- When true, the text should be shown.color
- Text colorfont
- Text fontpublic NFModalLabel(boolean state, java.awt.Color color, java.awt.Font font, int angle, int alignment)
state
- When true, the text should be shown.color
- Text colorfont
- Text fontangle
- Font anglealignment
- The text alignment.public NFModalLabel(boolean state, java.awt.Color color, java.awt.Font font, int angle, int alignment, int decoration)
state
- When true, the text should be shown.color
- Text colorfont
- Text fontangle
- Font anglealignment
- The text alignment.decoration
- The text decoration.Method Detail |
---|
public boolean getState()
public void setState(boolean state)
state
- When true, the text should be shown.public void setCDL(java.lang.Object cdlObject)
cdlObject
- CDL in a String form or in a user object.public void setCDL(java.lang.String cdl)
setCDL
in interface NFCDLGenerator
setCDL
in class NFTextStyle
cdl
- CDL in the form: ("state", textcolor, "fontname", fontsize, angle, alignment)
public void setCDL(java.lang.String[] elements, int offset)
setCDL
in class NFTextStyle
elements
- Array of parameter elements. This array is expected
to contain consecutive elements containing state, color, font, angle, and alignment information.offset
- Offset into the elements array.public java.lang.String getCDL()
getCDL
in interface NFCDLGenerator
getCDL
in class NFTextStyle
("state", textcolor, "fontname", fontsize, angle, alignment)
public void getCDL(java.lang.StringBuffer sb, boolean includeParens)
getCDL
in class NFTextStyle
sb
- Target buffer to append the CDL parametersincludeParens
- If true, this will cause the parameters to be delimited
with parenthesis.public void getCDL(java.lang.StringBuffer sb, boolean includeParens, java.lang.String[] extra)
public java.lang.String getCDL(java.lang.String[] extra)
|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2011 |
Last Modified: Jun 28, 2011 |