Package org.esa.snap.core.datamodel
Class PixelPos
- java.lang.Object
-
- java.awt.geom.Point2D
-
- java.awt.geom.Point2D.Double
-
- org.esa.snap.core.datamodel.PixelPos
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class PixelPos extends Point2D.Double
APixelPos
represents a position or point in a pixel coordinate system.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float
-
-
Field Summary
-
Fields inherited from class java.awt.geom.Point2D.Double
x, y
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid()
Tests whether or not this pixel position is valid.void
setInvalid()
Sets this pixel position so that is becomes invalid.-
Methods inherited from class java.awt.geom.Point2D.Double
getX, getY, setLocation, toString
-
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
-
-
-
-
Constructor Detail
-
PixelPos
public PixelPos()
Constructs and initializes aPixelPos
with coordinate (0, 0).
-
PixelPos
public PixelPos(double x, double y)
Constructs and initializes aPixelPos
with the specified coordinate.- Parameters:
x
- the x component of the coordinatey
- the y component of the coordinate
-
-