Class ExtendedCategoryAxis

All Implemented Interfaces:
Serializable, Cloneable

public class ExtendedCategoryAxis
extends CategoryAxis
An extended version of the CategoryAxis class that supports sublabels on the axis.
See Also:
Serialized Form
  • Constructor Details

    • ExtendedCategoryAxis

      public ExtendedCategoryAxis​(String label)
      Creates a new axis.
      Parameters:
      label - the axis label.
  • Method Details

    • getSubLabelFont

      public Font getSubLabelFont()
      Returns the font for the sublabels.
      Returns:
      the font.
    • setSubLabelFont

      public void setSubLabelFont​(Font font)
      Sets the font for the sublabels.
      Parameters:
      font - the font.
    • getSubLabelPaint

      public Paint getSubLabelPaint()
      Returns the paint for the sublabels.
      Returns:
      the paint.
    • setSubLabelPaint

      public void setSubLabelPaint​(Paint paint)
      Sets the paint for the sublabels.
      Parameters:
      paint - the paint.
    • addSubLabel

      public void addSubLabel​(Comparable category, String label)
      Adds a sublabel for a category.
      Parameters:
      category - the category.
      label - the label.