public abstract class

DialPointer

extends AbstractDialLayer
implements Serializable Cloneable DialLayer
java.lang.Object
   ↳ org.jfree.chart.plot.dial.AbstractDialLayer
     ↳ org.jfree.chart.plot.dial.DialPointer
Known Direct Subclasses

Class Overview

A base class for the pointer in a DialPlot.

Summary

Nested Classes
class DialPointer.Pin A dial pointer that draws a thin line (like a pin). 
class DialPointer.Pointer A dial pointer. 
Protected Constructors
DialPointer()
Creates a new DialPointer instance.
DialPointer(int datasetIndex)
Creates a new pointer for the specified dataset.
Public Methods
Object clone()
Returns a clone of the pointer.
boolean equals(Object obj)
Checks this instance for equality with an arbitrary object.
int getDatasetIndex()
Returns the dataset index that the pointer maps to.
double getRadius()
Returns the radius of the pointer, as a percentage of the dial's framing rectangle.
int hashCode()
Returns a hash code.
boolean isClippedToWindow()
Returns true to indicate that this layer should be clipped within the dial window.
void setDatasetIndex(int index)
Sets the dataset index for the pointer and sends a DialLayerChangeEvent to all registered listeners.
void setRadius(double radius)
Sets the radius of the pointer and sends a DialLayerChangeEvent to all registered listeners.
[Expand]
Inherited Methods
From class org.jfree.chart.plot.dial.AbstractDialLayer
From class java.lang.Object
From interface org.jfree.chart.plot.dial.DialLayer

Protected Constructors

protected DialPointer ()

Creates a new DialPointer instance.

protected DialPointer (int datasetIndex)

Creates a new pointer for the specified dataset.

Parameters
datasetIndex the dataset index.

Public Methods

public Object clone ()

Returns a clone of the pointer.

Returns
  • a clone.
Throws
CloneNotSupportedException if one of the attributes cannot be cloned.

public boolean equals (Object obj)

Checks this instance for equality with an arbitrary object.

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

public int getDatasetIndex ()

Returns the dataset index that the pointer maps to.

Returns
  • The dataset index.

public double getRadius ()

Returns the radius of the pointer, as a percentage of the dial's framing rectangle.

Returns
  • The radius.

public int hashCode ()

Returns a hash code.

Returns
  • A hash code.

public boolean isClippedToWindow ()

Returns true to indicate that this layer should be clipped within the dial window.

Returns
  • true.

public void setDatasetIndex (int index)

Sets the dataset index for the pointer and sends a DialLayerChangeEvent to all registered listeners.

Parameters
index the index.

public void setRadius (double radius)

Sets the radius of the pointer and sends a DialLayerChangeEvent to all registered listeners.

Parameters
radius the radius.
See Also