public interface ZoomMode
| 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-centering 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-centering the map at
the model coordinate represented by the view coordinate.
|
BoundingBox getBoundingBox(ComponentViewport2D viewport, BoundingBox boundingBox)
viewport - The viewport.boundingBox - The bounding box.void zoom(ComponentViewport2D viewport, BoundingBox boundingBox)
viewport - The viewport.boundingBox - The bounding box.void zoom(ComponentViewport2D viewport, double x1, double y1, double x2, double y2)
viewport - The viewport.x1 - The first x coordinate.y1 - The first y coordinate.x2 - The second x coordinate.y2 - The second y coordinate.void zoomIn(ComponentViewport2D viewport, double x, double y)
viewport - The viewport to zoom.x - The x coordinate.y - The y coordinate.void zoomInAndRecentre(ComponentViewport2D viewport, double x, double y)
viewport - The viewport to zoom.x - The x coordinate.y - The y coordinate.void zoomOut(ComponentViewport2D viewport, double x, double y)
viewport - The viewport to zoom.x - The x coordinate.y - The y coordinate.void zoomOutAndRecentre(ComponentViewport2D viewport, double x, double y)
viewport - The viewport to zoom.x - The x coordinate.y - The y coordinate.Copyright © 2015 Revolution Systems Inc.. All rights reserved.