| Constructor and Description |
|---|
FactorZoomMode(double factor) |
| Modifier and Type | Method and Description |
|---|---|
BoundingBox |
getBoundingBox(ComponentViewport2D viewport,
BoundingBox boundingBox)
Get the best bounding box matching the zoom mode policy
|
void |
zoom(ComponentViewport2D viewport,
BoundingBox boundingBox)
Zoom the map so that the specified bounding box is visible.
|
void |
zoom(ComponentViewport2D viewport,
double x1,
double y1,
double x2,
double y2)
Zoom the map to include the bounding box specified by the model coordinate
pair.
|
void |
zoomIn(ComponentViewport2D viewport,
double x,
double y)
Zoom the map in one level at the view coordinate, with the model coordinate
being maintained at the same view coordinate.
|
void |
zoomInAndRecentre(ComponentViewport2D viewport,
double x,
double y)
Zoom the map in one level at the view coordinate, re-centring the map at
the model coordinate represented by the view coordinate.
|
void |
zoomOut(ComponentViewport2D viewport,
double x,
double y)
Zoom the map out one level at the view coordinate, with the model
coordinate being maintained at the same view coordinate.
|
void |
zoomOutAndRecentre(ComponentViewport2D viewport,
double x,
double y)
Zoom the map in one level at the view coordinate, re-centring the map at
the model coordinate represented by the view coordinate.
|
public BoundingBox getBoundingBox(ComponentViewport2D viewport, BoundingBox boundingBox)
getBoundingBox in interface ZoomModeviewport - The viewport.boundingBox - The bounding box.public void zoom(ComponentViewport2D viewport, BoundingBox boundingBox)
public void zoom(ComponentViewport2D viewport, double x1, double y1, double x2, double y2)
public void zoomIn(ComponentViewport2D viewport, double x, double y)
public void zoomInAndRecentre(ComponentViewport2D viewport, double x, double y)
zoomInAndRecentre in interface ZoomModeviewport - The viewport to zoom.x - The x coordinate.y - The y coordinate.public void zoomOut(ComponentViewport2D viewport, double x, double y)
public void zoomOutAndRecentre(ComponentViewport2D viewport, double x, double y)
zoomOutAndRecentre in interface ZoomModeviewport - The viewport to zoom.x - The x coordinate.y - The y coordinate.Copyright © 2015 Revolution Systems Inc.. All rights reserved.