org.jfree.chart.needle

Class ShipNeedle

Implemented Interfaces:
Cloneable, Serializable

public class ShipNeedle
extends MeterNeedle
implements Cloneable, Serializable

A needle in the shape of a ship, 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 object)
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 object)
Tests another object for equality with this object.
Overrides:
equals in interface MeterNeedle
Parameters:
object - the object to test.
Returns:
A boolean.