public class MouseClickZoomingController extends Object
ScaleController, which allows to
plug different implementations (e.g. animations).| Constructor and Description |
|---|
MouseClickZoomingController(ScaleController scaleController)
Creates a new instance of this class, attached to a
ScaleController. |
| Modifier and Type | Method and Description |
|---|---|
int |
getClickCountToZoom()
Returns the number of clicks requested to trigger the zooming.
|
double |
getFactor() |
boolean |
isEnabled()
Returns true if the controller is enabled.
|
void |
setClickCountToZoom(int clickCountToZoom)
Sets the number of clicks requested to trigger the zooming.
|
void |
setEnabled(boolean enabled)
Enables or disables this controller.
|
void |
setFactor(double factor) |
public MouseClickZoomingController(ScaleController scaleController)
ScaleController. This controller must be
activated with setEnabled(true) in order to be used.scaleController - the scale controllerpublic void setClickCountToZoom(int clickCountToZoom)
clickCountToZoom - the number of clickspublic int getClickCountToZoom()
public void setEnabled(boolean enabled)
enabled - true if must be enabled, false otherwisepublic boolean isEnabled()
public void setFactor(double factor)
public double getFactor()
Copyright © 2003–2014 Tidalwave s.a.s. (http://tidalwave.it). All rights reserved.