Module platform

Class DialPointer.Pin

All Implemented Interfaces:
Serializable, Cloneable, DialLayer, PublicCloneable
Enclosing class:
DialPointer

public static class DialPointer.Pin extends DialPointer
A dial pointer that draws a thin line (like a pin).
See Also:
  • Constructor Details

    • Pin

      public Pin()
      Creates a new instance.
    • Pin

      public Pin(int datasetIndex)
      Creates a new instance.
      Parameters:
      datasetIndex - the dataset index.
  • Method Details

    • getPaint

      public Paint getPaint()
      Returns the paint.
      Returns:
      The paint (never null).
      See Also:
    • setPaint

      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:
    • getStroke

      public Stroke getStroke()
      Returns the stroke.
      Returns:
      The stroke (never null).
      See Also:
    • setStroke

      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:
    • draw

      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.
    • equals

      public boolean equals(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.