public static class

DialPointer.Pointer

extends DialPointer
java.lang.Object
   ↳ org.jfree.chart.plot.dial.AbstractDialLayer
     ↳ org.jfree.chart.plot.dial.DialPointer
       ↳ org.jfree.chart.plot.dial.DialPointer.Pointer

Class Overview

A dial pointer.

Summary

Public Constructors
DialPointer.Pointer()
Creates a new instance.
DialPointer.Pointer(int datasetIndex)
Creates a new instance.
Public Methods
void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view)
Draws the pointer.
boolean equals(Object obj)
Tests this pointer for equality with an arbitrary object.
Paint getFillPaint()
Returns the fill paint.
Paint getOutlinePaint()
Returns the outline paint.
double getWidthRadius()
Returns the width radius.
int hashCode()
Returns a hash code for this instance.
void setFillPaint(Paint paint)
Sets the fill paint and sends a DialLayerChangeEvent to all registered listeners.
void setOutlinePaint(Paint paint)
Sets the outline paint and sends a DialLayerChangeEvent to all registered listeners.
void setWidthRadius(double radius)
Sets the width radius and sends a DialLayerChangeEvent to all registered listeners.
[Expand]
Inherited Methods
From class org.jfree.chart.plot.dial.DialPointer
From class org.jfree.chart.plot.dial.AbstractDialLayer
From class java.lang.Object
From interface org.jfree.chart.plot.dial.DialLayer

Public Constructors

public DialPointer.Pointer ()

Creates a new instance.

public DialPointer.Pointer (int datasetIndex)

Creates a new instance.

Parameters
datasetIndex the dataset index.

Public Methods

public void draw (Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view)

Draws the pointer.

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

public boolean equals (Object obj)

Tests this pointer for equality with an arbitrary object.

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

public Paint getFillPaint ()

Returns the fill paint.

Returns
  • The paint (never null).

public Paint getOutlinePaint ()

Returns the outline paint.

Returns
  • The paint (never null).

public double getWidthRadius ()

Returns the width radius.

Returns
  • The width radius.

public int hashCode ()

Returns a hash code for this instance.

Returns
  • A hash code.

public void setFillPaint (Paint paint)

Sets the fill paint and sends a DialLayerChangeEvent to all registered listeners.

Parameters
paint the paint (null not permitted).
See Also

public void setOutlinePaint (Paint paint)

Sets the outline paint and sends a DialLayerChangeEvent to all registered listeners.

Parameters
paint the paint (null not permitted).

public void setWidthRadius (double radius)

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

Parameters
radius the radius
See Also