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:
- 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 void
draw(Graphics2D g2, org.jfree.chart.plot.dial.DialPlot plot, Rectangle2D frame, Rectangle2D view)
Draws the pointer.boolean
equals(Object obj)
Tests this pointer for equality with an arbitrary object.Paint
getFillPaint()
Returns the fill paint.int
hashCode()
Returns a hash code for this instance.void
setFillPaint(Paint paint)
Sets the fill paint and sends aDialLayerChangeEvent
to 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:
getFillPaint
in 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 aDialLayerChangeEvent
to all registered listeners.- Overrides:
setFillPaint
in classorg.jfree.chart.plot.dial.DialPointer.Pointer
- Parameters:
paint
- the paint (null
not 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:
draw
in interfaceorg.jfree.chart.plot.dial.DialLayer
- Overrides:
draw
in 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:
equals
in classorg.jfree.chart.plot.dial.DialPointer.Pointer
- 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.DialPointer.Pointer
- Returns:
- A hash code.
-
-