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:
- 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 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
-
-
-
-
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 interfaceorg.jfree.chart.plot.dial.DialLayer
- Overrides:
draw
in 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:
equals
in classorg.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 classorg.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 interfaceorg.jfree.chart.util.PublicCloneable
- Overrides:
clone
in classorg.jfree.chart.plot.dial.StandardDialRange
- Returns:
- A clone.
- Throws:
CloneNotSupportedException
- if any of the attributes of this instance cannot be cloned.
-
-