public class

PointerNeedle

extends MeterNeedle
implements Serializable Cloneable
java.lang.Object
   ↳ org.jfree.chart.needle.MeterNeedle
     ↳ org.jfree.chart.needle.PointerNeedle

Class Overview

A needle in the shape of a pointer, for use with the CompassPlot class.

Summary

[Expand]
Inherited Fields
From class org.jfree.chart.needle.MeterNeedle
Public Constructors
PointerNeedle()
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 PointerNeedle ()

Public Methods

public Object clone ()

Returns a clone of this needle.

Returns
  • A clone.
Throws
CloneNotSupportedException if the PointerNeedle 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.