org.jfree.chart.plot.dial

Class DialPointer.Pointer

public static class DialPointer.Pointer extends DialPointer

A dial pointer.
Constructor Summary
Pointer()
Creates a new instance.
Pointer(int datasetIndex)
Creates a new instance.
Method Summary
voiddraw(Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view)
Draws the pointer.
booleanequals(Object obj)
Tests this pointer for equality with an arbitrary object.
PaintgetFillPaint()
Returns the fill paint.
PaintgetOutlinePaint()
Returns the outline paint.
doublegetWidthRadius()
Returns the width radius.
inthashCode()
Returns a hash code for this instance.
voidsetFillPaint(Paint paint)
Sets the fill paint and sends a DialLayerChangeEvent to all registered listeners.
voidsetOutlinePaint(Paint paint)
Sets the outline paint and sends a DialLayerChangeEvent to all registered listeners.
voidsetWidthRadius(double radius)
Sets the width radius and sends a DialLayerChangeEvent to all registered listeners.

Constructor Detail

Pointer

public Pointer()
Creates a new instance.

Pointer

public Pointer(int datasetIndex)
Creates a new instance.

Parameters: datasetIndex the dataset index.

Method Detail

draw

public void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view)
Draws the pointer.

Parameters: 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.

Parameters: obj the object (null permitted).

Returns: A boolean.

getFillPaint

public Paint getFillPaint()
Returns the fill paint.

Returns: The paint (never null).

Since: 1.0.8

See Also:

getOutlinePaint

public Paint getOutlinePaint()
Returns the outline paint.

Returns: The paint (never null).

Since: 1.0.8

See Also:

getWidthRadius

public double getWidthRadius()
Returns the width radius.

Returns: The width radius.

See Also: Pointer

hashCode

public int hashCode()
Returns a hash code for this instance.

Returns: A hash code.

setFillPaint

public void setFillPaint(Paint paint)
Sets the fill paint and sends a DialLayerChangeEvent to all registered listeners.

Parameters: paint the paint (null not permitted).

Since: 1.0.8

See Also:

setOutlinePaint

public void setOutlinePaint(Paint paint)
Sets the outline paint and sends a DialLayerChangeEvent to all registered listeners.

Parameters: paint the paint (null not permitted).

Since: 1.0.8

See Also:

setWidthRadius

public void setWidthRadius(double radius)
Sets the width radius and sends a DialLayerChangeEvent to all registered listeners.

Parameters: radius the radius

See Also: getWidthRadius