treemap
Class SliceLayout

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

public class SliceLayout
extends AbstractMapLayout

The original slice-and-dice layout for treemaps.


Field Summary
static int ALTERNATE
           
static int BEST
           
 
Fields inherited from class treemap.AbstractMapLayout
ASCENDING, DESCENDING, HORIZONTAL, VERTICAL
 
Constructor Summary
SliceLayout()
           
SliceLayout(int orientation)
           
 
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, Rect bounds)
          Subclasses implement this method themselves.
static void layout(Mappable[] items, Rect bounds, int orientation)
           
static void layoutBest(Mappable[] items, int start, int end, Rect bounds)
           
static void layoutBest(Mappable[] items, int start, int end, Rect bounds, int order)
           
 
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
 

Field Detail

BEST

public static final int BEST
See Also:
Constant Field Values

ALTERNATE

public static final int ALTERNATE
See Also:
Constant Field Values
Constructor Detail

SliceLayout

public SliceLayout()

SliceLayout

public SliceLayout(int orientation)
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

layoutBest

public static void layoutBest(Mappable[] items,
                              int start,
                              int end,
                              Rect bounds)

layoutBest

public static void layoutBest(Mappable[] items,
                              int start,
                              int end,
                              Rect bounds,
                              int order)

layout

public static void layout(Mappable[] items,
                          Rect bounds,
                          int orientation)

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.