Treeviz 0.37 2010-10-17

ch.randelshofer.tree.rectmap
Class RectmapCumulatedSizeComparator

java.lang.Object
  extended by ch.randelshofer.tree.rectmap.RectmapCumulatedSizeComparator
All Implemented Interfaces:
java.util.Comparator<RectmapNode>

public class RectmapCumulatedSizeComparator
extends java.lang.Object
implements java.util.Comparator<RectmapNode>

CircleRadiusComparator.

Author:
Werner Randelshofer  @version 1.0 Jan 17, 2008 Created.

Constructor Summary
RectmapCumulatedSizeComparator()
           
 
Method Summary
 int compare(RectmapNode c1, RectmapNode c2)
           
static RectmapCumulatedSizeComparator getAscendingInstance()
           
static RectmapCumulatedSizeComparator getDescendingInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

RectmapCumulatedSizeComparator

public RectmapCumulatedSizeComparator()
Method Detail

getAscendingInstance

public static RectmapCumulatedSizeComparator getAscendingInstance()

getDescendingInstance

public static RectmapCumulatedSizeComparator getDescendingInstance()

compare

public int compare(RectmapNode c1,
                   RectmapNode c2)
Specified by:
compare in interface java.util.Comparator<RectmapNode>

Copyright 2007-2008 (c) Werner Randelshofer.
All rights reserved.