ITitle
AxisTitle
, ChartTitle
public 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)
ITitle
protected java.lang.String getDefaultText()
public java.lang.String getText()
ITitle
public void setFont(Font font)
public Font getFont()
public void setForeground(Color color)
setForeground
in interface ITitle
color
- the foreground colorpublic Color getForeground()
getForeground
in interface ITitle
public 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 ITitle
ranges
- the style ranges, or null to clear the currently set
style ranges.public StyleRange[] getStyleRanges()
ITitle
getStyleRanges
in interface ITitle
public void setVisible(boolean isVisible)
ITitle
setVisible
in interface ITitle
isVisible
- the visibility statepublic boolean isVisible()
ITitle
protected 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()