org.jfree.chart.plot.dial

Class DialPointer.Pin

public static class DialPointer.Pin extends DialPointer

A dial pointer that draws a thin line (like a pin).
Constructor Summary
Pin()
Creates a new instance.
Pin(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.
PaintgetPaint()
Returns the paint.
StrokegetStroke()
Returns the stroke.
inthashCode()
Returns a hash code for this instance.
voidsetPaint(Paint paint)
Sets the paint and sends a DialLayerChangeEvent to all registered listeners.
voidsetStroke(Stroke stroke)
Sets the stroke and sends a DialLayerChangeEvent to all registered listeners.

Constructor Detail

Pin

public Pin()
Creates a new instance.

Pin

public Pin(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.

getPaint

public Paint getPaint()
Returns the paint.

Returns: The paint (never null).

See Also: setPaint

getStroke

public Stroke getStroke()
Returns the stroke.

Returns: The stroke (never null).

See Also: setStroke

hashCode

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

Returns: A hash code.

setPaint

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

Parameters: paint the paint (null not permitted).

See Also: getPaint

setStroke

public void setStroke(Stroke stroke)
Sets the stroke and sends a DialLayerChangeEvent to all registered listeners.

Parameters: stroke the stroke (null not permitted).

See Also: getStroke

Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.