public class PixelPos extends Point2D.Float
PixelPos
represents a position or point in a pixel coordinate system.Point2D.Double, Point2D.Float
x, y
Constructor and Description |
---|
PixelPos()
Constructs and initializes a
PixelPos with coordinate (0, 0). |
PixelPos(float x,
float y)
Constructs and initializes a
PixelPos with the specified coordinate. |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid()
Tests whether or not this pixel position is valid.
|
void |
setInvalid()
Sets this pixel position so that is becomes invalid.
|
getX, getY, setLocation, setLocation, toString
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
public PixelPos()
PixelPos
with coordinate (0, 0).public PixelPos(float x, float y)
PixelPos
with the specified coordinate.x
- the x component of the coordinatey
- the y component of the coordinateCopyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.