org.apache.fop.layoutmgr
Class BreakElement
java.lang.Object
|
+--org.apache.fop.layoutmgr.ListElement
|
+--org.apache.fop.layoutmgr.UnresolvedListElement
|
+--org.apache.fop.layoutmgr.BreakElement
- public class BreakElement
- extends UnresolvedListElement
This class represents an unresolved break possibility.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BreakElement
public BreakElement(Position position,
int penaltyValue,
LayoutContext context)
- Main constructor
- Parameters:
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
BreakElement
public BreakElement(Position position,
int penaltyWidth,
int penaltyValue,
int breakClass,
LayoutContext context)
- Constructor for hard breaks.
- Parameters:
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
isConditional
public boolean isConditional()
- Overrides:
isConditional
in class UnresolvedListElement
- See Also:
UnresolvedListElement.isConditional()
getPenaltyWidth
public int getPenaltyWidth()
- Returns:
- the penalty width
getPenaltyValue
public int getPenaltyValue()
- Returns:
- the penalty value
setPenaltyValue
public void setPenaltyValue(int p)
- Sets the penalty value.
- Parameters:
p
- the new penalty value
isForcedBreak
public boolean isForcedBreak()
- Overrides:
isForcedBreak
in class ListElement
- See Also:
ListElement.isForcedBreak()
getBreakClass
public int getBreakClass()
- Returns:
- the break class of this penalty (one of the break-* constants)
setBreakClass
public void setBreakClass(int breakClass)
- Sets the break class.
- Parameters:
breakClass
- the new break class
getPendingBeforeMarks
public java.util.List getPendingBeforeMarks()
- Returns:
- the pending border and padding elements at the before edge
getPendingAfterMarks
public java.util.List getPendingAfterMarks()
- Returns:
- the pending border and padding elements at the after edge
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.