|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCanvas
org.swtchart.internal.Title
public class Title
A base class for title.
Field Summary | |
---|---|
protected Chart |
chart
the chart |
protected boolean |
isVisible
the visibility state of axis |
protected java.lang.String |
text
the title text |
Constructor Summary | |
---|---|
Title(Chart parent,
int style)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.swtchart.ITitle |
---|
getFont, getForeground |
Field Detail |
---|
protected Chart chart
protected java.lang.String text
protected boolean isVisible
Constructor Detail |
---|
public Title(Chart parent, int style)
parent
- the parent compositestyle
- the styleMethod Detail |
---|
public void setText(java.lang.String text)
ITitle
setText
in interface ITitle
text
- the title textprotected java.lang.String getDefaultText()
public java.lang.String getText()
ITitle
getText
in interface ITitle
public void setFont(Font font)
ITitle
setFont
in interface ITitle
font
- the font for title textpublic void setForeground(Color color)
ITitle
setForeground
in interface ITitle
color
- the foreground color of titlepublic void setStyleRanges(StyleRange[] ranges)
ITitle
ITitle.setFont(Font)
and ITitle.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
isVisible
in interface ITitle
protected boolean isHorizontal()
public void updateLayoutData()
public void dispose()
public void paintControl(PaintEvent e)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |