Gephi Toolkit Javadoc

org.gephi.layout.plugin.force.quadtree
Class QuadTree

java.lang.Object
  extended by org.gephi.layout.plugin.force.quadtree.QuadTree
All Implemented Interfaces:
Spatial

public class QuadTree
extends java.lang.Object
implements Spatial

Author:
Helder Suzuki

Field Summary
static float eps
           
 
Constructor Summary
QuadTree(float posX, float posY, float size, int maxLevel)
           
 
Method Summary
 boolean addNode(Spatial node)
           
static QuadTree buildTree(HierarchicalGraph graph, int maxLevel)
           
 java.lang.Iterable<QuadTree> getChildren()
           
 boolean isIsLeaf()
           
 int mass()
           
 float size()
           
 float x()
           
 float y()
           
 float z()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eps

public static final float eps
See Also:
Constant Field Values
Constructor Detail

QuadTree

public QuadTree(float posX,
                float posY,
                float size,
                int maxLevel)
Method Detail

buildTree

public static QuadTree buildTree(HierarchicalGraph graph,
                                 int maxLevel)

size

public float size()

getChildren

public java.lang.Iterable<QuadTree> getChildren()

x

public float x()
Specified by:
x in interface Spatial

y

public float y()
Specified by:
y in interface Spatial

mass

public int mass()

z

public float z()
Specified by:
z in interface Spatial

addNode

public boolean addNode(Spatial node)

isIsLeaf

public boolean isIsLeaf()
Returns:
the isLeaf

Gephi Toolkit Javadoc