|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.layoutmgr.MinOptMaxUtil
public class MinOptMaxUtil
Utilities for MinOptMax and LengthRangeProperty.
Constructor Summary | |
---|---|
MinOptMaxUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MinOptMaxUtil()
Method Detail |
---|
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 context
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |