Class RubberbandLine

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

public class RubberbandLine extends Rubberband
A Rubberband that does lines.
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!
    • doSplit

      private boolean doSplit
      boolean for if this is a VOI Splitter (not line drawer)
  • Constructor Details

    • RubberbandLine

      public RubberbandLine(Component component)
      Constructs a rubberbanded line and dds mouse listeners.
      Parameters:
      component - component to add to
  • Method Details

    • setSplit

      public void setSplit(boolean split)
    • isSplitter

      public boolean isSplitter()
    • 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 line VOI upon mouse release.
      Specified by:
      mouseReleased in interface MouseListener
      Overrides:
      mouseReleased in class Rubberband
      Parameters:
      mouseEvent - event that triggered function