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.
position
- the Position instance needed by the addAreas stage of the LMs.penaltyWidth
- the penalty widthpenaltyValue
- the penalty value for the penalty element to be constructedbreakClass
- the break class of this penalty (one of the break-* constants)context
- the layout context which contains the pending conditional elements
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
getBreakClass
public int getBreakClass()
- the break class of this penalty (one of the break-* constants)
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.
breakClass
- the new break class
setPenaltyValue
public void setPenaltyValue(int p)
Sets the penalty value.
p
- the new penalty value
toString
public String toString()
java.lang.Object.toString()
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.