Interface ISeriesLabel
- All Known Implementing Classes:
SeriesLabel
public interface ISeriesLabel
A series label.
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.graphics.FontgetFont()Gets the label font.org.eclipse.swt.graphics.ColorGets the label color.Gets the format for label.String[]Gets the formats for all data points.booleanGets the label visibility state.voidsetFont(org.eclipse.swt.graphics.Font font) Sets the label font.voidsetForeground(org.eclipse.swt.graphics.Color color) Sets the label color.voidSets the decimal formatDecimalFormator/plus plain string.voidsetFormats(String[] formats) Sets the formats for all data points.voidsetVisible(boolean visible) Sets the label visibility state.
-
Method Details
-
setFormat
Sets the decimal formatDecimalFormator/plus plain string.If formats have been set with setFormats(String[]), the format set with this method will be ignored.
If null is given, default format "#.###########" will be set.
- Parameters:
format- the format
-
getFormat
-
setFormats
Sets the formats for all data points. If null or empty array is given, formats will be cleared, and the format set with setFormat(String) will be used instead.- Parameters:
formats- the formats
-
getFormats
String[] getFormats()Gets the formats for all data points.- Returns:
- the formats, or empty array if not set
-
setForeground
void setForeground(org.eclipse.swt.graphics.Color color) Sets the label color. If null is given, default color will be set.- Parameters:
color- the label color
-
getForeground
org.eclipse.swt.graphics.Color getForeground()Gets the label color.- Returns:
- the label color
-
setFont
void setFont(org.eclipse.swt.graphics.Font font) Sets the label font.- Parameters:
font- the label font
-
getFont
org.eclipse.swt.graphics.Font getFont()Gets the label font.- Returns:
- the label font
-
setVisible
void setVisible(boolean visible) Sets the label visibility state.- Parameters:
visible- the label visibility state
-
isVisible
boolean isVisible()Gets the label visibility state.- Returns:
- true if label is visible
-