Class ExtendedCategoryAxis

    • Constructor Detail

      • ExtendedCategoryAxis

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

      • 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()
      • 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.
      • createLabel

        protected org.jfree.text.TextBlock createLabel​(java.lang.Comparable category,
                                                       float width,
                                                       org.jfree.ui.RectangleEdge edge,
                                                       java.awt.Graphics2D g2)
        Overrides the default behaviour by adding the sublabel to the text block that is used for the category label.
        Overrides:
        createLabel in class CategoryAxis
        Parameters:
        category - the category.
        width - the width (not used yet).
        edge - the location of the axis.
        g2 - the graphics device.
        Returns:
        A 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.