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 TypeMethodDescriptionvoid
int
boolean
int
Returns 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.double
int
hashCode()
boolean
Tells whether this node contains children.boolean
isLeaf()
void
setSumSize
(double size) Methods inherited from class com.treemap.AbstractTreeMapNode
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:
setSumSize
in interfaceMutableTreeMapNode<N extends LeafTreeMapNode<N,
Row, Column, Color, Font>, Row, Column, Color>
-
getSumSize
public double getSumSize()- Specified by:
getSumSize
in 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:
getChildCount
in classAbstractTreeMapNode<N extends LeafTreeMapNode<N,
Row, Column, Color, Font>, Row, Column, Color, Font>
-
getGroupByField
Description copied from interface:TreeMapNode
Returns 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:
getGroupByField
in 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:TreeMapNode
Returns 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:
getChildrenGroupByField
in interfaceTreeMapNode<N extends LeafTreeMapNode<N,
Row, Column, Color, Font>, Row, Column, Color> - Returns:
- the number of levels above this node
-
getChildren
- Specified by:
getChildren
in classAbstractTreeMapNode<N extends LeafTreeMapNode<N,
Row, Column, Color, Font>, Row, Column, Color, Font>
-
getChildrenOfTypeParent
- Specified by:
getChildrenOfTypeParent
in 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:
hasNoChildren
in 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:
getNodeName
in 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:
compareTo
in interfaceComparable<N extends LeafTreeMapNode<N,
Row, Column, Color, Font>>
-