org.apache.fop.layoutmgr
Class UnresolvedListElementWithLength
public abstract class UnresolvedListElementWithLength
This class represents an unresolved list element element with a (conditional) length. This
is the base class for spaces, borders and paddings.
protected static Log | log - Logger instance
|
log
protected static Log log
Logger instance
UnresolvedListElementWithLength
public UnresolvedListElementWithLength(Position position,
MinOptMax length,
RelSide side,
boolean conditional,
boolean isFirst,
boolean isLast)
Main constructor
position
- the Position instance needed by the addAreas stage of the LMs.length
- the length of the elementside
- the side to which this element appliesconditional
- true if it's a conditional element (conditionality=discard)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.
getLength
public MinOptMax getLength()
- the space as resolved MinOptMax instance
getSide
public RelSide getSide()
- the side this element was generated for
isFirst
public boolean isFirst()
- true if this is a space-before of the first area generated.
isLast
public boolean isLast()
- true if this is a space-after of the last area generated.
notifyLayoutManager
public abstract void notifyLayoutManager(MinOptMax effectiveLength)
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.
effectiveLength
- the effective length after resolution (may be null which equals to
zero effective length)
toString
public String toString()
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.