public static class LatLonRect.Builder extends Object
| Constructor and Description |
|---|
Builder(double startLat,
double startLon)
Start with a point, use extend() to add points.
|
Builder(LatLonPoint p1,
double deltaLat,
double deltaLon)
Deprecated.
use LatLonRect.builder(LatLonPoint p1, double deltaLat, double deltaLon), or
new LatLonRect(LatLonPoint p1, double deltaLat, double deltaLon)
|
Builder(LatLonPoint left,
LatLonPoint right)
Deprecated.
use LatLonRect.builder(LatLonPoint p1, double deltaLat, double deltaLon), or
new LatLonRect(LatLonPoint p1, double deltaLat, double deltaLon)
|
Builder(String spec)
Deprecated.
use LatLonRect.builder(String spec)
|
| Modifier and Type | Method and Description |
|---|---|
LatLonRect |
build() |
LatLonRect.Builder |
expand(double delta)
Expand rect in all directions by delta amount.
|
LatLonRect.Builder |
extend(double lat,
double lon)
Extend the bounding box to contain this point
|
LatLonRect.Builder |
extend(LatLonPoint latlon)
Extend the bounding box to contain this point
|
LatLonRect.Builder |
extend(LatLonRect r)
Extend the bounding box to contain the given rectangle
|
LatLonRect.Builder |
extendToAllLongitudes(double minWidth)
Extend to allLongitudes if width > minWidth
|
@Deprecated public Builder(LatLonPoint left, LatLonPoint right)
@Deprecated public Builder(String spec)
@Deprecated public Builder(LatLonPoint p1, double deltaLat, double deltaLon)
public Builder(double startLat,
double startLon)
public LatLonRect.Builder extend(LatLonRect r)
public LatLonRect.Builder extend(LatLonPoint latlon)
public LatLonRect.Builder extend(double lat, double lon)
public LatLonRect.Builder extendToAllLongitudes(double minWidth)
public LatLonRect.Builder expand(double delta)
public LatLonRect build()