public class RandomLayout extends AbstractLayout implements Layout
| Constructor and Description |
|---|
RandomLayout(LayoutBuilder layoutBuilder,
double size) |
| 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).
|
LayoutProperty[] |
getProperties()
The properties for this layout.
|
Double |
getSize() |
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 |
setSize(Double size) |
ensureSafeLayoutNodePositions, getBuilder, isConverged, setConverged, setGraphModelequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBuilder, setGraphModelpublic RandomLayout(LayoutBuilder layoutBuilder, double size)
public void initAlgo()
Layoutpublic void goAlgo()
Layoutpublic boolean canAlgo()
LayoutcanAlgo in interface LayoutcanAlgo in class AbstractLayouttrue if the algorithm can run,
false otherwisepublic void endAlgo()
Layoutpublic LayoutProperty[] getProperties()
LayoutgetProperties in interface Layoutpublic void resetPropertiesValues()
LayoutresetPropertiesValues in interface Layoutpublic void setSize(Double size)
public Double getSize()
Copyright © 2007–2017. All rights reserved.