public class SpaceElement extends UnresolvedListElementWithLength
log| Constructor | Description |
|---|---|
SpaceElement(Position position,
SpaceProperty space,
RelSide side,
boolean isFirst,
boolean isLast,
PercentBaseContext context) |
Main constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getPrecedence() |
|
boolean |
isForcing() |
|
void |
notifyLayoutManager(MinOptMax effectiveLength) |
Called to notify the affected layout manager about the effective length after resolution.
|
java.lang.String |
toString() |
getLayoutManager, getPosition, isBox, isForcedBreak, isGlue, isPenalty, isUnresolvedElement, setPositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOriginatingLayoutManagergetLength, getSide, isConditional, isFirst, isLastpublic SpaceElement(Position position, SpaceProperty space, RelSide side, boolean isFirst, boolean isLast, PercentBaseContext context)
position - the Position instance needed by the addAreas stage of the LMs.space - the space propertyside - the side to which this space element applies.isFirst - true if this is a space-before of the first area generated.isLast - true if this is a space-after of the last area generated.context - the property evaluation contextpublic boolean isForcing()
public int getPrecedence()
public void notifyLayoutManager(MinOptMax effectiveLength)
notifyLayoutManager in class UnresolvedListElementWithLengtheffectiveLength - the effective length after resolution (may be null which equals to
zero effective length)public java.lang.String toString()
toString in class UnresolvedListElementWithLengthCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.