public class ForceAtlasLayout extends AbstractLayout implements Layout
| Modifier and Type | Field and Description |
|---|---|
double |
inertia |
| Constructor and Description |
|---|
ForceAtlasLayout(LayoutBuilder layoutBuilder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAlgo()
Tests if the algorithm can run, called before each pass.
|
void |
endAlgo()
Called when the algorithm is finished (canAlgo() returns false).
|
Double |
getAttractionStrength() |
Double |
getCooling() |
Double |
getFreezeInertia() |
Double |
getFreezeStrength() |
Double |
getGravity() |
Double |
getInertia() |
Double |
getMaxDisplacement() |
LayoutProperty[] |
getProperties()
The properties for this layout.
|
Double |
getRepulsionStrength() |
Double |
getSpeed() |
void |
goAlgo()
Run a step in the algorithm, should be called only if canAlgo() returns
true.
|
void |
initAlgo()
initAlgo() is called to initialize the algorithm (prepare to run).
|
Boolean |
isAdjustSizes() |
Boolean |
isFreezeBalance() |
Boolean |
isOutboundAttractionDistribution() |
void |
resetPropertiesValues()
Resets the properties values to the default values.
|
void |
setAdjustSizes(Boolean adjustSizes) |
void |
setAttractionStrength(Double attractionStrength) |
void |
setCooling(Double cooling) |
void |
setFreezeBalance(Boolean freezeBalance) |
void |
setFreezeInertia(Double freezeInertia) |
void |
setFreezeStrength(Double freezeStrength) |
void |
setGravity(Double gravity) |
void |
setInertia(Double inertia) |
void |
setMaxDisplacement(Double maxDisplacement) |
void |
setOutboundAttractionDistribution(Boolean outboundAttractionDistribution) |
void |
setRepulsionStrength(Double repulsionStrength) |
void |
setSpeed(Double speed) |
ensureSafeLayoutNodePositions, getBuilder, isConverged, setConverged, setGraphModelequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBuilder, setGraphModelpublic ForceAtlasLayout(LayoutBuilder layoutBuilder)
public void resetPropertiesValues()
LayoutresetPropertiesValues in interface Layoutpublic void initAlgo()
Layoutpublic void goAlgo()
Layoutpublic void endAlgo()
Layoutpublic boolean canAlgo()
LayoutcanAlgo in interface LayoutcanAlgo in class AbstractLayouttrue if the algorithm can run,
false otherwisepublic LayoutProperty[] getProperties()
LayoutgetProperties in interface Layoutpublic void setInertia(Double inertia)
public Double getInertia()
public Double getRepulsionStrength()
public void setRepulsionStrength(Double repulsionStrength)
repulsionStrength - the repulsionStrength to setpublic Double getAttractionStrength()
public void setAttractionStrength(Double attractionStrength)
attractionStrength - the attractionStrength to setpublic Double getMaxDisplacement()
public void setMaxDisplacement(Double maxDisplacement)
maxDisplacement - the maxDisplacement to setpublic Boolean isFreezeBalance()
public void setFreezeBalance(Boolean freezeBalance)
freezeBalance - the freezeBalance to setpublic Double getFreezeStrength()
public void setFreezeStrength(Double freezeStrength)
freezeStrength - the freezeStrength to setpublic Double getFreezeInertia()
public void setFreezeInertia(Double freezeInertia)
freezeInertia - the freezeInertia to setpublic Double getGravity()
public void setGravity(Double gravity)
gravity - the gravity to setpublic Double getSpeed()
public void setSpeed(Double speed)
speed - the speed to setpublic Double getCooling()
public void setCooling(Double cooling)
cooling - the cooling to setpublic Boolean isOutboundAttractionDistribution()
public void setOutboundAttractionDistribution(Boolean outboundAttractionDistribution)
outboundAttractionDistribution - the outboundAttractionDistribution to setpublic Boolean isAdjustSizes()
public void setAdjustSizes(Boolean adjustSizes)
adjustSizes - the adjustSizes to setCopyright © 2007–2017. All rights reserved.