org.swtchart
Interface ISeriesLabel

All Known Implementing Classes:
SeriesLabel

public interface ISeriesLabel

A series label.


Method Summary
 Font getFont()
          Gets the label font.
 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(Font font)
          Sets the label font.
 void setForeground(Color color)
          Sets the label color.
 void setFormat(java.lang.String format)
          Sets the decimal format DecimalFormat 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 format DecimalFormat 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 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

setForeground

void setForeground(Color color)
Sets the label color. If null is given, default color will be set.

Parameters:
color - the label color

getForeground

Color getForeground()
Gets the label color.

Returns:
the label color

setFont

void setFont(Font font)
Sets the label font.

Parameters:
font - the label font

getFont

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