public abstract class AbstractLayout extends Object implements Layout
| Constructor and Description |
|---|
AbstractLayout(LayoutBuilder layoutBuilder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAlgo()
Tests if the algorithm can run, called before each pass.
|
static void |
ensureSafeLayoutNodePositions(org.gephi.graph.api.GraphModel graphModel)
See https://github.com/gephi/gephi/issues/603 Nodes position to NaN on applied layout
|
LayoutBuilder |
getBuilder()
The reference to the LayoutBuilder that instanciated this Layout.
|
boolean |
isConverged() |
void |
setConverged(boolean converged) |
void |
setGraphModel(org.gephi.graph.api.GraphModel graphModel)
Injects the graph model for the graph this Layout should operate on.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendAlgo, getProperties, goAlgo, initAlgo, resetPropertiesValuespublic AbstractLayout(LayoutBuilder layoutBuilder)
public LayoutBuilder getBuilder()
LayoutgetBuilder in interface Layoutpublic void setGraphModel(org.gephi.graph.api.GraphModel graphModel)
LayoutIt's preferable to get visible graph to perform on visualization.
setGraphModel in interface LayoutgraphModel - the graph model that the layout is to be working onpublic boolean canAlgo()
Layoutpublic void setConverged(boolean converged)
public boolean isConverged()
public static void ensureSafeLayoutNodePositions(org.gephi.graph.api.GraphModel graphModel)
graphModel - Copyright © 2007–2017. All rights reserved.