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
A
PixelPos represents a position or point in a pixel coordinate system.- See Also:
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid()Tests whether or not this pixel position is valid.voidSets this pixel position so that is becomes invalid.Methods inherited from class java.awt.geom.Point2D.Double
getX, getY, setLocation, toStringMethods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
-
Constructor Details
-
PixelPos
public PixelPos()Constructs and initializes aPixelPoswith coordinate (0, 0). -
PixelPos
public PixelPos(double x, double y) Constructs and initializes aPixelPoswith the specified coordinate.- Parameters:
x- the x component of the coordinatey- 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.
-