| java.lang.Object org.apache.fop.layoutmgr.MinOptMaxUtil
MinOptMaxUtil | public class MinOptMaxUtil (Code) | | Utilities for MinOptMax and LengthRangeProperty.
|
extendMinimum | public static void extendMinimum(MinOptMax mom, int len, boolean optToLen)(Code) | | Extend the minimum length to the given length.
Parameters: mom - the min/opt/max trait Parameters: len - the new minimum length Parameters: optToLen - if set adjusts the optimum length to be the smaller of theminimum length and the given length |
fixAfterMinChanged | public static void fixAfterMinChanged(MinOptMax mom)(Code) | | After a calculation on a MinOptMax, this can be called to set opt to
a new effective value.
Parameters: mom - MinOptMax to adjust |
restrict | public static void restrict(MinOptMax mom, LengthRangeProperty lr, PercentBaseContext context)(Code) | | Restricts a MinOptMax using the values from a LengthRangeProperty.
Parameters: mom - MinOptMax to restrict Parameters: lr - restricting source Parameters: context - Percentage evaluation context |
toMinOptMax | public static MinOptMax toMinOptMax(LengthRangeProperty prop, PercentBaseContext context)(Code) | | Converts a LengthRangeProperty to a MinOptMax.
Parameters: prop - LengthRangeProperty Parameters: context - Percentage evaluation context the requested MinOptMax instance |
|
|