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
ConstructorsConstructorDescriptionScaledDialRange(double lower, double upper, Paint paint) ScaledDialRange(double lower, double upper, Paint paint, float lineWidth) -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a clone of this instance.voiddraw(Graphics2D g2, org.jfree.chart.plot.dial.DialPlot plot, Rectangle2D frame, Rectangle2D view) Draws the range.booleanTests this instance for equality with an arbitrary object.inthashCode()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, setUpperBoundMethods inherited from class org.jfree.chart.plot.dial.AbstractDialLayer
addChangeListener, hasListener, isVisible, notifyListeners, removeChangeListener, setVisibleMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jfree.chart.plot.dial.DialLayer
addChangeListener, hasListener, isVisible, removeChangeListener
-
Constructor Details
-
ScaledDialRange
public ScaledDialRange() -
ScaledDialRange
- Parameters:
lower-upper-paint-
-
ScaledDialRange
- 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:
drawin interfaceorg.jfree.chart.plot.dial.DialLayer- Overrides:
drawin classorg.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
Tests this instance for equality with an arbitrary object.- Overrides:
equalsin classorg.jfree.chart.plot.dial.StandardDialRange- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
hashCode
public int hashCode()Returns a hash code for this instance.- Overrides:
hashCodein classorg.jfree.chart.plot.dial.StandardDialRange- Returns:
- The hash code.
-
clone
Returns a clone of this instance.- Specified by:
clonein interfaceorg.jfree.chart.util.PublicCloneable- Overrides:
clonein classorg.jfree.chart.plot.dial.StandardDialRange- Returns:
- A clone.
- Throws:
CloneNotSupportedException- if any of the attributes of this instance cannot be cloned.
-