Class ScaledDialPointer
java.lang.Object
org.jfree.chart.plot.dial.AbstractDialLayer
org.jfree.chart.plot.dial.DialPointer
org.jfree.chart.plot.dial.DialPointer.Pointer
net.sf.jasperreports.chartthemes.spring.ScaledDialPointer
- All Implemented Interfaces:
Serializable,Cloneable,org.jfree.chart.plot.dial.DialLayer,org.jfree.chart.util.PublicCloneable
public class ScaledDialPointer
extends org.jfree.chart.plot.dial.DialPointer.Pointer
- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jfree.chart.plot.dial.DialPointer
org.jfree.chart.plot.dial.DialPointer.Pin, org.jfree.chart.plot.dial.DialPointer.Pointer -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.ScaledDialPointer(int scale) Creates a new instance.ScaledDialPointer(int scale, double widthRadius) Creates a new instance.ScaledDialPointer(int datasetIndex, double widthRadius, Paint fillPaint, Paint outlinePaint, int scale) Creates a new instance.ScaledDialPointer(int scale, Paint fillPaint, Paint outlinePaint) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(Graphics2D g2, org.jfree.chart.plot.dial.DialPlot plot, Rectangle2D frame, Rectangle2D view) Draws the pointer.booleanTests this pointer for equality with an arbitrary object.Returns the fill paint.inthashCode()Returns a hash code for this instance.voidsetFillPaint(Paint paint) Sets the fill paint and sends aDialLayerChangeEventto all registered listeners.Methods inherited from class org.jfree.chart.plot.dial.DialPointer.Pointer
getOutlinePaint, getWidthRadius, setOutlinePaint, setWidthRadiusMethods inherited from class org.jfree.chart.plot.dial.DialPointer
clone, getDatasetIndex, getRadius, isClippedToWindow, setDatasetIndex, setRadiusMethods 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
-
ScaledDialPointer
public ScaledDialPointer()Creates a new instance. -
ScaledDialPointer
public ScaledDialPointer(int scale) Creates a new instance. -
ScaledDialPointer
Creates a new instance. -
ScaledDialPointer
public ScaledDialPointer(int scale, double widthRadius) Creates a new instance. -
ScaledDialPointer
public ScaledDialPointer(int datasetIndex, double widthRadius, Paint fillPaint, Paint outlinePaint, int scale) Creates a new instance.- Parameters:
datasetIndex- the dataset index.
-
-
Method Details
-
getFillPaint
Returns the fill paint.- Overrides:
getFillPaintin classorg.jfree.chart.plot.dial.DialPointer.Pointer- Returns:
- The paint (never
null). - Since:
- 1.0.8
-
setFillPaint
Sets the fill paint and sends aDialLayerChangeEventto all registered listeners.- Overrides:
setFillPaintin classorg.jfree.chart.plot.dial.DialPointer.Pointer- Parameters:
paint- the paint (nullnot permitted).- Since:
- 1.0.8
- See Also:
-
draw
public void draw(Graphics2D g2, org.jfree.chart.plot.dial.DialPlot plot, Rectangle2D frame, Rectangle2D view) Draws the pointer.- Specified by:
drawin interfaceorg.jfree.chart.plot.dial.DialLayer- Overrides:
drawin classorg.jfree.chart.plot.dial.DialPointer.Pointer- Parameters:
g2- the graphics target.plot- the plot.frame- the dial's reference frame.view- the dial's view.
-
equals
Tests this pointer for equality with an arbitrary object.- Overrides:
equalsin classorg.jfree.chart.plot.dial.DialPointer.Pointer- 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.DialPointer.Pointer- Returns:
- A hash code.
-