treemap
Class LayoutCalculations

java.lang.Object
  extended by treemap.LayoutCalculations

public class LayoutCalculations
extends java.lang.Object

Calculations on treemap layouts. Currently holds routines for readability and aspect ratios. This is a good place to add future metrics.


Constructor Summary
LayoutCalculations()
           
 
Method Summary
static double averageAspectRatio(MapModel model)
           
static double averageAspectRatio(Mappable[] m)
           
static int getItemIndex(int order, MapModel map)
           
static double getReadability(MapModel model)
          Compute the readability of the model.
static double getReadability(MapModel[] model)
           
static double getReadability(TreeModel tree)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutCalculations

public LayoutCalculations()
Method Detail

averageAspectRatio

public static double averageAspectRatio(MapModel model)

averageAspectRatio

public static double averageAspectRatio(Mappable[] m)

getReadability

public static double getReadability(TreeModel tree)

getReadability

public static double getReadability(MapModel[] model)

getReadability

public static double getReadability(MapModel model)
Compute the readability of the model. Readability is defined by the number of changes in directions rects are layed out in.


getItemIndex

public static int getItemIndex(int order,
                               MapModel map)