|
Spatial DataBlade JAVA API v8.21 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.spatial.geom.CoordPoint
com.ibm.spatial.geom.CoordPoint.Long
public static class CoordPoint.Long
The Long class defines a 2D CoordPoint specified in integer coordinates.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.ibm.spatial.geom.CoordPoint |
|---|
CoordPoint.Double, CoordPoint.DoubleZM, CoordPoint.Long, CoordPoint.LongZM |
| Field Summary | |
|---|---|
long |
x
The x coordinate of this CoordPoint. |
long |
y
The y coordinate of this CoordPoint. |
| Constructor Summary | |
|---|---|
CoordPoint.Long()
Constructs a new empty 2D CoordPoint. |
|
CoordPoint.Long(CoordPoint point)
Constructs and initializes a CoordPoint from the coordinates of the specified CoordPoint. |
|
CoordPoint.Long(long x,
long y)
Constructs and initializes a CoordPoint from the specified coordinates. |
|
CoordPoint.Long(Point point)
Constructs and initializes a CoordPoint from the coordinates of the specified OGC Point. |
|
| Method Summary | |
|---|---|
double |
getM()
Returns the measure associated to this CoordPoint. |
double |
getX()
Returns the X coordinate of this CoordPoint. |
double |
getY()
Returns the Y coordinate of this CoordPoint. |
double |
getZ()
Returns the Z coordinate of this CoordPoint. |
boolean |
isEmpty()
Tests whether this CoordPoint is empty. |
void |
setCoord(double x,
double y)
Sets the coordinates of this CoordPoint to the specified values. |
void |
setCoordAt(int n,
double value)
Sets the coordinate specified by index n with the value specified by value, where n=0 corresponds to x, n=1 to y, n=2 to z, and n=3 to m. |
void |
setEmpty()
Sets this CoordPoint to be empty. |
java.lang.String |
toString()
Returns the String representation of this CoordPoint. |
| Methods inherited from class com.ibm.spatial.geom.CoordPoint |
|---|
clone, equals, equals, getCoordAt, hashCode, hasM, hasZ, setCoord, setM, setZ |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public long x
public long y
| Constructor Detail |
|---|
public CoordPoint.Long()
public CoordPoint.Long(long x,
long y)
x - the x coordinate value of the newly constructed
CoordPointy - the y coordinate value of the newly constructed
CoordPointpublic CoordPoint.Long(CoordPoint point)
point - the CoordPoint to be used for the newly constructed
CoordPoint initializationpublic CoordPoint.Long(Point point)
point - the OGC Point to be used for the newly constructed
CoordPoint initialization| Method Detail |
|---|
public double getX()
getX in class CoordPointpublic double getY()
getY in class CoordPointpublic double getZ()
getZ in class CoordPointpublic double getM()
getM in class CoordPoint
public void setCoordAt(int n,
double value)
throws java.lang.IndexOutOfBoundsException
setCoordAt in class CoordPointn - the measure value
java.lang.IndexOutOfBoundsException - id n < 0 or n > 3
public void setCoord(double x,
double y)
setCoord in class CoordPointx - the x coordinate valuey - the y coordinate valuepublic void setEmpty()
setEmpty in class CoordPointpublic boolean isEmpty()
isEmpty in class CoordPointpublic java.lang.String toString()
toString in class CoordPoint
|
Spatial DataBlade JAVA API v8.21 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||