org.apache.fop.layoutmgr
Class MinOptMaxUtil
java.lang.Object
|
+--org.apache.fop.layoutmgr.MinOptMaxUtil
- public class MinOptMaxUtil
- extends java.lang.Object
Utilities for MinOptMax and LengthRangeProperty.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MinOptMaxUtil
public MinOptMaxUtil()
restrict
public static void restrict(MinOptMax mom,
LengthRangeProperty lr,
PercentBaseContext context)
- Restricts a MinOptMax using the values from a LengthRangeProperty.
- Parameters:
mom
- MinOptMax to restrictlr
- restricting sourcecontext
- Percentage evaluation context
extendMinimum
public static void extendMinimum(MinOptMax mom,
int len,
boolean optToLen)
- Extend the minimum length to the given length.
- Parameters:
mom
- the min/opt/max traitlen
- the new minimum lengthoptToLen
- if set adjusts the optimum length to be the smaller of the
minimum length and the given length
fixAfterMinChanged
public static void fixAfterMinChanged(MinOptMax mom)
- After a calculation on a MinOptMax, this can be called to set opt to
a new effective value.
- Parameters:
mom
- MinOptMax to adjust
toMinOptMax
public static MinOptMax toMinOptMax(LengthRangeProperty prop,
PercentBaseContext context)
- Converts a LengthRangeProperty to a MinOptMax.
- Parameters:
prop
- LengthRangePropertycontext
- Percentage evaluation context- Returns:
- the requested MinOptMax instance
Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.