public class MapViewState.MapViewRectangle extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private MapViewState.MapViewPoint |
p1 |
private MapViewState.MapViewPoint |
p2 |
Constructor and Description |
---|
MapViewRectangle(MapViewState.MapViewPoint p1,
MapViewState.MapViewPoint p2)
Create a new MapViewRectangle
|
Modifier and Type | Method and Description |
---|---|
Bounds |
getCornerBounds()
Gets a rough estimate of the bounds by assuming lat/lon are parallel to x/y.
|
Bounds |
getLatLonBoundsBox()
Gets the real bounds that enclose this rectangle.
|
ProjectionBounds |
getProjectionBounds()
Gets the projection bounds for this rectangle.
|
private final MapViewState.MapViewPoint p1
private final MapViewState.MapViewPoint p2
MapViewRectangle(MapViewState.MapViewPoint p1, MapViewState.MapViewPoint p2)
p1
- The first point to usep2
- The second point to use.public ProjectionBounds getProjectionBounds()
public Bounds getCornerBounds()
getLatLonBoundsBox()
public Bounds getLatLonBoundsBox()