treemap
Class LayoutDifference

java.lang.Object
  extended by treemap.LayoutDifference

public class LayoutDifference
extends java.lang.Object

Object that can measure to the amount of structural change between two layouts. The layouts must have identical tree structures.

To measure a difference, first do a "recordLayout" on a MapModel, then call "averageDistance" on the changed model.


Constructor Summary
LayoutDifference()
           
 
Method Summary
 double averageDistance(MapModel model)
           
 double averageDistance(Mappable[] m)
           
 void recordLayout(MapModel model)
           
 void recordLayout(Mappable[] m)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutDifference

public LayoutDifference()
Method Detail

recordLayout

public void recordLayout(MapModel model)

recordLayout

public void recordLayout(Mappable[] m)

averageDistance

public double averageDistance(MapModel model)

averageDistance

public double averageDistance(Mappable[] m)