com.infoviz.treeviz.nestedpie
Class DefaultNestedPieNode

java.lang.Object
  extended bycom.infoviz.treeviz.nestedpie.DefaultNestedPieNode
All Implemented Interfaces:
java.lang.Comparable, NestedPieNode

public class DefaultNestedPieNode
extends java.lang.Object
implements NestedPieNode, java.lang.Comparable

Title :DefaultNestedPieNode Description: Default implementation of a NestedPieNode $Id$ $Revision$ $Author$


Constructor Summary
DefaultNestedPieNode(java.lang.String name)
           
 
Method Summary
 int compareTo(java.lang.Object another)
          compares the size of the nodes
 boolean equals(java.lang.Object another)
          compares size of the nodes
 double getColorValue()
          This value determines the color of a node.
 java.lang.String getName()
          A name for the node
 java.lang.String getPathString()
          gives the complet path to the node path elements should be slash separated for example: /electronics/notebook/power
 double getSizeValue()
          This value determines the size of the node.
 void setColorValue(double newColorValue)
           
 void setName(java.lang.String newName)
           
 void setPathString(java.lang.String newPathString)
           
 void setSizeValue(double newSizeValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultNestedPieNode

public DefaultNestedPieNode(java.lang.String name)
Method Detail

getColorValue

public double getColorValue()
Description copied from interface: NestedPieNode
This value determines the color of a node.

Specified by:
getColorValue in interface NestedPieNode

getSizeValue

public double getSizeValue()
Description copied from interface: NestedPieNode
This value determines the size of the node.

Specified by:
getSizeValue in interface NestedPieNode

getName

public java.lang.String getName()
Description copied from interface: NestedPieNode
A name for the node

Specified by:
getName in interface NestedPieNode

setColorValue

public void setColorValue(double newColorValue)

setName

public void setName(java.lang.String newName)

setSizeValue

public void setSizeValue(double newSizeValue)

setPathString

public void setPathString(java.lang.String newPathString)

getPathString

public java.lang.String getPathString()
Description copied from interface: NestedPieNode
gives the complet path to the node path elements should be slash separated for example: /electronics/notebook/power

Specified by:
getPathString in interface NestedPieNode

equals

public boolean equals(java.lang.Object another)
compares size of the nodes


compareTo

public int compareTo(java.lang.Object another)
compares the size of the nodes

Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()