public class

ArrowNeedle

extends MeterNeedle
implements Serializable Cloneable
java.lang.Object
   ↳ org.jfree.chart.needle.MeterNeedle
     ↳ org.jfree.chart.needle.ArrowNeedle
Known Direct Subclasses

Class Overview

A needle in the shape of an arrow.

Summary

[Expand]
Inherited Fields
From class org.jfree.chart.needle.MeterNeedle
Public Constructors
ArrowNeedle(boolean isArrowAtTop)
Constructs a new arrow needle.
Public Methods
Object clone()
Returns a clone of this needle.
boolean equals(Object obj)
Tests another object for equality with this object.
int hashCode()
Returns a hash code for this instance.
Protected Methods
void drawNeedle(Graphics2D g2, Rectangle2D plotArea, Point2D rotate, double angle)
Draws the needle.
[Expand]
Inherited Methods
From class org.jfree.chart.needle.MeterNeedle
From class java.lang.Object

Public Constructors

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.

Public Methods

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

public boolean equals (Object obj)

Tests another object for equality with this object.

Parameters
obj the object to test (null permitted).
Returns
  • A boolean.

public int hashCode ()

Returns a hash code for this instance.

Returns
  • A hash code.

Protected Methods

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.