public class Title extends Canvas implements ITitle
| Modifier and Type | Field and Description |
|---|---|
protected Chart |
chart
the chart
|
protected boolean |
isVisible
the visibility state of axis
|
protected java.lang.String |
text
the title text
|
| Constructor and Description |
|---|
Title(Chart parent,
int style)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
protected java.lang.String |
getDefaultText()
Gets the default title text.
|
StyleRange[] |
getStyleRanges()
Gets the style ranges.
|
java.lang.String |
getText()
Gets the title text.
|
protected boolean |
isHorizontal()
Gets the state indicating if showing title horizontally.
|
boolean |
isVisible()
Gets the visibility state.
|
void |
paintControl(PaintEvent e) |
void |
setFont(Font font)
Sets the font for title text.
|
void |
setForeground(Color color)
Sets the foreground color of title.
|
void |
setStyleRanges(StyleRange[] ranges)
Sets the style ranges.
|
void |
setText(java.lang.String text)
Sets the title text.
|
void |
setVisible(boolean isVisible)
Sets the visibility state of title.
|
void |
updateLayoutData()
Updates the title layout data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFont, getForegroundprotected Chart chart
protected java.lang.String text
protected boolean isVisible
public Title(Chart parent, int style)
parent - the parent compositestyle - the stylepublic void setText(java.lang.String text)
ITitleprotected java.lang.String getDefaultText()
public java.lang.String getText()
ITitlepublic void setFont(Font font)
ITitlepublic void setForeground(Color color)
ITitlesetForeground in interface ITitlecolor - the foreground color of titlepublic void setStyleRanges(StyleRange[] ranges)
ITitleITitle.setFont(Font) and ITitle.setForeground(Color)
makes no effect. Instead, the font and background color in style ranges
are used.setStyleRanges in interface ITitleranges - the style ranges, or null to clear the currently set
style ranges.public StyleRange[] getStyleRanges()
ITitlegetStyleRanges in interface ITitlepublic void setVisible(boolean isVisible)
ITitlesetVisible in interface ITitleisVisible - the visibility statepublic boolean isVisible()
ITitleprotected boolean isHorizontal()
public void updateLayoutData()
public void dispose()
public void paintControl(PaintEvent e)