Package | Description |
---|---|
com.github.gwtd3.api.layout |
Modifier and Type | Method and Description |
---|---|
Force |
Force.alpha(double x)
Sets the force layout's cooling parameter, alpha to the constant value
specified.
|
Force |
Force.charge(DatumFunction<?> callback)
Sets sets the charge strength per node.
|
Force |
Force.charge(double x)
Sets the charge strength to the specified constant value for all nodes.
|
Force |
Force.chargeDistance(double x)
Sets the maximum distance over which charge forces are applied to the
constant specified value.
|
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 |
Force.friction(double friction)
Sets the friction coefficient to the specified value.
|
Force |
Force.gravity(double x)
Sets the gravitational strength to the specified value.
|
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.linkDistance(double distance)
Sets the target distance between linked nodes to the specified constant
value.
|
Force |
Force.links(Array<? extends Link> links)
Sets the layout's associated links to the specified array.
|
Force |
Force.linkStrength(DatumFunction<?> callback)
Sets the strength (rigidity) of links in the range [0,1].
|
Force |
Force.linkStrength(double strength)
Sets the strength (rigidity) of all links to the specified constant value
in the range [0,1].
|
Force |
Force.nodes(Array<? extends Force.Node> nodes)
Sets the layout's associated nodes to the specified array.
|
Force |
Force.resume()
Equivalent to:
force.alpha(.1); Sets the cooling parameter alpha to 0.1. |
Force |
Force.size(Array<Short> size)
If size is specified, sets the available layout size to the specified
two-element array of numbers representing x and y.
|
Force |
Force.start()
Starts the simulation; this method must be called when the layout is
first created, after assigning the nodes and links.
|
Force |
Force.stop()
Equivalent to:
force.alpha(0); Terminates the simulation, setting the cooling parameter alpha to zero. |
Force |
Force.theta(double x)
Sets the Barnes–Hut approximation criterion to the specified value.
|
Copyright © 2015 gwt-d3. All rights reserved.