org.jfree.chart.plot.dial
Class DialPointer.Pin
- DialPointer
- Cloneable, DialLayer, PublicCloneable, Serializable
A dial pointer that draws a thin line (like a pin).
Pin() - Creates a new instance.
|
Pin(int datasetIndex) - Creates a new instance.
|
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.
|
Pin
public Pin()
Creates a new instance.
Pin
public Pin(int datasetIndex)
Creates a new instance.
datasetIndex
- the dataset index.
draw
public void draw(Graphics2D g2,
DialPlot plot,
Rectangle2D frame,
Rectangle2D view)
Draws the pointer.
- draw in interface DialLayer
g2
- the graphics target.plot
- the plot.frame
- the dial's reference frame.view
- the dial's view.
equals
public boolean equals(Object obj)
Tests this pointer for equality with an arbitrary object.
- equals in interface DialPointer
obj
- the object (null
permitted).
getPaint
public Paint getPaint()
Returns the paint.
getStroke
public Stroke getStroke()
Returns the stroke.
setPaint
public void setPaint(Paint paint)
paint
- the paint (null
not permitted).
setStroke
public void setStroke(Stroke stroke)
stroke
- the stroke (null
not permitted).