treemap
Class LayoutCalculations
java.lang.Object
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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayoutCalculations
public LayoutCalculations()
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)