Class 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:
    Serialized Form
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void draw​(Graphics2D g2, org.jfree.chart.plot.dial.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.
      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.
      • 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 interface org.jfree.chart.plot.dial.DialLayer

        addChangeListener, hasListener, isVisible, removeChangeListener
    • Constructor Detail

      • 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 Detail

      • 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:
        getFillPaint()
      • 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.