Package com.treemap
Class LeafTreeMapNode<N extends LeafTreeMapNode<N,Row,Column,Color,Font>,Row,Column,Color,Font>
java.lang.Object
com.treemap.AbstractTreeMapNode<N,Row,Column,Color,Font>
com.treemap.LeafTreeMapNode<N,Row,Column,Color,Font>
- Type Parameters:
N- the type of nodes
- All Implemented Interfaces:
MutableTreeMapNode<N,,Column, Color, Font> TreeMapNode<N,,Column, Color, Font> Comparable<N>
public class LeafTreeMapNode<N extends LeafTreeMapNode<N,Row,Column,Color,Font>,Row,Column,Color,Font>
extends AbstractTreeMapNode<N,Row,Column,Color,Font>
implements Comparable<N>
A leaf node.
-
Field Summary
Fields inherited from class com.treemap.AbstractTreeMapNode
model -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintbooleanintReturns the number of levels above this node -- the distance from the root to this node.Returns the number of levels above this node -- the distance from the root to this node.The name of this node.getRow()Gets the row in the underlying TableModel, -1 if it doesn't relate to a leaf node.doubleinthashCode()booleanTells whether this node contains children.booleanisLeaf()voidsetSumSize(double size) Methods inherited from class com.treemap.AbstractTreeMapNode
computeCushionColor, getBounds, getColor, getCushionColor, getCushionImage, getLabelName, getLevel, getNestedShape, getParent, getPath, getSelf, getShape, getSize, isRoot, normalizedToWorld, setColor, setNestedShape, setParent, setShape, setSize, toString, worldToNormalized
-
Constructor Details
-
LeafTreeMapNode
-
-
Method Details
-
setSumSize
public void setSumSize(double size) - Specified by:
setSumSizein interfaceMutableTreeMapNode<N extends LeafTreeMapNode<N,Row, Column, Color, Font>, Row, Column, Color>
-
getSumSize
public double getSumSize()- Specified by:
getSumSizein interfaceTreeMapNode<N extends LeafTreeMapNode<N,Row, Column, Color, Font>, Row, Column, Color>
-
getRow
Gets the row in the underlying TableModel, -1 if it doesn't relate to a leaf node. -
getChildCount
public int getChildCount()- Specified by:
getChildCountin classAbstractTreeMapNode<N extends LeafTreeMapNode<N,Row, Column, Color, Font>, Row, Column, Color, Font>
-
getGroupByField
Description copied from interface:TreeMapNodeReturns the number of levels above this node -- the distance from the root to this node. If this node is the root, returns 0.- Specified by:
getGroupByFieldin interfaceTreeMapNode<N extends LeafTreeMapNode<N,Row, Column, Color, Font>, Row, Column, Color> - Returns:
- the number of levels above this node
-
getChildrenGroupByField
Description copied from interface:TreeMapNodeReturns the number of levels above this node -- the distance from the root to this node. If this node is the root, returns 0.- Specified by:
getChildrenGroupByFieldin interfaceTreeMapNode<N extends LeafTreeMapNode<N,Row, Column, Color, Font>, Row, Column, Color> - Returns:
- the number of levels above this node
-
getChildren
- Specified by:
getChildrenin classAbstractTreeMapNode<N extends LeafTreeMapNode<N,Row, Column, Color, Font>, Row, Column, Color, Font>
-
getChildrenOfTypeParent
- Specified by:
getChildrenOfTypeParentin classAbstractTreeMapNode<N extends LeafTreeMapNode<N,Row, Column, Color, Font>, Row, Column, Color, Font>
-
add
-
findChild
-
hasNoChildren
public boolean hasNoChildren()Tells whether this node contains children.- Specified by:
hasNoChildrenin interfaceTreeMapNode<N extends LeafTreeMapNode<N,Row, Column, Color, Font>, Row, Column, Color> - Returns:
- true if this node contains children, false otherwise
-
isLeaf
public boolean isLeaf() -
getNodeName
The name of this node.- Specified by:
getNodeNamein classAbstractTreeMapNode<N extends LeafTreeMapNode<N,Row, Column, Color, Font>, Row, Column, Color, Font> - Returns:
- the name of this node.
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<N extends LeafTreeMapNode<N,Row, Column, Color, Font>>
-