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.util.PublicCloneable
public class ScaledDialPointer extends org.jfree.chart.plot.dial.DialPointer.Pointer- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScaledDialPointer()Creates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(Graphics2D g2, org.jfree.chart.plot.dial.DialPlot plot, Rectangle2D frame, Rectangle2D view)Draws the pointer.booleanequals(Object obj)Tests this pointer for equality with an arbitrary object.PaintgetFillPaint()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, setWidthRadius
-
Methods inherited from class org.jfree.chart.plot.dial.DialPointer
clone, getDatasetIndex, getRadius, isClippedToWindow, setDatasetIndex, setRadius
-
Methods inherited from class org.jfree.chart.plot.dial.AbstractDialLayer
addChangeListener, hasListener, isVisible, notifyListeners, removeChangeListener, setVisible
-
-
-
-
Constructor Detail
-
ScaledDialPointer
public ScaledDialPointer()
Creates a new instance.
-
ScaledDialPointer
public ScaledDialPointer(int scale)
Creates a new instance.
-
ScaledDialPointer
public ScaledDialPointer(int scale, Paint fillPaint, Paint outlinePaint)Creates a new instance.
-
ScaledDialPointer
public ScaledDialPointer(int scale, double widthRadius)Creates a new instance.
-
-
Method Detail
-
getFillPaint
public Paint getFillPaint()
Returns the fill paint.- Overrides:
getFillPaintin classorg.jfree.chart.plot.dial.DialPointer.Pointer- Returns:
- The paint (never
null). - Since:
- 1.0.8
-
setFillPaint
public void setFillPaint(Paint paint)
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:
getFillPaint()
-
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
public boolean equals(Object obj)
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.
-
-