|
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.charts.heatmap.NFHeatmapCellTextStyle
public class NFHeatmapCellTextStyle
The NFHeatmapCellTextStyle class describes how cell text is to be rendered.
Constructor Summary | |
---|---|
NFHeatmapCellTextStyle()
Constructs a default cell text style. |
|
NFHeatmapCellTextStyle(boolean state)
Constructs a cell text style in the given state. |
|
NFHeatmapCellTextStyle(boolean state,
java.awt.Color color,
java.awt.Font font)
Constructs a cell text style with the given state, color and font. |
Method Summary | |
---|---|
java.lang.String |
getCDL()
Generate CDL parameters representing this text style |
void |
getCDL(java.lang.StringBuffer sb,
boolean includeParens)
Append CDL parameters representing this text style to the given StringBuffer. |
java.awt.Color |
getColor()
Returns the text color |
java.awt.Font |
getFont()
Returns the text font |
boolean |
getState()
Returns the state of this cell text style. |
void |
setCDL(java.lang.Object cdlObject)
Configures this text style from a CDL parameter object. |
void |
setCDL(java.lang.String cdl)
Configures this object from a CDL parameter representation. |
int |
setCDL(java.lang.String[] elements,
int offset)
Configures this object from a CDL parameter representation. |
void |
setColor(java.awt.Color color)
Sets the text color. |
void |
setFont(java.awt.Font font)
Sets the text font. |
void |
setState(boolean state)
Sets the state of this cell text style. |
java.lang.String |
toString()
Returns a new String object representing this text style. |
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 |
Constructor Detail |
---|
public NFHeatmapCellTextStyle()
public NFHeatmapCellTextStyle(boolean state)
state
- When true, the text should be shown.public NFHeatmapCellTextStyle(boolean state, java.awt.Color color, java.awt.Font font)
state
- When true, the text should be shown.color
- The text color.font
- The font the text will be rendered with.Method Detail |
---|
public boolean getState()
public void setState(boolean state)
state
- When true, the text should be shown.public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- color of text.public java.awt.Font getFont()
public void setFont(java.awt.Font font)
font
- text font.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
cdl
- CDL in the form:
(state, color, "fontname", fontsize)
public int setCDL(java.lang.String[] elements, int offset)
elements
- Array of parameter elements. This array is expected
to contain consecutive elements containing state, color, font name and font size.offset
- Offset into the elements array.public java.lang.String getCDL()
getCDL
in interface NFCDLGenerator
(state, color, font name, font size)
public java.lang.String toString()
toString
in interface NFCDLGenerator
toString
in class java.lang.Object
public void getCDL(java.lang.StringBuffer sb, boolean includeParens)
sb
- Target buffer to append the CDL parametersincludeParens
- If true, this will cause the parameters to be delimited
with parenthesis.
|
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 |