org.jfree.chart.needle

Class ArrowNeedle

public class ArrowNeedle extends MeterNeedle implements Cloneable, Serializable

A needle in the shape of an arrow.
Constructor Summary
ArrowNeedle(boolean isArrowAtTop)
Constructs a new arrow needle.
Method Summary
Objectclone()
Returns a clone of this needle.
protected voiddrawNeedle(Graphics2D g2, Rectangle2D plotArea, Point2D rotate, double angle)
Draws the needle.
booleanequals(Object obj)
Tests another object for equality with this object.
inthashCode()
Returns a hash code for this instance.

Constructor Detail

ArrowNeedle

public ArrowNeedle(boolean isArrowAtTop)
Constructs a new arrow needle.

Parameters: isArrowAtTop a flag that controls whether or not there is an arrow at the top of the needle.

Method Detail

clone

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

Returns: A clone.

Throws: CloneNotSupportedException if the ArrowNeedle 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 obj)
Tests another object for equality with this object.

Parameters: obj the object to test (null permitted).

Returns: A boolean.

hashCode

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

Returns: A hash code.

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