Documentation of 'org.jfree.chart.axis.ExtendedCategoryAxis' Java class
ExtendedCategoryAxis
org.jfree.chart.axis

Class ExtendedCategoryAxis

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


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

      • ExtendedCategoryAxis

        public ExtendedCategoryAxis(java.lang.String label)
        Creates a new axis.
        Parameters:
        label - the axis label.
    • Method Detail

      • getSubLabelFont

        public java.awt.Font getSubLabelFont()
        Returns the font for the sublabels.
        Returns:
        The font (never null).
        See Also:
        setSubLabelFont(Font)
      • setSubLabelFont

        public void setSubLabelFont(java.awt.Font font)
        Sets the font for the sublabels and sends an AxisChangeEvent to all registered listeners.
        Parameters:
        font - the font (null not permitted).
        See Also:
        getSubLabelFont()
      • getSubLabelPaint

        public java.awt.Paint getSubLabelPaint()
        Returns the paint for the sublabels.
        Returns:
        The paint (never null).
        See Also:
        setSubLabelPaint(Paint)
      • setSubLabelPaint

        public void setSubLabelPaint(java.awt.Paint paint)
        Sets the paint for the sublabels and sends an AxisChangeEvent to all registered listeners.
        Parameters:
        paint - the paint (null not permitted).
        See Also:
        getSubLabelPaint()
      • addSubLabel

        public void addSubLabel(java.lang.Comparable category,
                                java.lang.String label)
        Adds a sublabel for a category.
        Parameters:
        category - the category.
        label - the label.
      • equals

        public boolean equals(java.lang.Object obj)
        Tests this axis for equality with an arbitrary object.
        Overrides:
        equals in class CategoryAxis
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Returns a clone of this axis.
        Overrides:
        clone in class CategoryAxis
        Returns:
        A clone.
        Throws:
        java.lang.CloneNotSupportedException - if there is a problem cloning.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.