org.jfree.chart.needle
Class ArrowNeedle
- Cloneable, Serializable
implements Cloneable, Serializable
A needle in the shape of an arrow.
ArrowNeedle(boolean isArrowAtTop) - Constructs a new arrow needle.
|
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.
|
defaultDisplay , draw , draw , draw , drawNeedle , equals , getFillPaint , getHighlightPaint , getOutlinePaint , getOutlineStroke , getRotateX , getRotateY , getSize , getTransform , setFillPaint , setHighlightPaint , setOutlinePaint , setOutlineStroke , setRotateX , setRotateY , setSize |
ArrowNeedle
public ArrowNeedle(boolean isArrowAtTop)
Constructs a new arrow needle.
isArrowAtTop
- a flag that controls whether or not there is an
arrow at the top of the needle.
clone
public Object clone()
throws CloneNotSupportedException
Returns a clone of this needle.
drawNeedle
protected void drawNeedle(Graphics2D g2,
Rectangle2D plotArea,
Point2D rotate,
double angle)
Draws the needle.
- drawNeedle in interface MeterNeedle
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.
- equals in interface MeterNeedle
obj
- the object to test (null
permitted).