Package org.swtchart

Interface ISeriesLabel

All Known Implementing Classes:
SeriesLabel

public interface ISeriesLabel
A series label.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.swt.graphics.Font
    Gets the label font.
    org.eclipse.swt.graphics.Color
    Gets the label color.
    Gets the format for label.
    Gets the formats for all data points.
    boolean
    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(String format)
    Sets the decimal format DecimalFormat or/plus plain string.
    void
    setFormats(String[] formats)
    Sets the formats for all data points.
    void
    setVisible(boolean visible)
    Sets the label visibility state.
  • 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(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