Class PixelPos

All Implemented Interfaces:
Serializable, Cloneable

public class PixelPos extends Point2D.Double
A PixelPos represents a position or point in a pixel coordinate system.
See Also:
  • Constructor Details

    • PixelPos

      public PixelPos()
      Constructs and initializes a PixelPos with coordinate (0, 0).
    • PixelPos

      public PixelPos(double x, double y)
      Constructs and initializes a PixelPos with the specified coordinate.
      Parameters:
      x - the x component of the coordinate
      y - the y component of the coordinate
  • Method Details

    • isValid

      public boolean isValid()
      Tests whether or not this pixel position is valid.
      Returns:
      true, if so
    • setInvalid

      public void setInvalid()
      Sets this pixel position so that is becomes invalid.