org.gvsig.fmap.geom.primitive.impl
Class Envelope2D

java.lang.Object
  extended by org.gvsig.fmap.geom.primitive.impl.DefaultEnvelope
      extended by org.gvsig.fmap.geom.primitive.impl.Envelope2D
All Implemented Interfaces:
Cloneable, Envelope, Persistent

public class Envelope2D
extends DefaultEnvelope
implements Cloneable

Author:
Jorge Piera

Field Summary
static String PERSISTENCE_DEFINITION_NAME
           
 
Fields inherited from class org.gvsig.fmap.geom.primitive.impl.DefaultEnvelope
isEmpty, LOWERCORNER_FIELD, manager, max, min, UPPERCORNER_FIELD
 
Constructor Summary
Envelope2D()
           
Envelope2D(double minX, double minY, double maxX, double maxY)
           
Envelope2D(Point min, Point max)
           
 
Method Summary
 Object clone()
           
 Envelope convert(org.cresques.cts.ICoordTrans trans)
          Converts the envelope to other coordinate reference system
 int getDimension()
          The length of coordinate sequence (the number of entries) in this envelope.
static void registerPersistent()
           
 
Methods inherited from class org.gvsig.fmap.geom.primitive.impl.DefaultEnvelope
add, contains, equals, getCenter, getGeometry, getLength, getLowerCorner, getMaximum, getMinimum, getUpperCorner, intersects, isEmpty, loadFromState, saveToState, setLowerCorner, setUpperCorner, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PERSISTENCE_DEFINITION_NAME

public static final String PERSISTENCE_DEFINITION_NAME
See Also:
Constant Field Values
Constructor Detail

Envelope2D

public Envelope2D()

Envelope2D

public Envelope2D(Point min,
                  Point max)

Envelope2D

public Envelope2D(double minX,
                  double minY,
                  double maxX,
                  double maxY)
Method Detail

getDimension

public int getDimension()
Description copied from interface: Envelope
The length of coordinate sequence (the number of entries) in this envelope.

Specified by:
getDimension in interface Envelope
Returns:
The dimension of the envelope.

convert

public Envelope convert(org.cresques.cts.ICoordTrans trans)
Description copied from interface: Envelope
Converts the envelope to other coordinate reference system

Specified by:
convert in interface Envelope
Parameters:
trans - The CRS conversor
Returns:
A new envelope in other CRS

registerPersistent

public static void registerPersistent()

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class DefaultEnvelope
Throws:
CloneNotSupportedException


Copyright © 2004-2012 gvSIG. All Rights Reserved.