Class ScaledDialRange

  • All Implemented Interfaces:
    Serializable, Cloneable, org.jfree.chart.plot.dial.DialLayer, org.jfree.chart.util.PublicCloneable

    public class ScaledDialRange
    extends org.jfree.chart.plot.dial.StandardDialRange
    Author:
    Sanda Zaharia (shertage@users.sourceforge.net)
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Object clone()
      Returns a clone of this instance.
      void draw​(Graphics2D g2, org.jfree.chart.plot.dial.DialPlot plot, Rectangle2D frame, Rectangle2D view)
      Draws the range.
      boolean equals​(Object obj)
      Tests this instance for equality with an arbitrary object.
      int hashCode()
      Returns a hash code for this instance.
      • Methods inherited from class org.jfree.chart.plot.dial.StandardDialRange

        getInnerRadius, getLowerBound, getOuterRadius, getPaint, getScaleIndex, getUpperBound, isClippedToWindow, setBounds, setInnerRadius, setLowerBound, setOuterRadius, setPaint, setScaleIndex, setUpperBound
      • Methods inherited from class org.jfree.chart.plot.dial.AbstractDialLayer

        addChangeListener, hasListener, isVisible, notifyListeners, removeChangeListener, setVisible
      • Methods inherited from interface org.jfree.chart.plot.dial.DialLayer

        addChangeListener, hasListener, isVisible, removeChangeListener
    • Constructor Detail

      • ScaledDialRange

        public ScaledDialRange()
      • ScaledDialRange

        public ScaledDialRange​(double lower,
                               double upper,
                               Paint paint)
        Parameters:
        lower -
        upper -
        paint -
      • ScaledDialRange

        public ScaledDialRange​(double lower,
                               double upper,
                               Paint paint,
                               float lineWidth)
        Parameters:
        lower -
        upper -
        paint -
        lineWidth -
    • Method Detail

      • draw

        public void draw​(Graphics2D g2,
                         org.jfree.chart.plot.dial.DialPlot plot,
                         Rectangle2D frame,
                         Rectangle2D view)
        Draws the range.
        Specified by:
        draw in interface org.jfree.chart.plot.dial.DialLayer
        Overrides:
        draw in class org.jfree.chart.plot.dial.StandardDialRange
        Parameters:
        g2 - the graphics target.
        plot - the plot.
        frame - the dial's reference frame (in Java2D space).
        view - the dial's view rectangle (in Java2D space).
      • equals

        public boolean equals​(Object obj)
        Tests this instance for equality with an arbitrary object.
        Overrides:
        equals in class org.jfree.chart.plot.dial.StandardDialRange
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.
      • hashCode

        public int hashCode()
        Returns a hash code for this instance.
        Overrides:
        hashCode in class org.jfree.chart.plot.dial.StandardDialRange
        Returns:
        The hash code.
      • clone

        public Object clone()
                     throws CloneNotSupportedException
        Returns a clone of this instance.
        Specified by:
        clone in interface org.jfree.chart.util.PublicCloneable
        Overrides:
        clone in class org.jfree.chart.plot.dial.StandardDialRange
        Returns:
        A clone.
        Throws:
        CloneNotSupportedException - if any of the attributes of this instance cannot be cloned.