public class Bounds extends Object
Modifier and Type | Field and Description |
---|---|
protected Double |
leftLongitude
If non-null, the left longitude bound
|
protected Double |
maxLatitude
If non-null, the maximum latitude bound
|
protected Double |
minLatitude
If non-null, the minimum latitude bound
|
protected boolean |
noBottomLatitudeBound
Set to true if no bottom latitude bound can be stated
|
protected boolean |
noLongitudeBound
Set to true if no longitude bounds can be stated
|
protected boolean |
noTopLatitudeBound
Set to true if no top latitude bound can be stated
|
protected Double |
rightLongitude
If non-null, the right longitude bound
|
Constructor and Description |
---|
Bounds()
Construct an empty bounds object
|
Modifier and Type | Method and Description |
---|---|
Bounds |
addHorizontalCircle(double z)
Add a constraint representing a horizontal circle with a
specified z value.
|
protected void |
addLatitudeBound(double latitude)
Update latitude bound.
|
Bounds |
addLatitudeZone(double latitude)
Add a constraint representing a horizontal circle at
a specific latitude.
|
protected void |
addLongitudeBound(double longitude)
Update longitude bound.
|
protected void |
addLongitudeBound(double newLeftLongitude,
double newRightLongitude)
Update longitude bound.
|
Bounds |
addLongitudeSlice(double newLeftLongitude,
double newRightLongitude)
Add a constraint representing a longitude slice.
|
Bounds |
addPoint(double latitude,
double longitude)
Add a single point.
|
Bounds |
addPoint(double x,
double y,
double z)
Add a single point.
|
Bounds |
addPoint(Vector v)
Add a single point.
|
boolean |
checkNoBottomLatitudeBound()
Check if there's no bottom latitude bound.
|
boolean |
checkNoLongitudeBound()
Check if there's no longitude bound.
|
boolean |
checkNoTopLatitudeBound()
Check if there's no top latitude bound.
|
Double |
getLeftLongitude()
Get left longitude, if any.
|
Double |
getMaxLatitude()
Get maximum latitude, if any.
|
Double |
getMinLatitude()
Get minimum latitude, if any.
|
Double |
getRightLongitude()
Get right longitude, if any.
|
Bounds |
noBottomLatitudeBound()
Signal that there is no bottom latitude bound.
|
Bounds |
noLongitudeBound()
Signal that there is no longitude bound.
|
Bounds |
noTopLatitudeBound()
Signal that there is no top latitude bound.
|
protected boolean noLongitudeBound
protected boolean noTopLatitudeBound
protected boolean noBottomLatitudeBound
protected Double minLatitude
protected Double maxLatitude
protected Double leftLongitude
protected Double rightLongitude
public Double getMaxLatitude()
public Double getMinLatitude()
public Double getLeftLongitude()
public Double getRightLongitude()
public boolean checkNoLongitudeBound()
public boolean checkNoTopLatitudeBound()
public boolean checkNoBottomLatitudeBound()
public Bounds addHorizontalCircle(double z)
z
- is the z value.public Bounds addLatitudeZone(double latitude)
latitude
- is the latitude.public Bounds addLongitudeSlice(double newLeftLongitude, double newRightLongitude)
newLeftLongitude
- is the left longitude value.newRightLongitude
- is the right longitude value.protected void addLatitudeBound(double latitude)
latitude
- is the latitude.protected void addLongitudeBound(double newLeftLongitude, double newRightLongitude)
newLeftLongitude
- is the left longitude.newRightLongitude
- is the right longitude.protected void addLongitudeBound(double longitude)
longitude
- is the new longitude value.public Bounds addPoint(Vector v)
v
- is the point vector.public Bounds addPoint(double x, double y, double z)
x
- is the point x.y
- is the point y.z
- is the point z.public Bounds addPoint(double latitude, double longitude)
latitude
- is the point's latitude.longitude
- is the point's longitude.public Bounds noLongitudeBound()
public Bounds noTopLatitudeBound()
public Bounds noBottomLatitudeBound()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.