treemap
Class SquarifiedLayout

java.lang.Object
  extended by treemap.AbstractMapLayout
      extended by treemap.SquarifiedLayout
All Implemented Interfaces:
MapLayout

public class SquarifiedLayout
extends AbstractMapLayout

"Squarified" treemap layout invented by J.J. van Wijk.


Field Summary
 
Fields inherited from class treemap.AbstractMapLayout
ASCENDING, DESCENDING, HORIZONTAL, VERTICAL
 
Constructor Summary
SquarifiedLayout()
           
 
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, 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

SquarifiedLayout

public SquarifiedLayout()
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)

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.