public class

LongNeedle

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

Class Overview

A needle that is represented by a long line.

Summary

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

Default constructor.

Public Methods

public Object clone ()

Returns a clone of this needle.

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