public static class DialPointer.Pin extends DialPointer
DialPointer.Pin, DialPointer.Pointer| Modifier and Type | Field and Description |
|---|---|
private java.awt.Paint |
paint
The paint.
|
(package private) static long |
serialVersionUID
For serialization.
|
private java.awt.Stroke |
stroke
The stroke.
|
datasetIndex, radius| Constructor and Description |
|---|
Pin()
Creates a new instance.
|
Pin(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 |
getPaint()
Returns the paint.
|
java.awt.Stroke |
getStroke()
Returns the stroke.
|
int |
hashCode()
Returns a hash code for this instance.
|
private void |
readObject(java.io.ObjectInputStream stream)
Provides serialization support.
|
void |
setPaint(java.awt.Paint paint)
Sets the paint and sends a
DialLayerChangeEvent to all
registered listeners. |
void |
setStroke(java.awt.Stroke stroke)
Sets the stroke 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 transient java.awt.Paint paint
private transient java.awt.Stroke stroke
public Pin()
public Pin(int datasetIndex)
datasetIndex - the dataset index.public java.awt.Paint getPaint()
null).setPaint(Paint)public void setPaint(java.awt.Paint paint)
DialLayerChangeEvent to all
registered listeners.paint - the paint (null not permitted).getPaint()public java.awt.Stroke getStroke()
null).setStroke(Stroke)public void setStroke(java.awt.Stroke stroke)
DialLayerChangeEvent to all
registered listeners.stroke - the stroke (null not permitted).getStroke()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.