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.util.PublicCloneable
public class ScaledDialRange extends org.jfree.chart.plot.dial.StandardDialRange- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScaledDialRange()ScaledDialRange(double lower, double upper, Paint paint)ScaledDialRange(double lower, double upper, Paint paint, float lineWidth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Returns a clone of this instance.voiddraw(Graphics2D g2, org.jfree.chart.plot.dial.DialPlot plot, Rectangle2D frame, Rectangle2D view)Draws the range.booleanequals(Object obj)Tests 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, setUpperBound
-
Methods inherited from class org.jfree.chart.plot.dial.AbstractDialLayer
addChangeListener, hasListener, isVisible, notifyListeners, removeChangeListener, setVisible
-
-
-
-
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:
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
public boolean equals(Object obj)
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
public Object clone() throws CloneNotSupportedException
Returns a clone of this instance.- Specified by:
clonein interfaceorg.jfree.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.
-
-