|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.chart.ChartTitle
public class ChartTitle
A chart title that displays a text string with defined font and color.
| Field Summary | |
|---|---|
static java.lang.String |
TOKEN_AXIS
The XML token for an axis title. |
static java.lang.String |
TOKEN_FOOTNOTE
The XML token for a footnote title. |
static java.lang.String |
TOKEN_HEADER
The XML token for a header title. |
static java.lang.String |
TOKEN_SUBTITLE
The XML token for a subtitle. |
| Constructor Summary | |
|---|---|
ChartTitle(java.awt.Font titleFont,
int color)
Creates a chart title with the given properties. |
|
| Method Summary | |
|---|---|
ChartTitle |
clone()
|
int |
getColor()
Returns the ABGR value of color for this title. |
java.awt.Font |
getFont()
Returns the font of the label. |
java.lang.String |
getTitle()
Returns this title's text. |
boolean |
isEqualToDefault(ChartTitle defaultTitle)
Returns true if this title is equal to default. |
boolean |
isShowAutoTitle()
Returns whether or not this title is to be an automatically generated label. |
void |
readProperties(org.w3c.dom.Element element)
Reads the XML properties of a chart title. |
void |
saveProperties(java.lang.StringBuffer buffer,
java.lang.String type,
int depth)
Writes the properties of the title to PrintWriter. |
void |
setColor(int titleColor)
Sets the ABGR value of color for this title. |
void |
setFont(java.awt.Font titleFont)
Sets the font of the label. |
void |
setShowAutoTitle(boolean showAutoTitle)
Sets whether or not this title is to be an automatically generated label. |
void |
setTitle(java.lang.String title)
Sets this title. |
| Field Detail |
|---|
public static final java.lang.String TOKEN_HEADER
public static final java.lang.String TOKEN_SUBTITLE
public static final java.lang.String TOKEN_FOOTNOTE
public static final java.lang.String TOKEN_AXIS
| Constructor Detail |
|---|
public ChartTitle(java.awt.Font titleFont,
int color)
titleFont - the title fontcolor - the title color| Method Detail |
|---|
public boolean isShowAutoTitle()
setShowAutoTitle(boolean)public void setShowAutoTitle(boolean showAutoTitle)
showAutoTitle - whether or not the title is to be automatically generatedisShowAutoTitle()public java.lang.String getTitle()
setTitle(String),
setShowAutoTitle(boolean),
setAutoTitle(String)public void setTitle(java.lang.String title)
title - the label (null not permitted)getTitle(),
setShowAutoTitle(boolean)public int getColor()
RDC.toJavaColor(int),
setColor(int)public void setColor(int titleColor)
titleColor - ABGR components of the color
java.lang.IllegalArgumentException - by RDC.COLOR_NO_COLOR.RDC.toCcColor(Color),
getColor()public java.awt.Font getFont()
setFont(Font)public void setFont(java.awt.Font titleFont)
titleFont - the label font (null not permitted)getFont()public boolean isEqualToDefault(ChartTitle defaultTitle)
true if this title is equal to default.
defaultTitle - the default title
true if equal to default.
public void saveProperties(java.lang.StringBuffer buffer,
java.lang.String type,
int depth)
PrintWriter.
buffer - the outputtype - the type of this title: header, footer or subtitledepth - the depth of XML indentTOKEN_HEADER,
TOKEN_FOOTNOTE,
TOKEN_SUBTITLEpublic void readProperties(org.w3c.dom.Element element)
element - DOM elementsaveProperties(StringBuffer, String, int)public ChartTitle clone()
clone in class java.lang.Object
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||