org.apache.fop.layoutmgr
public class MinOptMaxUtil extends java.lang.Object
Constructor and Description |
---|
MinOptMaxUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
extendMinimum(MinOptMax mom,
int len)
Extends the minimum length to the given length if necessary, and adjusts opt and
max accordingly.
|
static void |
fixAfterMinChanged(MinOptMax mom)
After a calculation on a MinOptMax, this can be called to set opt to
a new effective value.
|
static void |
restrict(MinOptMax mom,
LengthRangeProperty lr,
PercentBaseContext context)
Restricts a MinOptMax using the values from a LengthRangeProperty.
|
static MinOptMax |
toMinOptMax(LengthRangeProperty prop,
PercentBaseContext context)
Converts a LengthRangeProperty to a MinOptMax.
|
public static void restrict(MinOptMax mom, LengthRangeProperty lr, PercentBaseContext context)
mom
- MinOptMax to restrictlr
- restricting sourcecontext
- Percentage evaluation contextpublic static void extendMinimum(MinOptMax mom, int len)
mom
- the min/opt/max traitlen
- the new minimum lengthpublic static void fixAfterMinChanged(MinOptMax mom)
mom
- MinOptMax to adjustpublic static MinOptMax toMinOptMax(LengthRangeProperty prop, PercentBaseContext context)
prop
- LengthRangePropertycontext
- Percentage evaluation contextCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.