org.graphstream.ui.layout.springbox
Class GraphCellData

java.lang.Object
  extended by org.miv.pherd.ntree.BarycenterCellData
      extended by 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
 
Constructor Summary
GraphCellData()
           
 
Method Summary
 double getDegree()
          Aggregate degree.
 org.miv.pherd.ntree.CellData newCellData()
           
 void recompute()
           
 
Methods inherited from class org.miv.pherd.ntree.BarycenterCellData
distanceFrom, getCenter, getWeight, setCell
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

degree

public double degree
Aggregate degree. The sum of the degrees of each node aggregated in this barycenter.

Constructor Detail

GraphCellData

public GraphCellData()
Method Detail

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.