public class ClosureZoomListener extends java.lang.Object implements ZoomListener
Constructor and Description |
---|
ClosureZoomListener() |
Modifier and Type | Method and Description |
---|---|
void |
setZoomChangedClosure(Closure zoomChangedClosure)
Specifies the zoom changed closure value.
|
void |
zoomChanged(double scale)
Called when zoom has changed.
|
public void setZoomChangedClosure(Closure zoomChangedClosure)
zoomChangedClosure
- the closure to be called upon the changing of
the zoom scale.
The closure should be of arity two.
The first argument as usual is the this
object, and the
second argument is the new zoom factor, a double.public void zoomChanged(double scale)
zoomChanged
in interface ZoomListener
scale
- New zoom scale that is in effect