- java.lang.Object
-
- org.jfree.chart.plot.dial.AbstractDialLayer
-
- org.jfree.chart.plot.dial.DialPointer
-
- org.jfree.chart.plot.dial.DialPointer.Pointer
-
- All Implemented Interfaces:
Serializable,Cloneable,PublicCloneable,DialLayer
- Enclosing class:
- DialPointer
public static class DialPointer.Pointer extends DialPointer
A dial pointer.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jfree.chart.plot.dial.DialPointer
DialPointer.Pin, DialPointer.Pointer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(Graphics2D g2, 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.PaintgetOutlinePaint()Returns the outline paint.doublegetWidthRadius()Returns the width radius.inthashCode()Returns a hash code for this instance.voidsetFillPaint(Paint paint)Sets the fill paint and sends aDialLayerChangeEventto all registered listeners.voidsetOutlinePaint(Paint paint)Sets the outline paint and sends aDialLayerChangeEventto all registered listeners.voidsetWidthRadius(double radius)Sets the width radius and sends aDialLayerChangeEventto all registered listeners.-
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
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jfree.chart.plot.dial.DialLayer
addChangeListener, hasListener, isVisible, removeChangeListener
-
-
-
-
Method Detail
-
getWidthRadius
public double getWidthRadius()
Returns the width radius.- Returns:
- The width radius.
- See Also:
setWidthRadius(double)
-
setWidthRadius
public void setWidthRadius(double radius)
Sets the width radius and sends aDialLayerChangeEventto all registered listeners.- Parameters:
radius- the radius- See Also:
getWidthRadius()
-
getFillPaint
public Paint getFillPaint()
Returns the fill paint.- Returns:
- The paint (never
null). - See Also:
setFillPaint(Paint)
-
setFillPaint
public void setFillPaint(Paint paint)
Sets the fill paint and sends aDialLayerChangeEventto all registered listeners.- Parameters:
paint- the paint (nullnot permitted).- See Also:
getFillPaint()
-
getOutlinePaint
public Paint getOutlinePaint()
Returns the outline paint.- Returns:
- The paint (never
null). - See Also:
setOutlinePaint(Paint)
-
setOutlinePaint
public void setOutlinePaint(Paint paint)
Sets the outline paint and sends aDialLayerChangeEventto all registered listeners.- Parameters:
paint- the paint (nullnot permitted).- See Also:
getOutlinePaint()
-
draw
public void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view)
Draws the 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 classDialPointer- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
hashCode
public int hashCode()
Returns a hash code for this instance.- Overrides:
hashCodein classDialPointer- Returns:
- A hash code.
-
-