org.graphstream.ui.layout.springbox
Class GraphCellData
java.lang.Object
org.miv.pherd.ntree.BarycenterCellData
org.graphstream.ui.layout.springbox.GraphCellData
- All Implemented Interfaces:
- org.miv.pherd.ntree.CellData
public class GraphCellData
- extends org.miv.pherd.ntree.BarycenterCellData
A N-Tree cell data that both compute the barycenter of each cell (aggregate position),
the aggregate weight of each cell (sum of all of the cell node weights) and the
aggregate degree of each cell (sum of all of the cell node degree).
Field Summary |
double |
degree
Aggregate degree. |
Fields inherited from class org.miv.pherd.ntree.BarycenterCellData |
cell, center, marked, weight |
Methods inherited from class org.miv.pherd.ntree.BarycenterCellData |
distanceFrom, getCenter, getWeight, setCell |
degree
public double degree
- Aggregate degree. The sum of the degrees of each node aggregated
in this barycenter.
GraphCellData
public GraphCellData()
getDegree
public double getDegree()
- Aggregate degree. The sum of the degrees of each node aggregated
in this barycenter.
newCellData
public org.miv.pherd.ntree.CellData newCellData()
- Specified by:
newCellData
in interface org.miv.pherd.ntree.CellData
- Overrides:
newCellData
in class org.miv.pherd.ntree.BarycenterCellData
recompute
public void recompute()
- Specified by:
recompute
in interface org.miv.pherd.ntree.CellData
- Overrides:
recompute
in class org.miv.pherd.ntree.BarycenterCellData
Copyright © 2012. All Rights Reserved.