public class FruchtermanReingold extends AbstractLayout implements Layout
| Constructor and Description |
|---|
FruchtermanReingold(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).
|
Float |
getArea() |
Double |
getGravity() |
LayoutProperty[] |
getProperties()
The properties for this layout.
|
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).
|
void |
resetPropertiesValues()
Resets the properties values to the default values.
|
void |
setArea(Float area) |
void |
setGravity(Double gravity) |
void |
setSpeed(Double speed) |
ensureSafeLayoutNodePositions, getBuilder, isConverged, setConverged, setGraphModelequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBuilder, setGraphModelpublic FruchtermanReingold(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 Float getArea()
public void setArea(Float area)
public Double getGravity()
public void setGravity(Double gravity)
gravity - the gravity to setpublic Double getSpeed()
public void setSpeed(Double speed)
speed - the speed to setCopyright © 2007–2017. All rights reserved.