org.pushingpixels.flamingo.api.ribbon.resize
Class CoreRibbonResizeSequencingPolicies.RoundRobin

java.lang.Object
  extended by org.pushingpixels.flamingo.api.ribbon.resize.BaseRibbonBandResizeSequencingPolicy
      extended by org.pushingpixels.flamingo.api.ribbon.resize.CoreRibbonResizeSequencingPolicies.RoundRobin
All Implemented Interfaces:
RibbonBandResizeSequencingPolicy
Enclosing class:
CoreRibbonResizeSequencingPolicies

public static class CoreRibbonResizeSequencingPolicies.RoundRobin
extends BaseRibbonBandResizeSequencingPolicy

The round robin resize sequencing policy. Under this policy the ribbon bands are being collapsed in a cyclic fashion, distributing the collapsed pixels between the different bands.


Field Summary
 
Fields inherited from class org.pushingpixels.flamingo.api.ribbon.resize.BaseRibbonBandResizeSequencingPolicy
ribbonTask
 
Constructor Summary
CoreRibbonResizeSequencingPolicies.RoundRobin(RibbonTask ribbonTask)
          Creates a new round robin resize sequencing policy for the specified task.
 
Method Summary
 AbstractRibbonBand next()
          Returns the next ribbon band for collapse.
 void reset()
          Resets this policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreRibbonResizeSequencingPolicies.RoundRobin

public CoreRibbonResizeSequencingPolicies.RoundRobin(RibbonTask ribbonTask)
Creates a new round robin resize sequencing policy for the specified task.

Parameters:
ribbonTask - Ribbon task.
Method Detail

reset

public void reset()
Description copied from interface: RibbonBandResizeSequencingPolicy
Resets this policy. Note that this method is for internal use only and should not be called by the application code.


next

public AbstractRibbonBand next()
Description copied from interface: RibbonBandResizeSequencingPolicy
Returns the next ribbon band for collapse.

Returns:
The next ribbon band for collapse.