ITitleAxisTitle, ChartTitlepublic class Title extends java.lang.Object implements ITitle
| Modifier and Type | Field | Description |
|---|---|---|
protected Chart |
chart |
the chart
|
protected boolean |
isVisible |
the visibility state of axis
|
protected java.lang.String |
text |
the title text
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
dispose() |
Disposes the resources.
|
Rectangle |
getBounds() |
Gets the bounds on chart panel.
|
protected java.lang.String |
getDefaultText() |
Gets the default title text.
|
Font |
getFont() |
Gets the font.
|
Color |
getForeground() |
Gets the foreground color.
|
ChartLayoutData |
getLayoutData() |
Gets the layout data.
|
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 |
setBounds(int x,
int y,
int width,
int height) |
Sets the bounds on chart panel.
|
void |
setFont(Font font) |
Sets the font.
|
void |
setForeground(Color color) |
Sets the foreground color.
|
void |
setLayoutData(ChartLayoutData layoutData) |
Sets the layout data.
|
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.
|
protected Chart chart
protected java.lang.String text
protected boolean isVisible
public Title(Chart parent)
parent - the parent compositepublic void setText(java.lang.String text)
ITitleprotected java.lang.String getDefaultText()
public java.lang.String getText()
ITitlepublic void setFont(Font font)
public Font getFont()
public void setForeground(Color color)
setForeground in interface ITitlecolor - the foreground colorpublic Color getForeground()
getForeground in interface ITitlepublic void setStyleRanges(StyleRange[] ranges)
ITitle#setFont(Font) and #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 setLayoutData(ChartLayoutData layoutData)
layoutData - the layout datapublic ChartLayoutData getLayoutData()
public void dispose()
public void paintControl(PaintEvent e)
public void setBounds(int x,
int y,
int width,
int height)
x - the x coordinatey - the y coordinatewidth - the widthheight - the heightpublic Rectangle getBounds()