Package | Description |
---|---|
com.github.gwtd3.api.layout |
Modifier and Type | Method and Description |
---|---|
Force<T> |
Force.alpha(double x)
Sets the force layout's cooling parameter, alpha to the constant value
specified.
|
Force<T> |
Force.charge(DatumFunction<Double> callback)
Sets sets the charge strength per node.
|
Force<T> |
Force.charge(double x)
Sets the charge strength to the specified constant value for all nodes.
|
Force<T> |
Force.chargeDistance(double x)
Sets the maximum distance over which charge forces are applied to nodes.
|
Force |
Layout.force()
Constructs a new force-directed layout with the default settings: size
1×1, link strength 1, friction 0.9, distance 20, charge strength -30,
gravity strength 0.1, and theta parameter 0.8.
|
Force<T> |
Force.friction(double friction)
Sets the friction coefficient to the specified value.
|
Force<T> |
Force.gravity(double x)
Sets the gravitational strength to the specified value.
|
Force<T> |
Force.linkDistance(DatumFunction<Double> callback)
Sets the target distance between linked nodes.
|
Force<T> |
Force.linkDistance(double distance)
Sets the target distance between linked nodes to the specified constant
value.
|
Force<T> |
Force.links(Array<Force.Link<T>> links)
Sets the layout's associated links to the specified array.
|
Force<T> |
Force.linkStrength(DatumFunction<Double> callback)
Sets the strength (rigidity) of links in the range [0,1].
|
Force<T> |
Force.linkStrength(double strength)
Sets the strength (rigidity) of all links to the specified constant value
in the range [0,1].
|
Force<T> |
Force.nodes(Array<Force.Node<T>> nodes)
Sets the layout's associated nodes to the specified array.
|
Force<T> |
Force.nodes(List<Force.Node<T>> nodes)
Sets the layout's associated nodes to the specified array.
|
Force<T> |
Force.resume()
Equivalent to:
|
Force<T> |
Force.size(Array<Double> size)
Sets the available layout size.
|
Force<T> |
Force.size(double width,
double height)
Sets the available layout size.
|
Force<T> |
Force.start()
Starts the simulation; this method must be called when the layout is
first created, after assigning the nodes and links.
|
Force<T> |
Force.stop()
Equivalent to:
|
Force<T> |
Force.theta(double x)
Sets the Barnes–Hut approximation criterion to the specified value.
|
Copyright © 2017 gwt-d3. All rights reserved.