org.jfree.chart.needle

Class ShipNeedle

public class ShipNeedle extends MeterNeedle implements Cloneable, Serializable

A needle in the shape of a ship, for use with the CompassPlot class.
Method Summary
Objectclone()
Returns a clone of this needle.
protected voiddrawNeedle(Graphics2D g2, Rectangle2D plotArea, Point2D rotate, double angle)
Draws the needle.
booleanequals(Object object)
Tests another object for equality with this object.

Method Detail

clone

public Object clone()
Returns a clone of this needle.

Returns: A clone.

Throws: CloneNotSupportedException if the ShipNeedle cannot be cloned (in theory, this should not happen).

drawNeedle

protected void drawNeedle(Graphics2D g2, Rectangle2D plotArea, Point2D rotate, double angle)
Draws the needle.

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.

Parameters: object the object to test.

Returns: A boolean.