public class HILayoutAlgorithm extends HIFoundation
| Constructor and Description |
|---|
HILayoutAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getApproximation() |
HIFunction |
getAttractiveForce() |
java.lang.Number |
getBubblePadding() |
java.lang.Object |
getDistance() |
java.lang.Boolean |
getDragBetweenSeries() |
java.lang.Boolean |
getEnableSimulation() |
java.lang.Number |
getFriction() |
java.lang.Number |
getGravitationalConstant() |
java.lang.Object |
getGridSize() |
java.lang.Number |
getInitialPositionRadius() |
java.lang.String |
getInitialPositions() |
java.lang.String |
getIntegration() |
java.lang.Number |
getIterations() |
java.lang.Number |
getKmeansThreshold() |
java.lang.Number |
getLinkLength() |
java.lang.Number |
getMaxIterations() |
java.lang.Number |
getMaxSpeed() |
java.util.HashMap<java.lang.String,java.lang.Object> |
getParams() |
java.lang.Boolean |
getParentNodeLimit() |
HIParentNodeOptions |
getParentNodeOptions() |
HIFunction |
getRepulsiveForce() |
java.lang.Boolean |
getSeriesInteraction() |
java.lang.Boolean |
getSplitSeries() |
java.lang.Number |
getTheta() |
java.lang.String |
getType() |
void |
setApproximation(java.lang.String approximation)
Approximation used to calculate repulsive forces affecting nodes.
|
void |
setAttractiveForce(HIFunction attractiveForce)
Attraction force applied on a node which is conected to another node by a link.
|
void |
setBubblePadding(java.lang.Number bubblePadding)
The distance between two bubbles, when the algorithm starts to treat two bubbles as overlapping.
|
void |
setDistance(java.lang.Object distance)
When `type` is set to `kmeans`, `distance` is a maximum distance between point and cluster center so that this point will be inside the cluster.
|
void |
setDragBetweenSeries(java.lang.Boolean dragBetweenSeries)
In case of split series, this option allows user to drag and drop points between series, for changing point related series.
|
void |
setEnableSimulation(java.lang.Boolean enableSimulation)
/** * description: Experimental.
|
void |
setFriction(java.lang.Number friction)
/** * description: Friction applied on forces to prevent nodes rushing to fast to the desired positions.
|
void |
setGravitationalConstant(java.lang.Number gravitationalConstant)
/** * description: Gravitational const used in the barycenter force of the algorithm. * demo: * [Custom forces with Euler integration](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/series-networkgraph/forces/)
defaults: 0.01
|
void |
setGridSize(java.lang.Object gridSize)
When `type` is set to the `grid`, `gridSize` is a size of a grid square element either as a number defining pixels, or a percentage defining a percentage of the plot area width.
|
void |
setInitialPositionRadius(java.lang.Number initialPositionRadius)
/** * description: When `initialPositions` are set to 'circle', `initialPositionRadius` is a distance from the center of circle, in which nodes are created. * demo: * [Initial radius set to 200](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/series-packedbubble/initial-radius/)
defaults: 1
|
void |
setInitialPositions(java.lang.String initialPositions)
/** * description: Initial layout algorithm for positioning nodes.
|
void |
setIntegration(java.lang.String integration)
Integration type.
|
void |
setIterations(java.lang.Number iterations)
When `type` is set to `kmeans`, `iterations` are the number of iterations that this algorithm will be repeated to find clusters positions.
|
void |
setKmeansThreshold(java.lang.Number kmeansThreshold)
When `type` is set to `undefined` and there are more visible points than the kmeansThreshold the `grid` algorithm is used to find clusters, otherwise `kmeans`.
|
void |
setLinkLength(java.lang.Number linkLength)
Ideal length (px) of the link between two nodes.
|
void |
setMaxIterations(java.lang.Number maxIterations)
/** * description: Max number of iterations before algorithm will stop.
|
void |
setMaxSpeed(java.lang.Number maxSpeed)
/** * description: Max speed that node can get in one iteration.
|
void |
setParentNodeLimit(java.lang.Boolean parentNodeLimit)
Whether bubbles should interact with their parentNode to keep them inside.
|
void |
setParentNodeOptions(HIParentNodeOptions parentNodeOptions)
Layout algorithm options for parent nodes.
|
void |
setRepulsiveForce(HIFunction repulsiveForce)
Repulsive force applied on a node.
|
void |
setSeriesInteraction(java.lang.Boolean seriesInteraction)
Whether series should interact with each other or not.
|
void |
setSplitSeries(java.lang.Boolean splitSeries)
Whether to split series into individual groups or to mix all series together.
|
void |
setTheta(java.lang.Number theta)
Barnes-Hut approximation only.
|
void |
setType(java.lang.String type)
Type of the algorithm used when positioning nodes.
|
public java.lang.String getApproximation()
public HIFunction getAttractiveForce()
public java.lang.Number getBubblePadding()
public java.lang.Object getDistance()
public java.lang.Boolean getDragBetweenSeries()
public java.lang.Boolean getEnableSimulation()
public java.lang.Number getFriction()
public java.lang.Number getGravitationalConstant()
public java.lang.Object getGridSize()
public java.lang.Number getInitialPositionRadius()
public java.lang.String getInitialPositions()
public java.lang.String getIntegration()
public java.lang.Number getIterations()
public java.lang.Number getKmeansThreshold()
public java.lang.Number getLinkLength()
public java.lang.Number getMaxIterations()
public java.lang.Number getMaxSpeed()
public java.util.HashMap<java.lang.String,java.lang.Object> getParams()
getParams in class HIFoundationpublic java.lang.Boolean getParentNodeLimit()
public HIParentNodeOptions getParentNodeOptions()
public HIFunction getRepulsiveForce()
public java.lang.Boolean getSeriesInteraction()
public java.lang.Boolean getSplitSeries()
public java.lang.Number getTheta()
public java.lang.String getType()
public void setApproximation(java.lang.String approximation)
public void setAttractiveForce(HIFunction attractiveForce)
public void setBubblePadding(java.lang.Number bubblePadding)
public void setDistance(java.lang.Object distance)
public void setDragBetweenSeries(java.lang.Boolean dragBetweenSeries)
public void setEnableSimulation(java.lang.Boolean enableSimulation)
public void setFriction(java.lang.Number friction)
public void setGravitationalConstant(java.lang.Number gravitationalConstant)
public void setGridSize(java.lang.Object gridSize)
public void setInitialPositionRadius(java.lang.Number initialPositionRadius)
public void setInitialPositions(java.lang.String initialPositions)
public void setIntegration(java.lang.String integration)
public void setIterations(java.lang.Number iterations)
public void setKmeansThreshold(java.lang.Number kmeansThreshold)
public void setLinkLength(java.lang.Number linkLength)
public void setMaxIterations(java.lang.Number maxIterations)
public void setMaxSpeed(java.lang.Number maxSpeed)
public void setParentNodeLimit(java.lang.Boolean parentNodeLimit)
public void setParentNodeOptions(HIParentNodeOptions parentNodeOptions)
public void setRepulsiveForce(HIFunction repulsiveForce)
public void setSeriesInteraction(java.lang.Boolean seriesInteraction)
public void setSplitSeries(java.lang.Boolean splitSeries)
public void setTheta(java.lang.Number theta)
public void setType(java.lang.String type)