Package com.treemap.swing.voronoi.debug
Class MyMutableTreeMapNode
java.lang.Object
com.treemap.swing.voronoi.debug.MyMutableTreeMapNode
- All Implemented Interfaces:
MutableTreeMapNode,TreeMapNode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.macrofocus.geom.Rectangle2DGets the bounding rectangle of the item in the map.Returns the number of levels above this node -- the distance from the root to this node.com.macrofocus.igraphics.CPColorgetColor()Returns the number of levels above this node -- the distance from the root to this node.intgetLevel()Returns the number of levels above this node -- the distance from the root to this node.com.macrofocus.geom.ShapeGets the shape after nesting of the item in the map.com.macrofocus.geom.ShapegetShape()Gets the shape of the item in the map.doublegetSize()Corresponds to area in map.doublebooleanTells whether this node contains children.booleanisLeaf()voidsetColor(com.macrofocus.igraphics.CPColor c) Sets the color of the item in the map.voidsetNestedShape(com.macrofocus.geom.Shape shape) Sets the shape after nesting of the item in the map.voidsetShape(com.macrofocus.geom.Shape shape) Sets the shape of the item in the map.voidsetSize(double size) Sets the size of the item.voidsetSumSize(double sumSize) toString()
-
Constructor Details
-
MyMutableTreeMapNode
-
-
Method Details
-
setSize
public void setSize(double size) Description copied from interface:MutableTreeMapNodeSets the size of the item.- Specified by:
setSizein interfaceMutableTreeMapNode- Parameters:
size- the size of the item.
-
setSumSize
public void setSumSize(double sumSize) - Specified by:
setSumSizein interfaceMutableTreeMapNode
-
getSumSize
public double getSumSize()- Specified by:
getSumSizein interfaceTreeMapNode
-
setColor
public void setColor(com.macrofocus.igraphics.CPColor c) Description copied from interface:MutableTreeMapNodeSets the color of the item in the map.- Specified by:
setColorin interfaceMutableTreeMapNode- Parameters:
c- the color of the item in the map.
-
getColor
public com.macrofocus.igraphics.CPColor getColor()- Specified by:
getColorin interfaceTreeMapNode
-
setShape
public void setShape(com.macrofocus.geom.Shape shape) Description copied from interface:MutableTreeMapNodeSets the shape of the item in the map.- Specified by:
setShapein interfaceMutableTreeMapNode- Parameters:
shape- the shape of the item in the map.
-
getSize
public double getSize()Description copied from interface:TreeMapNodeCorresponds to area in map.- Specified by:
getSizein interfaceTreeMapNode- Returns:
- the area
-
getShape
public com.macrofocus.geom.Shape getShape()Description copied from interface:TreeMapNodeGets the shape of the item in the map.- Specified by:
getShapein interfaceTreeMapNode- Returns:
- the shape of the item in the map.
-
setNestedShape
public void setNestedShape(com.macrofocus.geom.Shape shape) Description copied from interface:MutableTreeMapNodeSets the shape after nesting of the item in the map.- Specified by:
setNestedShapein interfaceMutableTreeMapNode- Parameters:
shape- the shape of the item in the map.
-
getNestedShape
public com.macrofocus.geom.Shape getNestedShape()Description copied from interface:TreeMapNodeGets the shape after nesting of the item in the map.- Specified by:
getNestedShapein interfaceTreeMapNode- Returns:
- the shape of the item in the map.
-
getBounds
public com.macrofocus.geom.Rectangle2D getBounds()Description copied from interface:TreeMapNodeGets the bounding rectangle of the item in the map.- Specified by:
getBoundsin interfaceTreeMapNode- Returns:
- the bounding rectangle of the item in the map.
-
getLevel
public int getLevel()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:
getLevelin interfaceTreeMapNode- Returns:
- the number of levels above this node
-
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- 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- Returns:
- the number of levels above this node
-
hasNoChildren
public boolean hasNoChildren()Description copied from interface:TreeMapNodeTells whether this node contains children.- Specified by:
hasNoChildrenin interfaceTreeMapNode- Returns:
- true if this node contains children, false otherwise
-
isLeaf
public boolean isLeaf()- Specified by:
isLeafin interfaceTreeMapNode
-
toString
-