Package | Description |
---|---|
com.github.gwtd3.api.behaviour |
Modifier and Type | Method and Description |
---|---|
Zoom |
Zoom.center(double x,
double y)
If center is specified, sets the focal point [x, y] for
mousewheel zooming and returns this zoom behavior.
|
Zoom |
Zoom.event(Selection selection)
Immediately dispatches a zoom gesture to registered listeners, as the
three event sequence
Zoom.ZoomEventType.ZOOMSTART ,
Zoom.ZoomEventType.ZOOM and Zoom.ZoomEventType.ZOOMEND . |
Zoom |
Zoom.event(Transition selection)
Registers the appropriate tweens so that the zoom behavior dispatches
events over the course of the transition: a
Zoom.ZoomEventType.ZOOMSTART event when the transition starts from the
previously-set view, Zoom.ZoomEventType.ZOOM events for each tick of
the transition, and finally a Zoom.ZoomEventType.ZOOMEND event when
the transition ends. |
Zoom |
Zoom.on(Zoom.ZoomEventType type,
DatumFunction<Void> listener)
Registers the specified listener to receive events of the specified type
from the zoom behavior.
|
Zoom |
Zoom.scale(double scale)
Specifies the current zoom scale.
|
Zoom |
Zoom.scaleExtent(Array<Double> scale)
Specifies the zoom scale's allowed range as a two-element array,
[*minimum*, maximum].
|
Zoom |
Zoom.size(int width,
int height)
If size is specified, sets the viewport size to the specified dimensions
[width, height] and returns this zoom behavior.
|
Zoom |
Zoom.translate(Array<Double> vector)
Specifies the current zoom translation vector.
|
Zoom |
Zoom.x(QuantitativeScale<?> scale)
Specifies an x-scale whose domain should be automatically adjusted when
zooming.
|
Zoom |
Zoom.y(QuantitativeScale<?> scale)
Specifies an y-scale whose domain should be automatically adjusted when
zooming.
|
Zoom |
Behavior.zoom()
|
Copyright © 2015 gwt-d3. All rights reserved.