|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.infoviz.treeviz.nestedpie.NestedPieModel
Title : NestedPieModel Description: The data model for nested pie. $Id$ $Revision$ $Author$
Constructor Summary | |
NestedPieModel()
|
Method Summary | |
void |
addNode(NestedPieNode node)
does not accept null nodes or nodes with null path if the last node in the path specified by this node is a leaf node then the node will not be added all nodes in a model must have the same number of path elements otherwise an IllegalArgumentException is thrown. |
NestedPieNode |
findNodeByPathAndName(java.lang.String path,
java.lang.String name)
|
double[] |
getColorValueBounds()
returns the minimum and the maximum range of color this is calculated based on the standard deviation of the color values |
double |
getMeanColorValue()
|
int |
getPathLength()
returns the number of elements in a path. |
protected void |
recalculate()
recalculates parent node sizes and color range of the model |
void |
removeNode(NestedPieNode node)
will find its node by it's path and remove it |
void |
setName(java.lang.String name)
name of the root node of the tree |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NestedPieModel()
Method Detail |
public void setName(java.lang.String name)
public java.lang.String toString()
public NestedPieNode findNodeByPathAndName(java.lang.String path, java.lang.String name)
public void addNode(NestedPieNode node)
protected void recalculate()
public void removeNode(NestedPieNode node)
public double getMeanColorValue()
public double[] getColorValueBounds()
public int getPathLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |