org.gephi.layout.plugin.force.quadtree
Class QuadTree
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eps
public static final float eps
- See Also:
- Constant Field Values
QuadTree
public QuadTree(float posX,
float posY,
float size,
int maxLevel)
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