Class PositionStep.Position

All Implemented Interfaces:
Serializable, Cloneable, Drawable, Interactive, Measurable, Trackable
Enclosing class:
PositionStep

protected class PositionStep.Position extends TPoint
See Also:
  • Constructor Details

    • Position

      public Position(double x, double y)
      Constructs a Position with specified image coordinates.
      Parameters:
      x - the x coordinate
      y - the y coordinate
  • Method Details

    • setXY

      public void setXY(double x, double y)
      Overrides TPoint setXY method.
      Specified by:
      setXY in interface Interactive
      Overrides:
      setXY in class TPoint
      Parameters:
      x - the x coordinate
      y - the y coordinate
    • showCoordinates

      public void showCoordinates(VideoPanel vidPanel)
      Overrides TPoint showCoordinates method.
      Overrides:
      showCoordinates in class TPoint
      Parameters:
      vidPanel - the video panel
    • getFrameNumber

      public int getFrameNumber(VideoPanel vidPanel)
      Overrides TPoint getFrameNumber method.
      Overrides:
      getFrameNumber in class TPoint
      Parameters:
      vidPanel - the video panel being drawn
      Returns:
      the frame number
    • setAdjusting

      public void setAdjusting(boolean adjusting, MouseEvent e)
      Sets the adjusting flag.
      Overrides:
      setAdjusting in class TPoint
      Parameters:
      adjusting - true if being dragged
      e - a MouseEvent, may be null