Package org.apache.fop.layoutmgr
Class WhitespaceManagementPenalty
java.lang.Object
org.apache.fop.layoutmgr.ListElement
org.apache.fop.layoutmgr.KnuthElement
org.apache.fop.layoutmgr.KnuthPenalty
org.apache.fop.layoutmgr.WhitespaceManagementPenalty
A special penalty used to specify content having multiple variants. At most
only one variant will be inserted into the final document. If none of the
variants fit into the remaining space on the current page, the dynamic
content will be completely ignored.
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.apache.fop.layoutmgr.KnuthPenalty
DUMMY_ZERO_PENALTY, FLAGGED_PENALTY
Fields inherited from class org.apache.fop.layoutmgr.KnuthElement
INFINITE
-
Constructor Summary
ConstructorDescriptionWhitespaceManagementPenalty
(org.apache.fop.layoutmgr.MultiSwitchLayoutManager.WhitespaceManagementPosition pos) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
void
setActiveVariant
(WhitespaceManagementPenalty.Variant bestVariant) toString()
Methods inherited from class org.apache.fop.layoutmgr.KnuthPenalty
getBreakClass, getPenalty, isForcedBreak, isPenalty, isPenaltyFlagged, setPenalty, valueOf
Methods inherited from class org.apache.fop.layoutmgr.KnuthElement
getShrink, getStretch, getWidth, isAuxiliary, isUnresolvedElement
Methods inherited from class org.apache.fop.layoutmgr.ListElement
getLayoutManager, getPosition, isBox, isGlue, setPosition
-
Constructor Details
-
WhitespaceManagementPenalty
public WhitespaceManagementPenalty(org.apache.fop.layoutmgr.MultiSwitchLayoutManager.WhitespaceManagementPosition pos)
-
-
Method Details
-
addVariant
-
setActiveVariant
-
hasActiveVariant
public boolean hasActiveVariant() -
getVariants
-
toString
Description copied from class:KnuthPenalty
- Overrides:
toString
in classKnuthPenalty
-