Class DialPointer.Pointer

    • Constructor Detail

      • Pointer

        public Pointer()
        Creates a new instance.
      • Pointer

        public Pointer​(int datasetIndex)
        Creates a new instance.
        Parameters:
        datasetIndex - the dataset index.
    • Method Detail

      • setFillPaint

        public void setFillPaint​(java.awt.Paint paint)
        Sets the fill paint and sends a DialLayerChangeEvent to all registered listeners.
        Parameters:
        paint - the paint (null not permitted).
        Since:
        1.0.8
        See Also:
        getFillPaint()
      • 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.