Package org.swtchart
Interface ISeriesLabel
-
- All Known Implementing Classes:
SeriesLabel
public interface ISeriesLabel
A series label.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.swt.graphics.Font
getFont()
Gets the label font.org.eclipse.swt.graphics.Color
getForeground()
Gets the label color.java.lang.String
getFormat()
Gets the format for label.java.lang.String[]
getFormats()
Gets the formats for all data points.boolean
isVisible()
Gets the label visibility state.void
setFont(org.eclipse.swt.graphics.Font font)
Sets the label font.void
setForeground(org.eclipse.swt.graphics.Color color)
Sets the label color.void
setFormat(java.lang.String format)
Sets the decimal formatDecimalFormat
or/plus plain string.void
setFormats(java.lang.String[] formats)
Sets the formats for all data points.void
setVisible(boolean visible)
Sets the label visibility state.
-
-
-
Method Detail
-
setFormat
void setFormat(java.lang.String format)
Sets the decimal formatDecimalFormat
or/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
java.lang.String getFormat()
Gets the format for label.- Returns:
- the format
-
setFormats
void setFormats(java.lang.String[] formats)
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
java.lang.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
-
-