Class OffsetOriginStep.Position

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

public class OffsetOriginStep.Position extends TPoint
A class to represent the position of the offset origin.
See Also:
  • Constructor Details

    • Position

      public Position(double x, double y)
      Constructs a position with specified image coordinates, and transforms those coordinates to set the world coordinates.
      Parameters:
      x - the image x coordinate
      y - the image y coordinate
  • Method Details

    • setXY

      public void setXY(double x, double y)
      Overrides TPoint setXY method. This moves the origin so the world coordinates do not change.
      Specified by:
      setXY in interface Interactive
      Overrides:
      setXY in class TPoint
      Parameters:
      x - the x position
      y - the y position
    • setAdjusting

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

      public void showCoordinates(VideoPanel vidPanel)
      Overrides TPoint showCoordinates method. This updates the values of the x and y fields.
      Overrides:
      showCoordinates in class TPoint
      Parameters:
      vidPanel - the video panel