org.apache.fop.layoutmgr
Class BreakElement
public class BreakElement
This class represents an unresolved break possibility.
BreakElement
public BreakElement(Position position,
int penaltyWidth,
int penaltyValue,
int breakClass,
LayoutContext context)
Constructor for hard breaks.
BreakElement
public BreakElement(Position position,
int penaltyValue,
LayoutContext context)
Main constructor
position
- the Position instance needed by the addAreas stage of the LMs.penaltyValue
- the penalty value for the penalty element to be constructedcontext
- the layout context which contains the pending conditional elements
clearPendingMarks
public void clearPendingMarks()
Clears all pending marks associated with this break element. This is used in break
cases where we only know very late if the break is actually after all the content
of an FO has been generated.
getBreakClass
public int getBreakClass()
Returns the break class of this penalty.
getPenaltyValue
public int getPenaltyValue()
getPenaltyWidth
public int getPenaltyWidth()
getPendingAfterMarks
public List getPendingAfterMarks()
- the pending border and padding elements at the after edge
getPendingBeforeMarks
public List getPendingBeforeMarks()
- the pending border and padding elements at the before edge
setBreakClass
public void setBreakClass(int breakClass)
Sets the break class.
setPenaltyValue
public void setPenaltyValue(int p)
Sets the penalty value.
p
- the new penalty value
toString
public String toString()
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.