org.jfree.chart.needle

Class WindNeedle

Implemented Interfaces:
Cloneable, Serializable

public class WindNeedle
extends ArrowNeedle
implements Cloneable, Serializable

A needle that indicates wind direction, for use with the CompassPlot class.

Field Summary

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

transform

Constructor Summary

WindNeedle()
Default constructor.

Method Summary

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

clone, drawNeedle, equals

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

WindNeedle

public WindNeedle()
Default constructor.

Method Details

drawNeedle

protected void drawNeedle(Graphics2D g2,
                          Rectangle2D plotArea,
                          Point2D rotate,
                          double angle)
Draws the needle.
Overrides:
drawNeedle in interface ArrowNeedle
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 ArrowNeedle
Parameters:
object - the object to test.
Returns:
A boolean.