NVS Shapefile library Version 3.2
NVision Solutions, Inc.

com.nvs.shapefile
Class BoundingBox

java.lang.Object
  |
  +--com.nvs.shapefile.BoundingBox

public class BoundingBox
extends java.lang.Object

The BoundingBox holds a shapefile's or a shape's minimum and maximum X and Y values

Author:
Zack Watts
NVisionSolutions, Inc.

Constructor Summary
BoundingBox()
          Creates a Bounding box with both minimum and maximum values of X and Y set to zero.
BoundingBox(double xMin, double yMin, double xMax, double yMax)
          Creates a Bounding box specified minimum and maximum X and Y values.
 
Method Summary
 double getXMax()
          Retrieves the maximum X value.
 double getXMin()
          Retrieves the minimum X value.
 double getYMax()
          Retrieves the maximum Y value.
 double getYMin()
          Retrieves the minimum Y value.
 void setXMax(double xMax)
          Sets the maximum X value to that specified.
 void setXMin(double xMin)
          Sets the minimum X value to that specified.
 void setYMax(double yMax)
          Sets the maximum Y value to that specified.
 void setYMin(double yMin)
          Sets the minimum Y value to that specified.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundingBox

public BoundingBox()
Creates a Bounding box with both minimum and maximum values of X and Y set to zero.


BoundingBox

public BoundingBox(double xMin,
                   double yMin,
                   double xMax,
                   double yMax)
Creates a Bounding box specified minimum and maximum X and Y values.

Parameters:
xMin - Desired minimum X value as a double
yMin - Desired minimum Y value as a double
xMax - Desired maximum X value as a double
yMax - Desired maximum Y value as a double
Method Detail

getXMin

public double getXMin()
Retrieves the minimum X value.

Returns:
Minimum X values as a double

getXMax

public double getXMax()
Retrieves the maximum X value.

Returns:
Maximum X values as a double

getYMin

public double getYMin()
Retrieves the minimum Y value.

Returns:
Minimum Y values as a double

getYMax

public double getYMax()
Retrieves the maximum Y value.

Returns:
Maximum Y values as a double

setXMin

public void setXMin(double xMin)
Sets the minimum X value to that specified.

Parameters:
xMin - Desired minimum X value as a double

setXMax

public void setXMax(double xMax)
Sets the maximum X value to that specified.

Parameters:
xMax - Desired maximum X value as a double

setYMin

public void setYMin(double yMin)
Sets the minimum Y value to that specified.

Parameters:
yMin - Desired minimum Y value as a double

setYMax

public void setYMax(double yMax)
Sets the maximum Y value to that specified.

Parameters:
yMax - Desired maximum Y value as a double

NVS Shapefile library Version 3.2
NVision Solutions, Inc.