|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.pmel.util.SoTPoint
public class SoTPoint
SoTPoint
has two coordinates which are of
type SoTValue
. SoT stands for
space or time, but being basically lazy I've abbreviated it.
Constructor Summary | |
---|---|
SoTPoint()
Default constructor. |
|
SoTPoint(double x,
double y)
Construct a SoTPoint from double s. |
|
SoTPoint(double x,
GeoDate y)
Construct a SoTPoint from a double and
a GeoDate . |
|
SoTPoint(double x,
long y)
|
|
SoTPoint(GeoDate x,
double y)
Construct a SoTPoint from a GeoDate and
a double . |
|
SoTPoint(long x,
double y)
|
|
SoTPoint(SoTPoint pt)
Construct a SoTPoint from a SoTPoint . |
|
SoTPoint(SoTValue x,
SoTValue y)
Construct a SoTPoint from SoTValue s. |
Method Summary | |
---|---|
void |
add(SoTPoint point)
Add to point. |
SoTPoint |
copy()
Make a copy of the SoTRange . |
boolean |
equals(SoTPoint stp)
Test for equality. |
SoTValue |
getX()
Get x value |
SoTValue |
getY()
Get y value |
boolean |
isXTime()
Test if x value is time |
boolean |
isYTime()
Test if y value is time |
void |
setX(SoTValue x)
Set x value |
void |
setY(SoTValue y)
Set y value |
java.lang.String |
toString()
Convert SoTPoint to a default string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SoTPoint()
public SoTPoint(SoTValue x, SoTValue y)
SoTPoint
from SoTValue
s.
x
- space or time coordinatey
- space or time coordinatepublic SoTPoint(double x, double y)
SoTPoint
from double
s.
public SoTPoint(double x, GeoDate y)
SoTPoint
from a double
and
a GeoDate
.
public SoTPoint(double x, long y)
public SoTPoint(GeoDate x, double y)
SoTPoint
from a GeoDate
and
a double
.
public SoTPoint(long x, double y)
public SoTPoint(SoTPoint pt)
SoTPoint
from a SoTPoint
.
Method Detail |
---|
public SoTValue getX()
public void setX(SoTValue x)
public SoTValue getY()
public void setY(SoTValue y)
public boolean equals(SoTPoint stp)
public boolean isXTime()
public boolean isYTime()
public void add(SoTPoint point)
public SoTPoint copy()
SoTRange
.
public java.lang.String toString()
SoTPoint
to a default string
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |