org.apache.fop.layoutmgr

Class SpaceElement


public class SpaceElement
extends UnresolvedListElementWithLength

This class represents an unresolved space element.

Field Summary

Fields inherited from class org.apache.fop.layoutmgr.UnresolvedListElementWithLength

log

Constructor Summary

SpaceElement(Position position, SpaceProperty space, RelSide side, boolean isFirst, boolean isLast, PercentBaseContext context)
Main constructor

Method Summary

int
getPrecedence()
boolean
isForcing()
void
notifyLayoutManager(MinOptMax effectiveLength)
String
toString()

Methods inherited from class org.apache.fop.layoutmgr.UnresolvedListElementWithLength

getLength, getSide, isConditional, isFirst, isLast, notifyLayoutManager, toString

Methods inherited from class org.apache.fop.layoutmgr.UnresolvedListElement

getOriginatingLayoutManager, isConditional

Methods inherited from class org.apache.fop.layoutmgr.ListElement

getLayoutManager, getPosition, isBox, isForcedBreak, isGlue, isPenalty, isUnresolvedElement, setPosition

Constructor Details

SpaceElement

public SpaceElement(Position position,
                    SpaceProperty space,
                    RelSide side,
                    boolean isFirst,
                    boolean isLast,
                    PercentBaseContext context)
Main constructor
Parameters:
position - the Position instance needed by the addAreas stage of the LMs.
space - the space property
side - 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 context

Method Details

getPrecedence

public int getPrecedence()
Returns:
the precedence of the space

isForcing

public boolean isForcing()
Returns:
true if the space is forcing.

notifyLayoutManager

public void notifyLayoutManager(MinOptMax effectiveLength)
Overrides:
notifyLayoutManager in interface UnresolvedListElementWithLength

toString

public String toString()
Overrides:
toString in interface UnresolvedListElementWithLength
See Also:
java.lang.Object.toString()

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.