treemap
Class PivotBySplitSize

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

public class PivotBySplitSize
extends java.lang.Object
implements MapLayout

Layout using the pivot-by-split-size algorithm. This is essentially a wrapper class for the OrderedTreemap class.


Constructor Summary
PivotBySplitSize()
           
 
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(MapModel model, double x, double y, double w, double h)
          Arrange the items in the given MapModel to fill the given rectangle.
 void layout(MapModel model, Rect bounds)
          Arrange the items in the given MapModel to fill the given rectangle.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PivotBySplitSize

public PivotBySplitSize()
Method Detail

layout

public void layout(MapModel model,
                   Rect bounds)
Description copied from interface: MapLayout
Arrange the items in the given MapModel to fill the given rectangle.

Specified by:
layout in interface MapLayout
Parameters:
model - The MapModel.
bounds - The boundary rectangle for the layout.

layout

public void layout(MapModel model,
                   double x,
                   double y,
                   double w,
                   double h)
Description copied from interface: MapLayout
Arrange the items in the given MapModel to fill the given rectangle.

Specified by:
layout in interface MapLayout
Parameters:
model - The MapModel.
x - coordinate of the layout bounds.
y - coordinate of the layout bounds.
w - width of the layout bounds.
h - height of the layout 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.

Specified by:
getName in interface MapLayout
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.

Specified by:
getDescription in interface MapLayout
Returns:
String describing this layout.