|
Treeviz 0.37 2010-10-17 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.tree.sunray.SunrayNode
public class SunrayNode
The SunburstNode encapsulatets a TreeNode whithin a SunrayTree.
It holds the computed left, right, depth and internalDepth value of a node.
| Field Summary | |
|---|---|
protected long |
left
Nested Sets Tree: left preorder sequence number. |
protected int |
maxScatter
|
protected long |
right
Nested Sets Tree: right preorder sequence number. |
protected int |
totalScatter
|
| Constructor Summary | |
|---|---|
SunrayNode(SunrayNode parent,
TreeNode data,
int depth)
Creates a new instance. |
|
| Method Summary | |
|---|---|
java.util.List<SunrayNode> |
children()
|
void |
dump()
|
SunrayNode |
findNode(int depth,
long number,
int scatter)
|
TreePath2<TreeNode> |
getDataNodePath()
|
int |
getDepth()
|
long |
getExtent()
|
long |
getLeft()
|
int |
getMaxDepth()
|
int |
getMaxRayDepth()
|
int |
getMaxScatter()
|
long |
getRight()
|
SunrayNode |
getRoot()
|
int |
getScatter()
|
boolean |
isDescendant(SunrayNode node)
|
boolean |
isLeaf()
|
void |
renumber()
|
void |
renumber(int maxScatter)
|
protected int |
renumber(int depth,
int number,
int scatter,
int maxScatter,
int maxDepth)
|
void |
setScatter(int newValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long left
protected long right
protected int maxScatter
protected int totalScatter
| Constructor Detail |
|---|
public SunrayNode(SunrayNode parent,
TreeNode data,
int depth)
| Method Detail |
|---|
public TreePath2<TreeNode> getDataNodePath()
public SunrayNode getRoot()
public int getMaxScatter()
public int getMaxDepth()
public int getMaxRayDepth()
public void renumber()
public void renumber(int maxScatter)
protected int renumber(int depth,
int number,
int scatter,
int maxScatter,
int maxDepth)
public java.util.List<SunrayNode> children()
public void dump()
public boolean isLeaf()
public long getLeft()
public long getRight()
public long getExtent()
public int getDepth()
public int getScatter()
public void setScatter(int newValue)
public boolean isDescendant(SunrayNode node)
public SunrayNode findNode(int depth,
long number,
int scatter)
|
Copyright 2007-2008 (c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||