org.jfree.chart.plot.dial

Class DialPointer.Pointer

Enclosing Class:
DialPointer
Implemented Interfaces:
Cloneable, DialLayer, PublicCloneable, Serializable

public static class DialPointer.Pointer
extends DialPointer

A dial pointer.

Nested Class Summary

Nested classes/interfaces inherited from class org.jfree.chart.plot.dial.DialPointer

DialPointer.Pin, DialPointer.Pointer

Constructor Summary

Pointer()
Creates a new instance.
Pointer(int datasetIndex)
Creates a new instance.

Method Summary

void
draw(Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view)
Draws the pointer.
boolean
equals(Object obj)
Tests this pointer for equality with an arbitrary object.
double
getWidthRadius()
Returns the width radius.
int
hashCode()
Returns a hash code for this instance.
void
setWidthRadius(double radius)
Sets the width radius and sends a DialLayerChangeEvent to all registered listeners.

Methods inherited from class org.jfree.chart.plot.dial.DialPointer

clone, equals, getDatasetIndex, getRadius, hashCode, isClippedToWindow, setDatasetIndex, setRadius

Methods inherited from class org.jfree.chart.plot.dial.AbstractDialLayer

addChangeListener, clone, equals, hasListener, hashCode, isVisible, notifyListeners, removeChangeListener, setVisible

Constructor Details

Pointer

public Pointer()
Creates a new instance.

Pointer

public Pointer(int datasetIndex)
Creates a new instance.
Parameters:
datasetIndex - the dataset index.

Method Details

draw

public void draw(Graphics2D g2,
                 DialPlot plot,
                 Rectangle2D frame,
                 Rectangle2D view)
Draws the pointer.
Specified by:
draw in interface DialLayer
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 interface DialPointer
Parameters:
obj - the object (null permitted).
Returns:
A boolean.

getWidthRadius

public double getWidthRadius()
Returns the width radius.
Returns:
The width radius.

hashCode

public int hashCode()
Returns a hash code for this instance.
Overrides:
hashCode in interface DialPointer
Returns:
A hash code.

setWidthRadius

public void setWidthRadius(double radius)
Sets the width radius and sends a DialLayerChangeEvent to all registered listeners.
Parameters:
radius - the radius