public class PaddingElement extends BorderOrPaddingElement
log
Constructor and Description |
---|
PaddingElement(Position position,
CondLengthProperty condLength,
RelSide side,
boolean isFirst,
boolean isLast,
PercentBaseContext context)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
void |
notifyLayoutManager(MinOptMax effectiveLength)
Called to notify the affected layout manager about the effective length after resolution.
|
java.lang.String |
toString() |
getLength, getSide, isConditional, isFirst, isLast
getOriginatingLayoutManager
getLayoutManager, getPosition, isBox, isForcedBreak, isGlue, isPenalty, isUnresolvedElement, setPosition
public PaddingElement(Position position, CondLengthProperty condLength, RelSide side, boolean isFirst, boolean isLast, PercentBaseContext context)
position
- the Position instance needed by the addAreas stage of the LMs.side
- the side to which this space element applies.condLength
- the length-conditional property for a border or padding specificationisFirst
- 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 contextpublic void notifyLayoutManager(MinOptMax effectiveLength)
notifyLayoutManager
in class BorderOrPaddingElement
effectiveLength
- the effective length after resolution (may be null which equals to
zero effective length)public java.lang.String toString()
toString
in class UnresolvedListElementWithLength
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.