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
public class WhitespaceManagementPenalty
- extends KnuthPenalty
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WhitespaceManagementPenalty
public WhitespaceManagementPenalty(org.apache.fop.layoutmgr.MultiSwitchLayoutManager.WhitespaceManagementPosition pos)
addVariant
public void addVariant(WhitespaceManagementPenalty.Variant variant)
setActiveVariant
public void setActiveVariant(WhitespaceManagementPenalty.Variant bestVariant)
hasActiveVariant
public boolean hasActiveVariant()
getVariants
public java.util.List<WhitespaceManagementPenalty.Variant> getVariants()
toString
public java.lang.String toString()
- Description copied from class:
KnuthPenalty
-
- Overrides:
toString
in class KnuthPenalty
Copyright 1999-2015 The Apache Software Foundation. All Rights Reserved.