Modifier and Type | Field and Description |
---|---|
static DatumFunction<Double> |
Coords.X_ACCESSOR
Convenient
DatumFunction that return the x component of a
Coords datum. |
static DatumFunction<Double> |
Coords.Y_ACCESSOR
Convenient
DatumFunction that return the y component of a
Coords datum. |
Modifier and Type | Method and Description |
---|---|
Drag |
Drag.on(Drag.DragEventType type,
DatumFunction<Void> listener)
Registers the specified listener to receive events of the specified type
from the drag behavior.
|
Zoom |
Zoom.on(Zoom.ZoomEventType type,
DatumFunction<Void> listener)
Registers the specified listener to receive events of the specified type
from the zoom behavior.
|
Drag |
Drag.origin(DatumFunction<Coords> o)
Set the origin accessor to the specified function.
|
Modifier and Type | Method and Description |
---|---|
Transition |
Transition.attr(String name,
DatumFunction<?> callback)
Transitions the attribute with the specified name to the value returned
by the specified function on all selected elements.
|
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.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 extends com.google.gwt.core.client.JavaScriptObject> |
Selection.data(DatumFunction<T> callback)
Joins each array returned by the specified function to a group of the
current selection, using the default by-index key mapping.
|
<T> Selection |
Selection.datum(DatumFunction<T> datumFunction)
Sets the bound data to the specified value on all selected elements.
|
Transition |
Transition.delay(DatumFunction<Integer> func)
Specifies the transition delay of each selected element.
|
Transition |
Transition.duration(DatumFunction<Integer> func)
Specifies per-element duration in milliseconds of all elements, using the
given function.
|
Transition |
Transition.each(DatumFunction<Void> listener)
Behaves similarly to
Selection.each(DatumFunction) : immediately
invokes the specified function for each element in the current
transition, passing in the current datum d and index i, with the this
context of the current DOM element. |
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.
|
Transition |
Transition.each(Transition.EventType type,
DatumFunction<Void> listener)
Adds a listener for transition events.
|
Transition |
Transition.filter(DatumFunction<com.google.gwt.dom.client.Element> datumFunction)
Filters the transition, returning a new transition that contains only the
elements for which the specified selector is true.
|
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.html(DatumFunction<String> callback)
Sets the inner html content to the value returned by the specified
function on all selected elements.
|
Selection |
Selection.on(String eventType,
DatumFunction<Void> listener)
Same as
Selection.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.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 |
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.
|
<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.
|
Transition |
Transition.style(String name,
DatumFunction<?> callback)
See
Transition#style(String, T, boolean) . |
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.
|
Transition |
Transition.text(DatumFunction<String> callback)
The text operator is based on the textContent property; setting the text
content will replace any existing child elements.
|
Selection |
Selection.text(DatumFunction<String> callback)
Sets the text content to the value returned by the specified function on
all selected elements.
|
Transition |
Transition.tween(String name,
DatumFunction<Interpolator<?>> factory)
Registers a custom tween for the specified name.
|
Modifier and Type | Class and Description |
---|---|
class |
CountFunction
A
DatumFunction that counts something, mainly used as a debugging purpose
in Selection.each(DatumFunction) method. |
class |
PropertyValueFunction<T>
A convenient
DatumFunction which returns the value of a specified property
for each datum. |
Modifier and Type | Method and Description |
---|---|
Voronoi |
Voronoi.x(DatumFunction<Double> xAccessor)
Sets the x-coordinate accessor.
|
Quadtree |
Quadtree.x(DatumFunction<Double> xAccessor)
Sets the x-coordinate accessor.
|
Hull |
Hull.x(DatumFunction<Double> xAccessor)
Sets the x-coordinate accessor.
|
Voronoi |
Voronoi.y(DatumFunction<Double> yAccessor)
Sets the y-coordinate accessor.
|
Quadtree |
Quadtree.y(DatumFunction<Double> yAccessor)
Sets the y-coordinate accessor.
|
Hull |
Hull.y(DatumFunction<Double> yAccessor)
Sets the y-coordinate accessor.
|
Modifier and Type | Method and Description |
---|---|
DatumFunction<?> |
Tree.value()
Returns the current value accessor which defaults to null, meaning that
the value attribute is not computed.
|
Modifier and Type | Method and Description |
---|---|
Force |
Force.charge(DatumFunction<?> callback)
Sets sets the charge strength per node.
|
Tree |
Tree.children(DatumFunction<Array<HierarchicalLayout.Node>> df)
Sets the specified children accessor function.
|
Force |
Force.linkDistance(DatumFunction<?> callback)
Sets the target distance between linked nodes. if distance is a function,
then the function is evaluated for each link (in order), being passed the
link and its index, with the this context as the force layout; the
function's return value is then used to set each link's distance.
|
Force |
Force.linkStrength(DatumFunction<?> callback)
Sets the strength (rigidity) of links in the range [0,1].
|
Selection |
Force.on(String name,
DatumFunction<?> callback)
Registers the specified listener to receive events of the specified type
from the force layout.
|
Tree |
Tree.value(DatumFunction<?> df)
Sets the value accessor to the specified function.
|
Modifier and Type | Method and Description |
---|---|
Formatter |
LogScale.tickFormat(int count,
DatumFunction<String> formatFunction)
Returns a number format function suitable for displaying a tick value.
|
Modifier and Type | Method and Description |
---|---|
DatumFunction<?> |
Diagonal.projection()
The projection converts the starting or ending point returned by the
source and target accessors
Diagonal.source() and Diagonal.target() ,
returning a two-element array of numbers. |
Modifier and Type | Method and Description |
---|---|
RadialLine |
RadialLine.angle(DatumFunction<Double> callback)
Set the function used to compute angle coordinates of points generated by
this line generator.
|
Line |
Line.defined(DatumFunction<Boolean> callback)
Sets the function used to controls where the line is defined.
|
Line |
Area.defined(DatumFunction<Boolean> callback)
FIXME: D3 bug ???
|
Chord |
Chord.endAngle(DatumFunction<Double> accessor)
Set the end angle accessor.
|
Brush |
Brush.on(Brush.BrushEvent event,
DatumFunction<Void> listener)
Set the listener for the specified event type.
|
Diagonal |
Diagonal.projection(DatumFunction<?> df)
The projection converts the starting or ending point returned by the
source and target accessors
Diagonal.source() and Diagonal.target() ,
returning a two-element array of numbers. |
RadialLine |
RadialLine.radius(DatumFunction<Double> callback)
Set the function used to compute radius coordinates of points generated
by this line generator.
|
Chord |
Chord.radius(DatumFunction<Double> accessor)
Set the radius accessor.
|
Symbol |
Symbol.size(DatumFunction<Integer> sizeAccessorFunction)
Set the size of the symbols using the specified function returning an
integer.
|
Diagonal |
Diagonal.source(DatumFunction<?> df)
Sets the source accessor function.
|
Chord |
Chord.source(DatumFunction<?> accessor)
Set the source accessor.
|
Chord |
Chord.startAngle(DatumFunction<Double> accessor)
Set the start angle accessor.
|
Diagonal |
Diagonal.target(DatumFunction<?> df)
Sets the target accessor function.
|
Chord |
Chord.target(DatumFunction<?> accessor)
Set the target accessor.
|
Axis |
Axis.tickFormat(DatumFunction<String> formatFunction)
Set the function to be used to format tick values.
|
Axis |
Axis.ticks(int count,
DatumFunction<String> formatSpecifier)
Same as
Axis.ticks(int) but suitable for
LogScale.tickFormat(int, DatumFunction) . |
Symbol |
Symbol.type(DatumFunction<Symbol.Type> typeAccessorFunction)
Set the type of the symbol using the specified function returning a
DragEventType.
|
Line |
Line.x(DatumFunction<Double> callback)
Set the function used to compute x coordinates of points generated by
this line generator.
|
Area |
Area.x(DatumFunction<Double> callback)
Set the function used to compute x coordinates of points generated by
this area generator.
|
Area |
Area.x0(DatumFunction<Double> callback) |
Area |
Area.x1(DatumFunction<Double> callback) |
Line |
Line.y(DatumFunction<Double> callback)
|
Area |
Area.y(DatumFunction<Double> callback)
|
Area |
Area.y0(DatumFunction<Double> callback)
|
Area |
Area.y1(DatumFunction<Double> callback)
|
Copyright © 2015 gwt-d3. All rights reserved.