org.jfree.chart.needle

Class PlumNeedle

Implemented Interfaces:
Cloneable, Serializable

public class PlumNeedle
extends MeterNeedle
implements Cloneable, Serializable

A needle for use with the CompassPlot class.

Field Summary

Fields inherited from class org.jfree.chart.needle.MeterNeedle

transform

Method Summary

Object
clone()
Returns a clone of this needle.
protected void
drawNeedle(Graphics2D g2, Rectangle2D plotArea, Point2D rotate, double angle)
Draws the needle.
boolean
equals(Object obj)
Tests another object for equality with this object.

Methods inherited from class org.jfree.chart.needle.MeterNeedle

defaultDisplay, draw, draw, draw, drawNeedle, equals, getFillPaint, getHighlightPaint, getOutlinePaint, getOutlineStroke, getRotateX, getRotateY, getSize, getTransform, setFillPaint, setHighlightPaint, setOutlinePaint, setOutlineStroke, setRotateX, setRotateY, setSize

Method Details

clone

public Object clone()
            throws CloneNotSupportedException
Returns a clone of this needle.
Returns:
A clone.

drawNeedle

protected void drawNeedle(Graphics2D g2,
                          Rectangle2D plotArea,
                          Point2D rotate,
                          double angle)
Draws the needle.
Overrides:
drawNeedle in interface MeterNeedle
Parameters:
g2 - the graphics device.
plotArea - the plot area.
rotate - the rotation point.
angle - the angle.

equals

public boolean equals(Object obj)
Tests another object for equality with this object.
Overrides:
equals in interface MeterNeedle
Parameters:
obj - the object to test (null permitted).
Returns:
A boolean.