Package com.luciad.maps
Class MapNavigator.ScaleConstraintOptions
java.lang.Object
com.luciad.maps.MapNavigator.ScaleConstraintOptions
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
MapNavigator
public static final class MapNavigator.ScaleConstraintOptions
extends Object
implements AutoCloseable
Options to configure the scale constraint to restrict the camera zooming.
See MapNavigator#getScaleConstraint for more information.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidfinalize()Returns the scale limit for zooming in.Returns the scale limit for zooming out.voidsetZoomInLimit(MapScale zoomInLimit) Sets the scale limit for zooming in.voidsetZoomOutLimit(MapScale zoomOutLimit) Sets the scale limit for zooming out.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getZoomInLimit
Returns the scale limit for zooming in.- Returns:
- the scale limit for zooming in.
- See Also:
-
setZoomInLimit
Sets the scale limit for zooming in.The default value is
MapScale#maxZoomedIn().- Parameters:
zoomInLimit- the scale limit for zooming in
-
getZoomOutLimit
Returns the scale limit for zooming out.- Returns:
- the scale limit for zooming out.
- See Also:
-
setZoomOutLimit
Sets the scale limit for zooming out.The default value is
MapScale#maxZoomedOut().- Parameters:
zoomOutLimit- the scale limit for zooming out.
-