suvi.alg.policies
Class LinearComponentLayoutPolicy.LeftRightAlternatingOrdererDecorator

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

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

Produces a new permutation by alternatingly putting the next index to the left or to the right of the resulting permutation.


Constructor Summary
LinearComponentLayoutPolicy.LeftRightAlternatingOrdererDecorator(LinearComponentLayoutPolicy.Orderer original)
           
 
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.LeftRightAlternatingOrdererDecorator

public LinearComponentLayoutPolicy.LeftRightAlternatingOrdererDecorator(LinearComponentLayoutPolicy.Orderer original)
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