org.gephi.layout.plugin.multilevel
Class MultiLevelLayout
java.lang.Object
org.gephi.layout.plugin.AbstractLayout
org.gephi.layout.plugin.multilevel.MultiLevelLayout
- All Implemented Interfaces:
- Layout
public class MultiLevelLayout
- extends AbstractLayout
- implements Layout
- Author:
- Helder Suzuki
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiLevelLayout
public MultiLevelLayout(LayoutBuilder layoutBuilder,
MultiLevelLayout.CoarseningStrategy coarseningStrategy)
initAlgo
public void initAlgo()
- Description copied from interface:
Layout
- initAlgo() is called to initialize the algorithm (prepare to run).
- Specified by:
initAlgo
in interface Layout
goAlgo
public void goAlgo()
- Description copied from interface:
Layout
- Run a step in the algorithm, should be called only if canAlgo() returns
true.
- Specified by:
goAlgo
in interface Layout
endAlgo
public void endAlgo()
- Description copied from interface:
Layout
- Called when the algorithm is finished (canAlgo() returns false).
- Specified by:
endAlgo
in interface Layout
resetPropertiesValues
public void resetPropertiesValues()
- Description copied from interface:
Layout
- Resets the properties values to the default values.
- Specified by:
resetPropertiesValues
in interface Layout
getProperties
public LayoutProperty[] getProperties()
- Description copied from interface:
Layout
- The properties for this layout.
- Specified by:
getProperties
in interface Layout
- Returns:
- the layout properties
getMinSize
public java.lang.Integer getMinSize()
- Returns:
- the minSize
setMinSize
public void setMinSize(java.lang.Integer minSize)
- Parameters:
minSize
- the minSize to set
getMinCoarseningRate
public java.lang.Double getMinCoarseningRate()
- Returns:
- the minCoarseningRate
setMinCoarseningRate
public void setMinCoarseningRate(java.lang.Double minCoarseningRate)
- Parameters:
minCoarseningRate
- the minCoarseningRate to set
getStepRatio
public java.lang.Float getStepRatio()
- Returns:
- the stepRatio
setStepRatio
public void setStepRatio(java.lang.Float stepRatio)
- Parameters:
stepRatio
- the stepRatio to set
getOptimalDistance
public java.lang.Float getOptimalDistance()
- Returns:
- the optimalDistance
setOptimalDistance
public void setOptimalDistance(java.lang.Float optimalDistance)
- Parameters:
optimalDistance
- the optimalDistance to set
getQuadTreeMaxLevel
public java.lang.Integer getQuadTreeMaxLevel()
- Returns:
- the quadTreeMaxLevel
setQuadTreeMaxLevel
public void setQuadTreeMaxLevel(java.lang.Integer quadTreeMaxLevel)
- Parameters:
quadTreeMaxLevel
- the quadTreeMaxLevel to set
getBarnesHutTheta
public java.lang.Float getBarnesHutTheta()
- Returns:
- the barnesHutTheta
setBarnesHutTheta
public void setBarnesHutTheta(java.lang.Float barnesHutTheta)
- Parameters:
barnesHutTheta
- the barnesHutTheta to set