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) |
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()