org.jfree.chart.needle

Class ArrowNeedle

Implemented Interfaces:
Cloneable, Serializable
Known Direct Subclasses:
WindNeedle

public class ArrowNeedle
extends MeterNeedle
implements Cloneable, Serializable

A needle in the shape of an arrow.

Field Summary

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

transform

Constructor Summary

ArrowNeedle(boolean isArrowAtTop)
Constructs a new arrow needle.

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

Constructor Details

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 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.