public static class DialPointer.Pin extends DialPointer
DialPointer.Pin, DialPointer.Pointer| Constructor and Description |
|---|
Pin()
Creates a new instance.
|
Pin(int datasetIndex)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D g2,
DialPlot plot,
Rectangle2D frame,
Rectangle2D view)
Draws the pointer.
|
boolean |
equals(Object obj)
Tests this pointer for equality with an arbitrary object.
|
Paint |
getPaint()
Returns the paint.
|
Stroke |
getStroke()
Returns the stroke.
|
int |
hashCode()
Returns a hash code for this instance.
|
void |
setPaint(Paint paint)
Sets the paint and sends a
DialLayerChangeEvent to all
registered listeners. |
void |
setStroke(Stroke stroke)
Sets the stroke and sends a
DialLayerChangeEvent to all
registered listeners. |
clone, getDatasetIndex, getRadius, isClippedToWindow, setDatasetIndex, setRadiusaddChangeListener, hasListener, isVisible, notifyListeners, removeChangeListener, setVisiblefinalize, getClass, notify, notifyAll, toString, wait, wait, waitaddChangeListener, hasListener, isVisible, removeChangeListenerpublic Pin()
public Pin(int datasetIndex)
datasetIndex - the dataset index.public Paint getPaint()
null).setPaint(Paint)public void setPaint(Paint paint)
DialLayerChangeEvent to all
registered listeners.paint - the paint (null not permitted).getPaint()public Stroke getStroke()
null).setStroke(Stroke)public void setStroke(Stroke stroke)
DialLayerChangeEvent to all
registered listeners.stroke - the stroke (null not permitted).getStroke()public void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view)
g2 - the graphics target.plot - the plot.frame - the dial's reference frame.view - the dial's view.public boolean equals(Object obj)
equals in class DialPointerobj - the object (null permitted).public int hashCode()
hashCode in class DialPointerCopyright © 2001–2017 JFree.org. All rights reserved.