Class RubberbandEllipse

All Implemented Interfaces:
MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener

public class RubberbandEllipse extends Rubberband
A Rubberband that does ellipses.
See Also:
  • Field Details

  • Constructor Details

    • RubberbandEllipse

      public RubberbandEllipse(Component component)
      Constructs rubberbandEllipse.
      Parameters:
      component - component to add to
  • Method Details

    • drawLast

      public void drawLast(Graphics graphics)
      Draws an arc 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 an arc based on the rubberband's bounds.
      Specified by:
      drawNext in class Rubberband
      Parameters:
      graphics - graphics to draw in
    • mouseDragged

      public void mouseDragged(MouseEvent mouseEvent)
      Gets the stretch point of the rubberband.
      Specified by:
      mouseDragged in interface MouseMotionListener
      Overrides:
      mouseDragged in class Rubberband
      Parameters:
      mouseEvent - event that triggered function
    • mouseReleased

      public void mouseReleased(MouseEvent mouseEvent)
      Makes an elliptical using an contour VOI upon a mouse release.
      Specified by:
      mouseReleased in interface MouseListener
      Overrides:
      mouseReleased in class Rubberband
      Parameters:
      mouseEvent - event that triggered function