Package org.swtchart
Interface ITitle
- All Known Implementing Classes:
AxisTitle,ChartTitle,Title
public interface ITitle
A title.
-
Method Summary
Modifier and TypeMethodDescriptionFontgetFont()Gets the font for title text.ColorGets the foreground color of title.StyleRange[]Gets the style ranges.getText()Gets the title text.booleanGets the visibility state.voidsetFont(Font font) Sets the font for title text.voidsetForeground(Color color) Sets the foreground color of title.voidsetStyleRanges(StyleRange[] styleRanges) Sets the style ranges.voidSets the title text.voidsetVisible(boolean visible) Sets the visibility state of title.
-
Method Details
-
setText
Sets the title text.- Parameters:
title- the title text
-
getText
String getText()Gets the title text.- Returns:
- the title text
-
setFont
void setFont(Font font) Sets the font for title text.- Parameters:
font- the font for title text
-
getFont
Font getFont()Gets the font for title text.- Returns:
- the font size for title text
-
setForeground
void setForeground(Color color) Sets the foreground color of title.- Parameters:
color- the foreground color of title
-
getForeground
Color getForeground()Gets the foreground color of title.- Returns:
- the foreground color of title
-
setStyleRanges
void setStyleRanges(StyleRange[] styleRanges) Sets the style ranges. When style ranges are set, the font and background color set bysetFont(Font)andsetForeground(Color)makes no effect. Instead, the font and background color in style ranges are used.- Parameters:
styleRanges- the style ranges, or null to clear the currently set style ranges.
-
getStyleRanges
StyleRange[] getStyleRanges()Gets the style ranges.- Returns:
- the style ranges
-
setVisible
void setVisible(boolean visible) Sets the visibility state of title.- Parameters:
visible- the visibility state
-
isVisible
boolean isVisible()Gets the visibility state.- Returns:
- true if title is visible
-