public class Brush extends com.google.gwt.core.client.JavaScriptObject implements IsFunction
Modifier and Type | Class and Description |
---|---|
static class |
Brush.BrushEvent |
Modifier | Constructor and Description |
---|---|
protected |
Brush() |
Modifier and Type | Method and Description |
---|---|
boolean |
empty()
Returns true if and only if the brush extent is empty.
|
<T> Array<T> |
extent() |
Brush |
on(Brush.BrushEvent event,
DatumFunction<Void> listener)
Respond to events when the brush is moved.
|
Brush |
x(Scale<?> scale)
Set the brush’s x-scale.
|
public final Brush x(Scale<?> scale)
scale
- the x-scale.public final Brush on(Brush.BrushEvent event, DatumFunction<Void> listener)
Brushes support three types of events:
event
- the event.listener
- the event listener.public final boolean empty()
When a brush is created, it is initially empty; the brush may also become empty with a single click on the background without moving, or if the extent is cleared.
A brush is considered empty if it has zero-width or zero-height. When the brush is empty, its extent is not strictly defined.
public final <T> Array<T> extent()
Copyright © 2013 gwt-d3. All Rights Reserved.