treemap
Class BinaryTreeLayout

java.lang.Object
  extended by treemap.AbstractMapLayout
      extended by 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.


Field Summary
 
Fields inherited from class treemap.AbstractMapLayout
ASCENDING, DESCENDING, HORIZONTAL, VERTICAL
 
Constructor Summary
BinaryTreeLayout()
           
 
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 treemap.AbstractMapLayout
layout, layout, sliceLayout, sliceLayout, sortDescending, totalSize, totalSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryTreeLayout

public BinaryTreeLayout()
Method Detail

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.