Class RubberbandProtractor

java.lang.Object
java.awt.Component
gov.nih.mipav.view.Rubberband
gov.nih.mipav.view.RubberbandProtractor
All Implemented Interfaces:
MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener

public class RubberbandProtractor extends Rubberband
A Rubberband that does protractors.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • x

      private int[] x
      DOCUMENT ME!
    • y

      private int[] y
      DOCUMENT ME!
    • z

      private int[] z
      DOCUMENT ME!
  • Constructor Details

    • RubberbandProtractor

      public RubberbandProtractor(Component component)
      Creates a new RubberbandProtractor object.
      Parameters:
      component - component to add to
  • Method Details

    • drawLast

      public void drawLast(Graphics graphics)
      Draws a line based on the rubberband's last bounds.
      Specified by:
      drawLast in class Rubberband
      Parameters:
      graphics - graphics to draw in
    • drawNext

      public void drawNext(Graphics graphics)
      Draws a line based on the rubberband's present bounds.
      Specified by:
      drawNext in class Rubberband
      Parameters:
      graphics - graphics to draw in
    • mouseReleased

      public void mouseReleased(MouseEvent mouseEvent)
      Makes a VOI.PROTRACTOR.
      Specified by:
      mouseReleased in interface MouseListener
      Overrides:
      mouseReleased in class Rubberband
      Parameters:
      mouseEvent - event that triggered function