org.jfree.chart.plot.dial
Class DialPointer.Pointer

java.lang.Object
  extended byorg.jfree.chart.plot.dial.AbstractDialLayer
      extended byorg.jfree.chart.plot.dial.DialPointer
          extended byorg.jfree.chart.plot.dial.DialPointer.Pointer
All Implemented Interfaces:
java.lang.Cloneable, DialLayer, org.jfree.util.PublicCloneable, java.io.Serializable
Enclosing class:
DialPointer

public static class DialPointer.Pointer
extends DialPointer

A dial pointer.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.jfree.chart.plot.dial.DialPointer
DialPointer.Pin, DialPointer.Pointer
 
Constructor Summary
DialPointer.Pointer()
          Creates a new instance.
DialPointer.Pointer(int datasetIndex)
          Creates a new instance.
 
Method Summary
 void draw(java.awt.Graphics2D g2, DialPlot plot, java.awt.geom.Rectangle2D frame, java.awt.geom.Rectangle2D view)
          Draws the pointer.
 boolean equals(java.lang.Object obj)
          Tests this pointer for equality with an arbitrary object.
 double getWidthRadius()
          Returns the width radius.
 int hashCode()
          Returns a hash code for this instance.
 void setWidthRadius(double radius)
          Sets the width radius and sends a DialLayerChangeEvent to all registered listeners.
 
Methods inherited from class org.jfree.chart.plot.dial.DialPointer
clone, getDatasetIndex, getRadius, isClippedToWindow, setDatasetIndex, setRadius
 
Methods inherited from class org.jfree.chart.plot.dial.AbstractDialLayer
addChangeListener, hasListener, isVisible, notifyListeners, removeChangeListener, setVisible
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jfree.chart.plot.dial.DialLayer
addChangeListener, hasListener, isVisible, removeChangeListener
 

Constructor Detail

DialPointer.Pointer

public DialPointer.Pointer()
Creates a new instance.


DialPointer.Pointer

public DialPointer.Pointer(int datasetIndex)
Creates a new instance.

Parameters:
datasetIndex - the dataset index.
Method Detail

getWidthRadius

public double getWidthRadius()
Returns the width radius.

Returns:
The width radius.
See Also:
setWidthRadius(double)

setWidthRadius

public void setWidthRadius(double radius)
Sets the width radius and sends a DialLayerChangeEvent to all registered listeners.

Parameters:
radius - the radius
See Also:
getWidthRadius()

draw

public void draw(java.awt.Graphics2D g2,
                 DialPlot plot,
                 java.awt.geom.Rectangle2D frame,
                 java.awt.geom.Rectangle2D view)
Draws the pointer.

Parameters:
g2 - the graphics target.
plot - the plot.
frame - the dial's reference frame.
view - the dial's view.

equals

public boolean equals(java.lang.Object obj)
Tests this pointer for equality with an arbitrary object.

Overrides:
equals in class DialPointer
Parameters:
obj - the object (null permitted).
Returns:
A boolean.

hashCode

public int hashCode()
Returns a hash code for this instance.

Overrides:
hashCode in class DialPointer
Returns:
A hash code.


Copyright © 2001-2007 JFree.org. All Rights Reserved.