|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.Point2D
java.awt.geom.Point2D.Double
ucar.unidata.geoloc.ProjectionPointImpl
public class ProjectionPointImpl
Our implementation of ProjectionPoint, that subclasses java.awt.geom.Point2D to add serialization.
ProjectionPoint
,
Serialized FormNested 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 | |
---|---|
ProjectionPointImpl()
Default constructor, initialized to 0,0 |
|
ProjectionPointImpl(double x,
double y)
Constructor, initialized to x, y |
|
ProjectionPointImpl(Point2D pt)
Constructor that copies Point2D values into this. |
|
ProjectionPointImpl(ProjectionPoint pt)
Constructor that copies ProjectionPoint values into this. |
Method Summary | |
---|---|
boolean |
equals(ProjectionPoint pt)
Returns true if this represents the same point as pt. |
boolean |
isInfinite()
See if either coordinate is +/- infinite. |
static boolean |
isInfinite(ProjectionPoint pt)
See if either coordinate in pt is +/- infinite. |
void |
setLocation(Point2D pt)
set x,y location from pt |
void |
setLocation(ProjectionPoint pt)
set x,y location from pt |
String |
toString()
nicely format this point |
void |
toString(Formatter f)
|
Methods inherited from class java.awt.geom.Point2D.Double |
---|
getX, getY, setLocation |
Methods inherited from class java.awt.geom.Point2D |
---|
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ucar.unidata.geoloc.ProjectionPoint |
---|
getX, getY |
Constructor Detail |
---|
public ProjectionPointImpl()
public ProjectionPointImpl(Point2D pt)
pt
- point to copypublic ProjectionPointImpl(ProjectionPoint pt)
pt
- point to copypublic ProjectionPointImpl(double x, double y)
x
- x coordinatey
- y coordinateMethod Detail |
---|
public boolean equals(ProjectionPoint pt)
equals
in interface ProjectionPoint
pt
- point to check
public String toString()
toString
in class Point2D.Double
public void toString(Formatter f)
public void setLocation(ProjectionPoint pt)
pt
- point to use for valuespublic void setLocation(Point2D pt)
setLocation
in class Point2D
pt
- point to use for valuespublic boolean isInfinite()
public static boolean isInfinite(ProjectionPoint pt)
pt
is +/- infinite.
This happens sometimes in projective geometry.
pt
- point to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |