public static class

DialPointer.Pin

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

Class Overview

A dial pointer that draws a thin line (like a pin).

Summary

Public Constructors
DialPointer.Pin()
Creates a new instance.
DialPointer.Pin(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 getPaint()
Returns the paint.
Stroke getStroke()
Returns the stroke.
int hashCode()
Returns a hash code for this instance.
void setPaint(Paint paint)
Sets the paint and sends a DialLayerChangeEvent to all registered listeners.
void setStroke(Stroke stroke)
Sets the stroke 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.Pin ()

Creates a new instance.

public DialPointer.Pin (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 getPaint ()

Returns the paint.

Returns
  • The paint (never null).
See Also

public Stroke getStroke ()

Returns the stroke.

Returns
  • The stroke (never null).

public int hashCode ()

Returns a hash code for this instance.

Returns
  • A hash code.

public void setPaint (Paint paint)

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

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

public void setStroke (Stroke stroke)

Sets the stroke and sends a DialLayerChangeEvent to all registered listeners.

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