public ToolContextImpl copy() {
return new ToolContextImpl(this);
}
public double calculateZoomLevel(double previousZoom, double zoom, Coordinate fixedPoint,
boolean alwayUsePreferredZoomLevels, boolean alwaysChangeZoom) {
CalculateZoomLevelParameter params = new CalculateZoomLevelParameter(getViewportModelInternal(), getViewportPane(), previousZoom, zoom, fixedPoint,
alwayUsePreferredZoomLevels, alwaysChangeZoom, ScaleUtils.zoomClosenessPreference());
return ScaleUtils.calculateZoomLevel(params);
}