| Constructor and Description |
|---|
OpenOrdLayout(LayoutBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAlgo()
Tests if the algorithm can run, called before each pass.
|
boolean |
cancel()
Cancel the task.
|
void |
endAlgo()
Called when the algorithm is finished (canAlgo() returns false).
|
LayoutBuilder |
getBuilder()
The reference to the LayoutBuilder that instanciated this Layout.
|
Control |
getControl() |
Integer |
getCooldownStage() |
Integer |
getCrunchStage() |
Float |
getEdgeCut() |
Integer |
getExpansionStage() |
org.gephi.graph.api.Graph |
getGraph() |
Integer |
getLiquidStage() |
Integer |
getNumIterations() |
Integer |
getNumThreads() |
LayoutProperty[] |
getProperties()
The properties for this layout.
|
Long |
getRandSeed() |
Float |
getRealTime() |
Integer |
getSimmerStage() |
Worker[] |
getWorkers() |
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 |
setCooldownStage(Integer value) |
void |
setCrunchStage(Integer value) |
void |
setEdgeCut(Float edgeCut) |
void |
setExpansionStage(Integer value) |
void |
setGraphModel(org.gephi.graph.api.GraphModel graphModel)
Injects the graph model for the graph this Layout should operate on.
|
void |
setLiquidStage(Integer value) |
void |
setNumIterations(Integer numIterations) |
void |
setNumThreads(Integer numThreads) |
void |
setProgressTicket(ProgressTicket progressTicket)
Set the progress ticket for the long task.
|
void |
setRandSeed(Long randSeed) |
void |
setRealTime(Float realTime) |
void |
setRunning(Boolean running) |
void |
setSimmerStage(Integer value) |
public OpenOrdLayout(LayoutBuilder builder)
public void resetPropertiesValues()
LayoutresetPropertiesValues in interface Layoutpublic void initAlgo()
Layoutpublic void goAlgo()
Layoutpublic void endAlgo()
Layoutpublic boolean canAlgo()
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 LayoutProperty[] getProperties()
LayoutgetProperties in interface Layoutpublic Float getEdgeCut()
public void setEdgeCut(Float edgeCut)
public Integer getNumThreads()
public void setNumThreads(Integer numThreads)
public Long getRandSeed()
public void setRandSeed(Long randSeed)
public void setRunning(Boolean running)
public Integer getNumIterations()
public void setNumIterations(Integer numIterations)
public Float getRealTime()
public void setRealTime(Float realTime)
public Integer getLiquidStage()
public Integer getExpansionStage()
public Integer getCooldownStage()
public Integer getCrunchStage()
public Integer getSimmerStage()
public void setLiquidStage(Integer value)
public void setExpansionStage(Integer value)
public void setCooldownStage(Integer value)
public void setCrunchStage(Integer value)
public void setSimmerStage(Integer value)
public LayoutBuilder getBuilder()
LayoutgetBuilder in interface Layoutpublic Worker[] getWorkers()
public org.gephi.graph.api.Graph getGraph()
public Control getControl()
public boolean cancel()
LongTasktrue if the task has been sucessfully cancelled, false otherwise.public void setProgressTicket(ProgressTicket progressTicket)
LongTasksetProgressTicket in interface LongTaskprogressTicket - the progress ticket for this taskCopyright © 2007–2017. All rights reserved.