org.jfree.chart.plot.dial
public abstract class DialPointer extends AbstractDialLayer implements DialLayer, Cloneable, PublicCloneable, Serializable
Since: 1.0.7
Nested Class Summary | |
---|---|
static class | DialPointer.Pin
A dial pointer that draws a thin line (like a pin). |
static class | DialPointer.Pointer
A dial pointer. |
Constructor Summary | |
---|---|
protected | DialPointer()
Creates a new DialPointer instance. |
protected | DialPointer(int datasetIndex)
Creates a new pointer for the specified dataset.
|
Method Summary | |
---|---|
Object | clone()
Returns a clone of the pointer.
|
boolean | equals(Object obj)
Checks this instance for equality with an arbitrary object.
|
int | getDatasetIndex()
Returns the dataset index that the pointer maps to.
|
double | getRadius()
Returns the radius of the pointer, as a percentage of the dial's
framing rectangle.
|
int | hashCode()
Returns a hash code.
|
boolean | isClippedToWindow()
Returns true to indicate that this layer should be
clipped within the dial window.
|
void | setDatasetIndex(int index)
Sets the dataset index for the pointer and sends a
DialLayerChangeEvent to all registered listeners.
|
void | setRadius(double radius)
Sets the radius of the pointer and sends a
DialLayerChangeEvent to all registered listeners.
|
DialPointer
instance.Parameters: datasetIndex the dataset index.
Returns: a clone.
Throws: CloneNotSupportedException if one of the attributes cannot be cloned.
Parameters: obj the object (null
not permitted).
Returns: A boolean.
Returns: The dataset index.
See Also: getDatasetIndex
Returns: The radius.
See Also: DialPointer
Returns: A hash code.
true
to indicate that this layer should be
clipped within the dial window.
Returns: true
.
Parameters: index the index.
See Also: getDatasetIndex
Parameters: radius the radius.
See Also: getRadius