|
Header
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.plot.dial.AbstractDialLayer
org.jfree.chart.plot.dial.DialPointer
public abstract class DialPointer
A base class for the pointer in a DialPlot.
| 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 | |
|---|---|
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. |
| 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, draw, hasListener, isVisible, removeChangeListener |
| Constructor Detail |
|---|
protected DialPointer()
DialPointer instance.
protected DialPointer(int datasetIndex)
datasetIndex - the dataset index.| Method Detail |
|---|
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 AbstractDialLayer
public 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.
|
Footer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||