public abstract class DialPointer extends AbstractDialLayer implements DialLayer, java.lang.Cloneable, org.jfree.util.PublicCloneable, java.io.Serializable
DialPlot.| Modifier and Type | Class and Description |
|---|---|
static class |
DialPointer.Pin
A dial pointer that draws a thin line (like a pin).
|
static class |
DialPointer.Pointer
A dial pointer.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DialPointer()
Creates a new
DialPointer instance. |
protected |
DialPointer(int datasetIndex)
Creates a new pointer for the specified dataset.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns a clone of the pointer.
|
boolean |
equals(java.lang.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. |
addChangeListener, hasListener, isVisible, notifyListeners, removeChangeListener, setVisiblefinalize, getClass, notify, notifyAll, toString, wait, wait, waitaddChangeListener, draw, hasListener, isVisible, removeChangeListenerprotected DialPointer()
DialPointer instance.protected DialPointer(int datasetIndex)
datasetIndex - the dataset index.public int getDatasetIndex()
getDatasetIndex()public void setDatasetIndex(int index)
DialLayerChangeEvent to all registered listeners.index - the index.getDatasetIndex()public double getRadius()
setRadius(double)public void setRadius(double radius)
DialLayerChangeEvent to all registered listeners.radius - the radius.getRadius()public boolean isClippedToWindow()
true to indicate that this layer should be
clipped within the dial window.isClippedToWindow in interface DialLayertrue.public boolean equals(java.lang.Object obj)
equals in class AbstractDialLayerobj - the object (null not permitted).public int hashCode()
hashCode in class AbstractDialLayerpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class AbstractDialLayerjava.lang.CloneNotSupportedException - if one of the attributes cannot
be cloned.