Package | Description |
---|---|
com.github.gwtd3.api | |
com.github.gwtd3.api.behaviour | |
com.github.gwtd3.api.core | |
com.github.gwtd3.api.layout | |
com.github.gwtd3.api.svg |
Modifier and Type | Method and Description |
---|---|
static Selection |
D3.select(com.google.gwt.dom.client.Element element)
Selects the specified element.
|
static Selection |
D3.select(String selector)
Selects the first element that matches the specified selector string,
returning a single-element selection.
|
static Selection |
D3.select(com.google.gwt.user.client.ui.Widget widget)
Selects the specified widget.
|
static Selection |
D3.selectAll(Array<com.google.gwt.dom.client.Element> nodes)
Selects the specified array of elements.
|
static Selection |
D3.selectAll(Collection<com.google.gwt.dom.client.Element> nodes)
Selects the specified collection of elements.
|
static Selection |
D3.selectAll(com.google.gwt.dom.client.Element... nodes)
Selects the specified array of elements.
|
static Selection |
D3.selectAll(com.google.gwt.dom.client.NodeList<?> nodes)
Selects the list of elements.
|
static Selection |
D3.selectAll(String selector)
Selects all elements that match the specified selector.
|
static Selection |
D3.selectAll(com.google.gwt.user.client.ui.Widget... nodes)
Selects the elements corresponding to the root elements of the widgets in
the specified array.
|
static Selection |
D3.selectAll(com.google.gwt.user.client.ui.WidgetCollection widgets)
Selects the specified collection of elements.
|
Modifier and Type | Method and Description |
---|---|
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 . |
Modifier and Type | Class and Description |
---|---|
class |
UpdateSelection
The result of the
data() methods. |
Modifier and Type | Method and Description |
---|---|
Selection |
EnteringSelection.append(String name)
Appends a new element with the specified name as the last child of each
element in the current selection.
|
<T> Selection |
Selection.attr(String name,
boolean value)
See
attr(String, String) . |
Selection |
Selection.attr(String name,
DatumFunction<?> callback)
Sets the attribute with the specified name to the value returned by the
specified function on all selected elements.
|
Selection |
Selection.attr(String name,
double value)
See
attr(String, String) . |
Selection |
Selection.attr(String name,
PathDataGenerator value)
Sets the attribute with the specified name to the specified
PathDataGenerator value on all selected
elements. |
<T> Selection |
Selection.attr(String name,
String value)
Sets the attribute with the specified name to the specified value on all
selected elements.
|
Selection |
EnteringSelection.call(IsFunction jsFunction)
Invokes the specified function once, passing in the current selection as
a single parameter.
|
Selection |
Selection.classed(String classNames,
boolean add)
Sets whether or not the specified class(es) is(are) associated with the
selected elements.
|
Selection |
Selection.classed(String classNames,
DatumFunction<Boolean> addFunction)
Sets whether or not the class should be associated or not to the
elements, according to the return value of the given function.
|
<T> Selection |
Selection.datum(DatumFunction<T> datumFunction)
Sets the bound data to the specified value on all selected elements.
|
Selection |
Selection.datum(Object object)
Sets the bound data to the specified value on all selected elements.
|
Selection |
Selection.each(DatumFunction<Void> func)
Invokes the specified function for each element in the current selection,
passing in the current datum d and index i.
|
Selection |
UpdateSelection.exit()
Returns the exiting selection: existing DOM elements in the current selection for which no new data element was
found.
|
Selection |
Selection.filter(DatumFunction<com.google.gwt.dom.client.Element> datumFunction)
Filters the selection, returning a new selection that contains only the
elements returned by the given function.
|
Selection |
Selection.filter(String selector)
Filters the selection, returning a new selection that contains only the
elements for which the specified selector is true.
|
Selection |
Selection.html(DatumFunction<String> callback)
Sets the inner html content to the value returned by the specified
function on all selected elements.
|
Selection |
Selection.html(String value)
Sets the inner html content of all selected elements to the specified
value.
|
Selection |
EnteringSelection.insert(String name,
String beforeSelector)
Inserts a new element with the specified name before the element matching
the specified before selector, for each element in the current selection.
|
Selection |
Selection.interrupt()
Immediately interrupts the current transition, if any.
|
Selection |
Selection.on(String eventType,
DatumFunction<Void> listener)
Same as
on(String, DatumFunction, boolean) with false for the
useCapture flag. |
Selection |
Selection.on(String eventType,
DatumFunction<Void> listener,
boolean useCapture)
Adds or removes an event listener to each element in the current
selection, for the specified type.
|
Selection |
Selection.order()
Re-inserts elements into the document such that the document order
matches the selection order.
|
Selection |
EnteringSelection.prepend(String name)
Insert a new element before any other existing children.
|
<T> Selection |
Selection.property(String name,
boolean value)
|
Selection |
Selection.property(String name,
DatumFunction<?> callback)
Sets the property with the specified name to the value returned by the
specified function on all selected elements.
|
Selection |
Selection.property(String name,
double value)
|
<T> Selection |
Selection.property(String name,
com.google.gwt.core.client.JavaScriptObject value)
|
<T> Selection |
Selection.property(String name,
String value)
Sets the property with the specified name to the specified value on all
selected elements.
|
Selection |
Selection.remove()
Removes the elements in the current selection from the current document.
|
Selection |
EnteringSelection.select(DatumFunction<com.google.gwt.dom.client.Element> func)
Creates a new selection containing the first non-null element returned by the given function.
|
Selection |
EnteringSelection.select(String selector)
For each element in the current selection, selects the first descendant
element that matches the specified selector string.
|
<T extends com.google.gwt.dom.client.Node> |
Selection.selectAll(DatumFunction<com.google.gwt.dom.client.NodeList<T>> func)
For each element in the current selection, selects elements returned by the specified function,
which is invoked in the same manner as other operator functions, being passed the current datum d and index i,
with the this context as the current DOM element.
|
Selection |
Selection.selectAll(String selector)
For each element in the current selection, selects descendant elements
that match the specified selector string.
|
Selection |
Selection.sort(Comparator<Value> comparator)
Sorts the elements in the current selection according to the specified
comparator function.
|
Selection |
Selection.style(String name,
DatumFunction<?> callback)
See
Selection#style(String, T, boolean) . |
Selection |
Transition.style(String name,
DatumFunction<?> callback,
boolean important)
Transitions the value of the CSS style property with the specified name
to the specified value.
|
Selection |
Selection.style(String name,
DatumFunction<?> callback,
boolean important)
Sets the CSS style property with the specified name to the value returned
by the given function on all selected elements.
|
Selection |
Selection.style(String name,
double value)
See
Selection#style(String, T, boolean) . |
Selection |
Selection.style(String name,
String value)
See
Selection#style(String, T, boolean) . |
Selection |
Transition.styleTween(String name,
TweenFunction<?> tweenFunction,
boolean important)
Transitions the value of the CSS style property with the specified name
according to the specified tween function.
|
Selection |
Selection.text(DatumFunction<String> callback)
Sets the text content to the value returned by the specified function on
all selected elements.
|
<T> Selection |
Selection.text(String value)
Sets the text content of all selected elements to the given value.
|
Modifier and Type | Method and Description |
---|---|
Selection |
Force.on(String name,
DatumFunction<?> callback)
Registers the specified listener to receive events of the specified type
from the force layout.
|
Modifier and Type | Method and Description |
---|---|
Brush |
Brush.apply(Selection selection)
Draws or redraws this brush into the specified selection of elements.
|
Axis |
Axis.apply(Selection selection)
Apply the axis to a selection.
|
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 . |
Copyright © 2015 gwt-d3. All rights reserved.