public class HWeighingLinearLayout<V,E> extends HLinearLayout<V,E> implements VertexWeightFunction.HasVertexWeightFunction<V>
| Modifier and Type | Field and Description |
|---|---|
private VertexWeightFunction<V> |
function |
base, margincomparator| Modifier | Constructor and Description |
|---|---|
|
HWeighingLinearLayout(edu.uci.ics.jung.graph.Graph<V,E> graph) |
|
HWeighingLinearLayout(edu.uci.ics.jung.graph.Graph<V,E> graph,
java.awt.Dimension size) |
protected |
HWeighingLinearLayout(edu.uci.ics.jung.graph.Graph<V,E> graph,
float base) |
|
HWeighingLinearLayout(edu.uci.ics.jung.graph.Graph<V,E> graph,
org.apache.commons.collections15.Transformer<V,java.awt.geom.Point2D> initializer) |
|
HWeighingLinearLayout(edu.uci.ics.jung.graph.Graph<V,E> graph,
org.apache.commons.collections15.Transformer<V,java.awt.geom.Point2D> initializer,
java.awt.Dimension size) |
| Modifier and Type | Method and Description |
|---|---|
VertexWeightFunction<V> |
getWeightFunction()
Get vertex weight function
|
void |
initialize() |
void |
setWeightFunction(VertexWeightFunction<V> function)
Set vertex weight function
|
getBase, reset, setBasegetComparator, setComparatorprivate VertexWeightFunction<V> function
public HWeighingLinearLayout(edu.uci.ics.jung.graph.Graph<V,E> graph, java.awt.Dimension size)
public HWeighingLinearLayout(edu.uci.ics.jung.graph.Graph<V,E> graph, org.apache.commons.collections15.Transformer<V,java.awt.geom.Point2D> initializer, java.awt.Dimension size)
public HWeighingLinearLayout(edu.uci.ics.jung.graph.Graph<V,E> graph, org.apache.commons.collections15.Transformer<V,java.awt.geom.Point2D> initializer)
public VertexWeightFunction<V> getWeightFunction()
VertexWeightFunction.HasVertexWeightFunctiongetWeightFunction in interface VertexWeightFunction.HasVertexWeightFunction<V>public void setWeightFunction(VertexWeightFunction<V> function)
VertexWeightFunction.HasVertexWeightFunctionsetWeightFunction in interface VertexWeightFunction.HasVertexWeightFunction<V>function - vertex weight functionpublic void initialize()
initialize in interface edu.uci.ics.jung.algorithms.layout.Layout<V,E>initialize in class HLinearLayout<V,E>