gistoolkit.features.featureutils
Class EnvelopeBuffer

java.lang.Object
  extended bygistoolkit.features.featureutils.EnvelopeBuffer

public class EnvelopeBuffer
extends java.lang.Object

Class to allow changes to an envelope.


Constructor Summary
EnvelopeBuffer()
          Creates an empty EnvelopeBuffer.
EnvelopeBuffer(Envelope inEnvelope)
          Creates a new instance of EnvelopeBuffer
 
Method Summary
 void expandToInclude(double inX, double inY)
          Expands this envelope to include the Point sent in.
 void expandToInclude(Envelope inEnvelope)
          Expands this envelope to include the envelope sent in.
 void expandToInclude(Point inPoint)
          Expands this envelope to include the Point sent in.
 Envelope getEnvelope()
          Return the envelope from this EnvelopeBuffer.
 double getMaxX()
          Return the Maximum X coordinate.
 double getMaxY()
          Return the Maximum Y coordinate.
 double getMinX()
          Return the Minimum X coordinate.
 double getMinY()
          Return the minimum Y coordinate.
 void setMaxX(double inMaxX)
          Set the Maximum X coordinate.
 void setMaxY(double inMaxY)
          Set the Maximum Y coordinate.
 void setMinX(double inMinX)
          Set the Minimum X coordinate.
 void setMinY(double inMinY)
          Set the Minimum Y coordinate.
 void translate(double diffX, double diffY)
          Translate this envelope buffer the given distance in X and Y.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvelopeBuffer

public EnvelopeBuffer()
Creates an empty EnvelopeBuffer.


EnvelopeBuffer

public EnvelopeBuffer(Envelope inEnvelope)
Creates a new instance of EnvelopeBuffer

Method Detail

getMinX

public double getMinX()
Return the Minimum X coordinate.


setMinX

public void setMinX(double inMinX)
Set the Minimum X coordinate.


getMaxX

public double getMaxX()
Return the Maximum X coordinate.


setMaxX

public void setMaxX(double inMaxX)
Set the Maximum X coordinate.


getMinY

public double getMinY()
Return the minimum Y coordinate.


setMinY

public void setMinY(double inMinY)
Set the Minimum Y coordinate.


getMaxY

public double getMaxY()
Return the Maximum Y coordinate.


setMaxY

public void setMaxY(double inMaxY)
Set the Maximum Y coordinate.


expandToInclude

public void expandToInclude(Envelope inEnvelope)
Expands this envelope to include the envelope sent in.


expandToInclude

public void expandToInclude(Point inPoint)
Expands this envelope to include the Point sent in.


expandToInclude

public void expandToInclude(double inX,
                            double inY)
Expands this envelope to include the Point sent in.


translate

public void translate(double diffX,
                      double diffY)
Translate this envelope buffer the given distance in X and Y.


getEnvelope

public Envelope getEnvelope()
Return the envelope from this EnvelopeBuffer.