|
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.Envelope
com.ibm.spatial.geom.Envelope.Long
public static class Envelope.Long
The Long class defines an envelope specified in
long coordinates.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.ibm.spatial.geom.Envelope |
|---|
Envelope.Double, Envelope.Long |
| Field Summary | |
|---|---|
long |
maxM
The maximum measure of this Envelope. |
long |
maxX
The maximum x coordinate of this Envelope. |
long |
maxY
The maximum y coordinate of this Envelope. |
long |
maxZ
The maximum z coordinate of this Envelope. |
long |
minM
The minimum measure of this Envelope. |
long |
minX
The minimum x coordinate of this Envelope. |
long |
minY
The minimum y coordinate of this Envelope. |
long |
minZ
The minimum z coordinate of this Envelope. |
| Constructor Summary | |
|---|---|
Envelope.Long()
Constructs a new 2D (no z coordinate and measure) Envelope,
where minimum values are larger than maximums (empty envelope). |
|
Envelope.Long(long minX,
long minY,
long maxX,
long maxY)
Constructs and initializes a Envelope from the specified
coordinates. |
|
| Method Summary | |
|---|---|
void |
add(long x,
long y)
Adds a point, specified by the integer arguments x and y, to this
Envelope. |
Envelope |
createIntersection(Envelope e)
Returns a new Envelope object representing the
intersection of this Envelope with the specified
Envelope. |
Envelope |
createUnion(Envelope e)
Returns a new Envelope object representing the union of
this Envelope with the specified Envelope. |
double |
getMaxM()
Returns the maximum measure of this Envelope
in double precision. |
double |
getMaxX()
Returns the maximum X coordinate of this Envelope
in double precision. |
double |
getMaxY()
Returns the maximum Y coordinate of this Envelope
in double precision. |
double |
getMaxZ()
Returns the maximum Z coordinate of this Envelope
in double precision. |
double |
getMinM()
Returns the minimum measure of this Envelope
in double precision. |
double |
getMinX()
Returns the minimum X coordinate of this Envelope
in double precision. |
double |
getMinY()
Returns the minimum Y coordinate of this Envelope
in double precision. |
double |
getMinZ()
Returns the minimum Z coordinate of this Envelope
in double precision. |
boolean |
hasM()
Determines whether or not this Envelope has M extent. |
boolean |
hasZ()
Determines whether or not this Envelope has Z extent. |
boolean |
isEmpty()
Determines whether or not this 2D Envelope
is empty. |
void |
setEmpty()
Sets this Envelope to empty (no extent). |
void |
setExtent(double minX,
double minY,
double maxX,
double maxY)
Sets the extent of this Envelope to the specified values. |
void |
setExtent(Envelope e)
Sets this Envelope to be the same as the specified
Envelope. |
void |
setExtent(long minX,
long minY,
long maxX,
long maxY)
Sets the extent of this Envelope to the specified long
values. |
void |
setExtentM(double minM,
double maxM)
Sets the extent of the M coordinate of this Envelope to the
specified values. |
void |
setExtentM(long minM,
long maxM)
Sets the extent of the measure of this Envelope to the
specified values. |
void |
setExtentZ(double minZ,
double maxZ)
Sets the extent of the Z coordinate of this Envelope to the
specified values. |
void |
setExtentZ(long minZ,
long maxZ)
Sets the extent of the Z coordinate of this Envelope to the
specified values. |
java.lang.String |
toString()
Returns the String representation of this
Envelope. |
| Methods inherited from class com.ibm.spatial.geom.Envelope |
|---|
add, add, add, add, addM, addM, addZ, addZ, clone, equals, getCenter, getCenter, getMax, getMin, hashCode, intersect, intersects, union |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public long minX
Envelope.
public long minY
Envelope.
public long maxX
Envelope.
public long maxY
Envelope.
public long minZ
Envelope.
public long maxZ
Envelope.
public long minM
Envelope.
public long maxM
Envelope.
| Constructor Detail |
|---|
public Envelope.Long()
Envelope,
where minimum values are larger than maximums (empty envelope).
public Envelope.Long(long minX,
long minY,
long maxX,
long maxY)
Envelope from the specified
coordinates. If the minimum values are larger than the maximum values
the envelope is defined as empty.
minX, maxX - the minimum/maximum x coordinate values of the
newly constructed EnvelopeminY, maxY - the minimum/maximum y coordinate values of the
newly constructed Envelope| Method Detail |
|---|
public double getMinX()
Envelope
in double precision.
getMinX in class EnvelopeEnvelope.public double getMaxX()
Envelope
in double precision.
getMaxX in class EnvelopeEnvelope.public double getMinY()
Envelope
in double precision.
getMinY in class EnvelopeEnvelope.public double getMaxY()
Envelope
in double precision.
getMaxY in class EnvelopeEnvelope.public double getMinZ()
Envelope
in double precision.
getMinZ in class EnvelopeEnvelope.public double getMaxZ()
Envelope
in double precision.
getMaxZ in class EnvelopeEnvelope.public double getMinM()
Envelope
in double precision.
getMinM in class EnvelopeEnvelope.public double getMaxM()
Envelope
in double precision.
getMaxM in class EnvelopeEnvelope.
public void setExtent(double minX,
double minY,
double maxX,
double maxY)
Envelope to the specified values.
setExtent in class EnvelopeminX, maxX - the minimum/maximum x coordinate valuesminY, maxY - the minimum/maximum y coordinate values
public void setExtentZ(double minZ,
double maxZ)
Envelope to the
specified values.
setExtentZ in class EnvelopeminZ, maxZ - the minimum/maximum Z coordinate values
public void setExtentM(double minM,
double maxM)
Envelope to the
specified values.
setExtentM in class EnvelopeminM, maxM - the minimum/maximum M coordinate values
public void setExtent(long minX,
long minY,
long maxX,
long maxY)
Envelope to the specified long
values.
minX, maxX - the minimum/maximum x coordinate valuesminY, maxY - the minimum/maximum y coordinate values
public void setExtentZ(long minZ,
long maxZ)
Envelope to the
specified values.
minZ, maxZ - the minimum/maximum Z coordinate values
public void setExtentM(long minM,
long maxM)
Envelope to the
specified values.
minM, maxM - the minimum/maximum measure valuespublic void setExtent(Envelope e)
Envelope to be the same as the specified
Envelope.
setExtent in class Enveloper - the specified Envelopepublic boolean hasZ()
Envelope has Z extent.
hasZ in class Envelopetrue if this Envelope has a Z extent;
false otherwise.public boolean hasM()
Envelope has M extent.
hasM in class Envelopetrue if this Envelope has an M extent;
false otherwise.public boolean isEmpty()
Envelope
is empty.
isEmpty in class Envelopetrue if this Envelope is empty;
false otherwise.public void setEmpty()
setEmpty in class Envelopepublic Envelope createIntersection(Envelope e)
Envelope object representing the
intersection of this Envelope with the specified
Envelope.
createIntersection in class Envelopee - the Envelope that is intersected with this
Envelope
Envelope contained in both the
specified Envelope and in this Envelope.public Envelope createUnion(Envelope e)
Envelope object representing the union of
this Envelope with the specified Envelope.
createUnion in class Enveloper - the Envelope to be combined with
this Envelope
Envelope containing both the
specified Envelope and this Envelope.
public void add(long x,
long y)
x and y, to this
Envelope. The resulting Envelope
is the smallest Envelope that contains both the original
Envelope and the specified point.
x, y - the coordinates of the new pointpublic java.lang.String toString()
String representation of this
Envelope.
toString in class java.lang.ObjectString representing this
Envelope.
|
Spatial DataBlade JAVA API v8.21 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||