public class ViewportData extends Object
| Modifier and Type | Field and Description |
|---|---|
private ProjectionBounds |
bounds |
private EastNorth |
center |
private Double |
scale |
| Constructor and Description |
|---|
ViewportData(EastNorth center,
Double scale)
Constructs a new
ViewportData. |
ViewportData(ProjectionBounds bounds) |
| Modifier and Type | Method and Description |
|---|---|
ProjectionBounds |
getBounds()
Return the bounds in east-north coordinate space.
|
EastNorth |
getCenter()
Return the projected coordinates of the map center
|
Double |
getScale()
Return the scale factor in east-/north-units per pixel.
|
private final ProjectionBounds bounds
public ViewportData(EastNorth center, Double scale)
ViewportData.center - Projected coordinates of the map centerscale - Scale factor in east-/north-units per pixelpublic ViewportData(ProjectionBounds bounds)
public EastNorth getCenter()
public Double getScale()
public ProjectionBounds getBounds()