Interface RibbonBandResizeSequencingPolicy
- All Known Implementing Classes:
BaseRibbonBandResizeSequencingPolicy, CoreRibbonResizeSequencingPolicies.CollapseFromLast, CoreRibbonResizeSequencingPolicies.RoundRobin
public interface RibbonBandResizeSequencingPolicy
Defines the resize sequencing policies for
RibbonTasks.
The resize sequencing policy defines which ribbon band will be chosen next
when the ribbon is shrunk / expanded. It is installed with the
RibbonTask.setResizeSequencingPolicy(RibbonBandResizeSequencingPolicy)
.
The CoreRibbonResizeSequencingPolicies provides two built in resize
sequencing policies:
CoreRibbonResizeSequencingPolicies.RoundRobinunder which the ribbon bands are being collapsed in a cyclic fashion, distributing the collapsed pixels between the different bands.CoreRibbonResizeSequencingPolicies.CollapseFromLastunder which the ribbon bands are being collapsed from last (right under LTR) to first (left under LTR).
-
Method Details
-
reset
void reset()Resets this policy. Note that this method is for internal use only and should not be called by the application code. -
next
AbstractRibbonBand next()Returns the next ribbon band for collapse.- Returns:
- The next ribbon band for collapse.
-