public static class DialPointer.Pointer extends DialPointer
DialPointer.Pin, DialPointer.Pointer
Constructor and Description |
---|
Pointer()
Creates a new instance.
|
Pointer(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 |
getFillPaint()
Returns the fill paint.
|
Paint |
getOutlinePaint()
Returns the outline paint.
|
double |
getWidthRadius()
Returns the width radius.
|
int |
hashCode()
Returns a hash code for this instance.
|
void |
setFillPaint(Paint paint)
Sets the fill paint and sends a
DialLayerChangeEvent to all
registered listeners. |
void |
setOutlinePaint(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. |
clone, getDatasetIndex, getRadius, isClippedToWindow, setDatasetIndex, setRadius
addChangeListener, hasListener, isVisible, removeChangeListener, setVisible
getClass, notify, notifyAll, toString, wait, wait, wait
addChangeListener, hasListener, isVisible, removeChangeListener
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 Paint getFillPaint()
null
).setFillPaint(Paint)
public void setFillPaint(Paint paint)
DialLayerChangeEvent
to all
registered listeners.paint
- the paint (null
not permitted).getFillPaint()
public Paint getOutlinePaint()
null
).setOutlinePaint(Paint)
public void setOutlinePaint(Paint paint)
DialLayerChangeEvent
to
all registered listeners.paint
- the paint (null
not permitted).getOutlinePaint()
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 DialPointer
obj
- the object (null
permitted).public int hashCode()
hashCode
in class DialPointer
Jas4pp 1.5 © Java Analysis Studio for Particle Physics