Class ScaledDialRange

java.lang.Object
org.jfree.chart.plot.dial.AbstractDialLayer
org.jfree.chart.plot.dial.StandardDialRange
net.sf.jasperreports.chartthemes.spring.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:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    ScaledDialRange(double lower, double upper, Paint paint)
     
    ScaledDialRange(double lower, double upper, Paint paint, float lineWidth)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    Tests this instance for equality with an arbitrary object.
    int
    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 class java.lang.Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jfree.chart.plot.dial.DialLayer

    addChangeListener, hasListener, isVisible, removeChangeListener
  • Constructor Details

    • 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 Details

    • 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.