suvi.alg.policies
Class LinearComponentLayoutPolicy.SortingOrderer

java.lang.Object
  |
  +--suvi.alg.policies.LinearComponentLayoutPolicy.SortingOrderer
All Implemented Interfaces:
LinearComponentLayoutPolicy.Orderer
Enclosing class:
LinearComponentLayoutPolicy

public static class LinearComponentLayoutPolicy.SortingOrderer
extends java.lang.Object
implements LinearComponentLayoutPolicy.Orderer

Produces a sorted permutation of the indices based on an ordering predicate on Dimensions.


Constructor Summary
LinearComponentLayoutPolicy.SortingOrderer(javautils.fun.Function pred)
           
 
Method Summary
 int[] ordering(java.awt.Dimension[] extents)
          The order, which is a permutation of indices into the extents array, in which the extents (corresponding to layouts) are to be placed into the final layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearComponentLayoutPolicy.SortingOrderer

public LinearComponentLayoutPolicy.SortingOrderer(javautils.fun.Function pred)
Method Detail

ordering

public int[] ordering(java.awt.Dimension[] extents)
Description copied from interface: LinearComponentLayoutPolicy.Orderer

The order, which is a permutation of indices into the extents array, in which the extents (corresponding to layouts) are to be placed into the final layout.

Specified by:
ordering in interface LinearComponentLayoutPolicy.Orderer