Class ScaledDialPointer

java.lang.Object
org.jfree.chart.plot.dial.AbstractDialLayer
org.jfree.chart.plot.dial.DialPointer
org.jfree.chart.plot.dial.DialPointer.Pointer
net.sf.jasperreports.chartthemes.spring.ScaledDialPointer
All Implemented Interfaces:
Serializable, Cloneable, org.jfree.chart.plot.dial.DialLayer, org.jfree.chart.util.PublicCloneable

public class ScaledDialPointer extends org.jfree.chart.plot.dial.DialPointer.Pointer
Author:
Sanda Zaharia (shertage@users.sourceforge.net)
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.jfree.chart.plot.dial.DialPointer

    org.jfree.chart.plot.dial.DialPointer.Pin, org.jfree.chart.plot.dial.DialPointer.Pointer
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance.
    ScaledDialPointer(int scale)
    Creates a new instance.
    ScaledDialPointer(int scale, double widthRadius)
    Creates a new instance.
    ScaledDialPointer(int datasetIndex, double widthRadius, Paint fillPaint, Paint outlinePaint, int scale)
    Creates a new instance.
    ScaledDialPointer(int scale, Paint fillPaint, Paint outlinePaint)
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(Graphics2D g2, org.jfree.chart.plot.dial.DialPlot plot, Rectangle2D frame, Rectangle2D view)
    Draws the pointer.
    boolean
    Tests this pointer for equality with an arbitrary object.
    Returns the fill paint.
    int
    Returns a hash code for this instance.
    void
    Sets the fill paint and sends a DialLayerChangeEvent to all registered listeners.

    Methods inherited from class org.jfree.chart.plot.dial.DialPointer.Pointer

    getOutlinePaint, getWidthRadius, setOutlinePaint, setWidthRadius

    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 Details

    • ScaledDialPointer

      public ScaledDialPointer()
      Creates a new instance.
    • ScaledDialPointer

      public ScaledDialPointer(int scale)
      Creates a new instance.
    • ScaledDialPointer

      public ScaledDialPointer(int scale, Paint fillPaint, Paint outlinePaint)
      Creates a new instance.
    • ScaledDialPointer

      public ScaledDialPointer(int scale, double widthRadius)
      Creates a new instance.
    • ScaledDialPointer

      public ScaledDialPointer(int datasetIndex, double widthRadius, Paint fillPaint, Paint outlinePaint, int scale)
      Creates a new instance.
      Parameters:
      datasetIndex - the dataset index.
  • Method Details

    • getFillPaint

      public Paint getFillPaint()
      Returns the fill paint.
      Overrides:
      getFillPaint in class org.jfree.chart.plot.dial.DialPointer.Pointer
      Returns:
      The paint (never null).
      Since:
      1.0.8
    • setFillPaint

      public void setFillPaint(Paint paint)
      Sets the fill paint and sends a DialLayerChangeEvent to all registered listeners.
      Overrides:
      setFillPaint in class org.jfree.chart.plot.dial.DialPointer.Pointer
      Parameters:
      paint - the paint (null not permitted).
      Since:
      1.0.8
      See Also:
    • draw

      public void draw(Graphics2D g2, org.jfree.chart.plot.dial.DialPlot plot, Rectangle2D frame, Rectangle2D view)
      Draws the pointer.
      Specified by:
      draw in interface org.jfree.chart.plot.dial.DialLayer
      Overrides:
      draw in class org.jfree.chart.plot.dial.DialPointer.Pointer
      Parameters:
      g2 - the graphics target.
      plot - the plot.
      frame - the dial's reference frame.
      view - the dial's view.
    • equals

      public boolean equals(Object obj)
      Tests this pointer for equality with an arbitrary object.
      Overrides:
      equals in class org.jfree.chart.plot.dial.DialPointer.Pointer
      Parameters:
      obj - the object (null permitted).
      Returns:
      A boolean.
    • hashCode

      public int hashCode()
      Returns a hash code for this instance.
      Overrides:
      hashCode in class org.jfree.chart.plot.dial.DialPointer.Pointer
      Returns:
      A hash code.