public static class DialPointer.Pointer extends DialPointer
DialPointer.Pin, DialPointer.Pointer| Modifier and Type | Field and Description |
|---|---|
private java.awt.Paint |
fillPaint
The fill paint.
|
private java.awt.Paint |
outlinePaint
The outline paint.
|
(package private) static long |
serialVersionUID
For serialization.
|
private double |
widthRadius
The radius that defines the width of the pointer at the base.
|
datasetIndex, radius| Constructor and Description |
|---|
Pointer()
Creates a new instance.
|
Pointer(int datasetIndex)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.awt.Graphics2D g2,
DialPlot plot,
java.awt.geom.Rectangle2D frame,
java.awt.geom.Rectangle2D view)
Draws the pointer.
|
boolean |
equals(java.lang.Object obj)
Tests this pointer for equality with an arbitrary object.
|
java.awt.Paint |
getFillPaint()
Returns the fill paint.
|
java.awt.Paint |
getOutlinePaint()
Returns the outline paint.
|
double |
getWidthRadius()
Returns the width radius.
|
int |
hashCode()
Returns a hash code for this instance.
|
private void |
readObject(java.io.ObjectInputStream stream)
Provides serialization support.
|
void |
setFillPaint(java.awt.Paint paint)
Sets the fill paint and sends a
DialLayerChangeEvent to all
registered listeners. |
void |
setOutlinePaint(java.awt.Paint paint)
Sets the outline paint and sends a
DialLayerChangeEvent to
all registered listeners. |
void |
setWidthRadius(double radius)
Sets the width radius and sends a
DialLayerChangeEvent to
all registered listeners. |
private void |
writeObject(java.io.ObjectOutputStream stream)
Provides serialization support.
|
clone, getDatasetIndex, getRadius, isClippedToWindow, setDatasetIndex, setRadiusaddChangeListener, hasListener, isVisible, notifyListeners, removeChangeListener, setVisiblefinalize, getClass, notify, notifyAll, toString, wait, wait, waitaddChangeListener, hasListener, isVisible, removeChangeListenerstatic final long serialVersionUID
private double widthRadius
private transient java.awt.Paint fillPaint
private transient java.awt.Paint outlinePaint
public Pointer()
public Pointer(int datasetIndex)
datasetIndex - the dataset index.public double getWidthRadius()
setWidthRadius(double)public void setWidthRadius(double radius)
DialLayerChangeEvent to
all registered listeners.radius - the radiusgetWidthRadius()public java.awt.Paint getFillPaint()
null).setFillPaint(Paint)public void setFillPaint(java.awt.Paint paint)
DialLayerChangeEvent to all
registered listeners.paint - the paint (null not permitted).getFillPaint()public java.awt.Paint getOutlinePaint()
null).setOutlinePaint(Paint)public void setOutlinePaint(java.awt.Paint paint)
DialLayerChangeEvent to
all registered listeners.paint - the paint (null not permitted).getOutlinePaint()public void draw(java.awt.Graphics2D g2,
DialPlot plot,
java.awt.geom.Rectangle2D frame,
java.awt.geom.Rectangle2D view)
g2 - the graphics target.plot - the plot.frame - the dial's reference frame.view - the dial's view.public boolean equals(java.lang.Object obj)
equals in class DialPointerobj - the object (null permitted).public int hashCode()
hashCode in class DialPointerprivate void writeObject(java.io.ObjectOutputStream stream)
throws java.io.IOException
stream - the output stream.java.io.IOException - if there is an I/O error.private void readObject(java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
stream - the input stream.java.io.IOException - if there is an I/O error.java.lang.ClassNotFoundException - if there is a classpath problem.