|
||||||||||
| 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 Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.geom.Point2D |
|---|
java.awt.geom.Point2D.Double, java.awt.geom.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(java.awt.geom.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(java.awt.geom.Point2D pt)
set x,y location from pt |
void |
setLocation(ProjectionPoint pt)
set x,y location from pt |
java.lang.String |
toString()
nicely format this point |
void |
toString(java.util.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(java.awt.geom.Point2D pt)
pt - point to copypublic ProjectionPointImpl(ProjectionPoint pt)
pt - point to copy
public ProjectionPointImpl(double x,
double y)
x - x coordinatey - y coordinate| Method Detail |
|---|
public boolean equals(ProjectionPoint pt)
equals in interface ProjectionPointpt - point to check
public java.lang.String toString()
toString in class java.awt.geom.Point2D.Doublepublic void toString(java.util.Formatter f)
public void setLocation(ProjectionPoint pt)
pt - point to use for valuespublic void setLocation(java.awt.geom.Point2D pt)
setLocation in class java.awt.geom.Point2Dpt - 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 | |||||||||