Class BorderOrPaddingElement
java.lang.Object
org.apache.fop.layoutmgr.ListElement
org.apache.fop.layoutmgr.UnresolvedListElement
org.apache.fop.layoutmgr.UnresolvedListElementWithLength
org.apache.fop.layoutmgr.BorderOrPaddingElement
- Direct Known Subclasses:
BorderElement, PaddingElement
This class represents an unresolved border or padding element.
-
Field Summary
Fields inherited from class UnresolvedListElementWithLength
log -
Constructor Summary
ConstructorsConstructorDescriptionBorderOrPaddingElement(Position position, CondLengthProperty condLength, RelSide side, boolean isFirst, boolean isLast, PercentBaseContext context) Main constructor -
Method Summary
Modifier and TypeMethodDescriptionabstract voidnotifyLayoutManager(MinOptMax effectiveLength) Called to notify the affected layout manager about the effective length after resolution.Methods inherited from class UnresolvedListElementWithLength
getLength, getSide, isConditional, isFirst, isLast, toStringMethods inherited from class UnresolvedListElement
getOriginatingLayoutManagerMethods inherited from class ListElement
getLayoutManager, getPosition, isBox, isForcedBreak, isGlue, isPenalty, isUnresolvedElement, setPosition
-
Constructor Details
-
BorderOrPaddingElement
public BorderOrPaddingElement(Position position, CondLengthProperty condLength, RelSide side, boolean isFirst, boolean isLast, PercentBaseContext context) Main constructor- Parameters:
position- the Position instance needed by the addAreas stage of the LMs.condLength- the length-conditional property for a border or padding specificationside- the side to which this space element applies.isFirst- true if this is a padding- or border-before of the first area generated.isLast- true if this is a padding- or border-after of the last area generated.context- the property evaluation context
-
-
Method Details
-
notifyLayoutManager
Called to notify the affected layout manager about the effective length after resolution. This method is called once before each call to the layout manager's addAreas() method.- Specified by:
notifyLayoutManagerin classUnresolvedListElementWithLength- Parameters:
effectiveLength- the effective length after resolution (may be null which equals to zero effective length)
-