Package | Description |
---|---|
com.github.gwtd3.api.svg |
Modifier and Type | Method and Description |
---|---|
Brush |
Brush.apply(Selection selection)
Draws or redraws this brush into the specified selection of elements.
|
Brush |
Brush.apply(Transition transition)
Draws or redraws this brush into the specified transition of elements.
|
Brush |
SVG.brush()
Create a new default
Brush generator. |
Brush |
Brush.clamp(boolean clamp)
Sets the current clamping behavior., for a brush where only one of the x-scale and y-scale are available.
|
Brush |
Brush.clamp(boolean clampX,
boolean clampY)
Sets the current clamping behavior, for a brush where both an x- and y-scale are available.
|
Brush |
Brush.clear()
Clears the extent, making the brush extent
empty() . |
Brush |
Brush.event(Selection selection)
Dispatch a brush gesture to registered listeners as a three event sequence:
Brush.BrushEvent.BRUSH_START ,
Brush.BrushEvent.BRUSH , and Brush.BrushEvent.BRUSH_END . |
Brush |
Brush.event(Transition transition)
Registers the appropriate tweens so that the brush dispatches events over the course of the
transition: a
Brush.BrushEvent.BRUSH_START event when the transition starts from the previously-set extent,
Brush.BrushEvent.BRUSH events for each
tick of the transition, and finally a Brush.BrushEvent.BRUSH_END event when the transition ends. |
<T> Brush |
Brush.extent(Array<T> array)
Set the current brush’s extent.
|
<T> Brush |
Brush.extent(double min,
double max)
Set the current brush’s extent for a one-dimensional brush (defined by its x scale, or by its y scale, but not
both).
|
<T> Brush |
Brush.extent(double x0,
double y0,
double x1,
double y1)
Set the current brush’s extent for a two-dimensional brush (defined by both its x scale and its y scale.
|
Brush |
Brush.on(Brush.BrushEvent event,
DatumFunction<Void> listener)
Set the listener for the specified event type.
|
Brush |
Brush.x(Scale<?> scale)
Set the brush’s x-scale.
|
Brush |
Brush.y(Scale<?> scale)
Set the brush’s y-scale
|
Copyright © 2015 gwt-d3. All rights reserved.