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.Rectangle2D
Gets 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.CPColor
getColor()
Returns the number of levels above this node -- the distance from the root to this node.int
getLevel()
Returns the number of levels above this node -- the distance from the root to this node.com.macrofocus.geom.Shape
Gets the shape after nesting of the item in the map.com.macrofocus.geom.Shape
getShape()
Gets the shape of the item in the map.double
getSize()
Corresponds to area in map.double
boolean
Tells whether this node contains children.boolean
isLeaf()
void
setColor
(com.macrofocus.igraphics.CPColor c) Sets the color of the item in the map.void
setNestedShape
(com.macrofocus.geom.Shape shape) Sets the shape after nesting of the item in the map.void
setShape
(com.macrofocus.geom.Shape shape) Sets the shape of the item in the map.void
setSize
(double size) Sets the size of the item.void
setSumSize
(double sumSize) toString()
-
Constructor Details
-
MyMutableTreeMapNode
-
-
Method Details
-
setSize
public void setSize(double size) Description copied from interface:MutableTreeMapNode
Sets the size of the item.- Specified by:
setSize
in interfaceMutableTreeMapNode
- Parameters:
size
- the size of the item.
-
setSumSize
public void setSumSize(double sumSize) - Specified by:
setSumSize
in interfaceMutableTreeMapNode
-
getSumSize
public double getSumSize()- Specified by:
getSumSize
in interfaceTreeMapNode
-
setColor
public void setColor(com.macrofocus.igraphics.CPColor c) Description copied from interface:MutableTreeMapNode
Sets the color of the item in the map.- Specified by:
setColor
in interfaceMutableTreeMapNode
- Parameters:
c
- the color of the item in the map.
-
getColor
public com.macrofocus.igraphics.CPColor getColor()- Specified by:
getColor
in interfaceTreeMapNode
-
setShape
public void setShape(com.macrofocus.geom.Shape shape) Description copied from interface:MutableTreeMapNode
Sets the shape of the item in the map.- Specified by:
setShape
in interfaceMutableTreeMapNode
- Parameters:
shape
- the shape of the item in the map.
-
getSize
public double getSize()Description copied from interface:TreeMapNode
Corresponds to area in map.- Specified by:
getSize
in interfaceTreeMapNode
- Returns:
- the area
-
getShape
public com.macrofocus.geom.Shape getShape()Description copied from interface:TreeMapNode
Gets the shape of the item in the map.- Specified by:
getShape
in interfaceTreeMapNode
- Returns:
- the shape of the item in the map.
-
setNestedShape
public void setNestedShape(com.macrofocus.geom.Shape shape) Description copied from interface:MutableTreeMapNode
Sets the shape after nesting of the item in the map.- Specified by:
setNestedShape
in interfaceMutableTreeMapNode
- Parameters:
shape
- the shape of the item in the map.
-
getNestedShape
public com.macrofocus.geom.Shape getNestedShape()Description copied from interface:TreeMapNode
Gets the shape after nesting of the item in the map.- Specified by:
getNestedShape
in interfaceTreeMapNode
- Returns:
- the shape of the item in the map.
-
getBounds
public com.macrofocus.geom.Rectangle2D getBounds()Description copied from interface:TreeMapNode
Gets the bounding rectangle of the item in the map.- Specified by:
getBounds
in interfaceTreeMapNode
- Returns:
- the bounding rectangle of the item in the map.
-
getLevel
public int getLevel()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:
getLevel
in interfaceTreeMapNode
- Returns:
- the number of levels above this node
-
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
- 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
- Returns:
- the number of levels above this node
-
hasNoChildren
public boolean hasNoChildren()Description copied from interface:TreeMapNode
Tells whether this node contains children.- Specified by:
hasNoChildren
in interfaceTreeMapNode
- Returns:
- true if this node contains children, false otherwise
-
isLeaf
public boolean isLeaf()- Specified by:
isLeaf
in interfaceTreeMapNode
-
toString
-