Package org.swtchart

Interface ISeriesLabel

All Known Implementing Classes:
SeriesLabel

public interface ISeriesLabel
A series label.
  • Method Details

    • setFormat

      void setFormat(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

      String getFormat()
      Gets the format for label.
      Returns:
      the format
    • setFormats

      void setFormats(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

      String[] getFormats()
      Gets the formats for all data points.
      Returns:
      the formats, or empty array if not set
    • 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