org.opengis.pt
Class PT_Envelope

java.lang.Object
  extended byorg.opengis.pt.PT_Envelope
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class PT_Envelope
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

A box defined by two positions. The two positions must have the same dimension. Each of the ordinate values in the minimum point must be less than or equal to the corresponding ordinate value in the maximum point. Please note that these two points may be outside the valid domain of their coordinate system. (Of course the points and envelope do not explicitly reference a coordinate system, but their implicit coordinate system is defined by their context.)

Since:
1.00
Version:
1.01
Author:
Martin Daly, Martin Desruisseaux
See Also:
Serialized Form

Field Summary
 PT_CoordinatePoint maxCP
          Point containing maximum ordinate values.
 PT_CoordinatePoint minCP
          Point containing minimum ordinate values.
private static long serialVersionUID
          Use serialVersionUID from first draft for interoperability with CSS 1.00.
 
Constructor Summary
PT_Envelope()
          Construct an empty envelope.
 
Method Summary
 java.lang.Object clone()
          Returns a deep copy of this envelope.
 boolean equals(java.lang.Object object)
          Compares the specified object with this envelope for equality.
 int hashCode()
          Returns a hash value for this envelope.
 java.lang.String toString()
          Returns a string representation of this envelope.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Use serialVersionUID from first draft for interoperability with CSS 1.00.

See Also:
Constant Field Values

minCP

public PT_CoordinatePoint minCP
Point containing minimum ordinate values.


maxCP

public PT_CoordinatePoint maxCP
Point containing maximum ordinate values.

Constructor Detail

PT_Envelope

public PT_Envelope()
Construct an empty envelope. Caller must initialize minCP and maxCP.

Method Detail

hashCode

public int hashCode()
Returns a hash value for this envelope. This value need not remain consistent between different implementations of the same class.


equals

public boolean equals(java.lang.Object object)
Compares the specified object with this envelope for equality.


clone

public java.lang.Object clone()
Returns a deep copy of this envelope.


toString

public java.lang.String toString()
Returns a string representation of this envelope. The returned string is implementation dependent. It is usually provided for debugging purposes only.