Interface RibbonBandResizeSequencingPolicy
-
- All Known Implementing Classes:
BaseRibbonBandResizeSequencingPolicy,CoreRibbonResizeSequencingPolicies.CollapseFromLast,CoreRibbonResizeSequencingPolicies.RoundRobin
public interface RibbonBandResizeSequencingPolicyDefines the resize sequencing policies forRibbonTasks.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
CoreRibbonResizeSequencingPoliciesprovides 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AbstractRibbonBandnext()Returns the next ribbon band for collapse.voidreset()Resets this policy.
-
-
-
Method Detail
-
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.
-
-