treemap
Class BinaryTreeLayout
java.lang.Object
treemap.AbstractMapLayout
treemap.BinaryTreeLayout
- All Implemented Interfaces:
- MapLayout
public class BinaryTreeLayout
- extends AbstractMapLayout
This layout uses a static binary tree for
dividing map items. It is not great with regard to
aspect ratios or ordering, but it has excellent
stability properties.
Method Summary |
java.lang.String |
getDescription()
Return a longer description of this layout;
Helpful in creating online-help,
interactive catalogs or indices to lists of algorithms. |
java.lang.String |
getName()
Return a human-readable name for this layout;
used to label figures, tables, etc. |
void |
layout(Mappable[] items,
int start,
int end,
Rect bounds)
|
void |
layout(Mappable[] items,
int start,
int end,
Rect bounds,
boolean vertical)
|
void |
layout(Mappable[] items,
Rect bounds)
Subclasses implement this method themselves. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryTreeLayout
public BinaryTreeLayout()
layout
public void layout(Mappable[] items,
Rect bounds)
- Description copied from class:
AbstractMapLayout
- Subclasses implement this method themselves.
- Specified by:
layout
in class AbstractMapLayout
layout
public void layout(Mappable[] items,
int start,
int end,
Rect bounds)
layout
public void layout(Mappable[] items,
int start,
int end,
Rect bounds,
boolean vertical)
getName
public java.lang.String getName()
- Description copied from interface:
MapLayout
- Return a human-readable name for this layout;
used to label figures, tables, etc.
- Returns:
- String naming this layout.
getDescription
public java.lang.String getDescription()
- Description copied from interface:
MapLayout
- Return a longer description of this layout;
Helpful in creating online-help,
interactive catalogs or indices to lists of algorithms.
- Returns:
- String describing this layout.