| java.lang.Object org.apache.fop.layoutmgr.ElementListUtils
ElementListUtils | public class ElementListUtils (Code) | | Utilities for Knuth element lists.
|
calcContentLength | public static int calcContentLength(List elems, int start, int end)(Code) | | Calculates the content length of the given element list. Warning: It doesn't take any
stretch and shrink possibilities into account.
Parameters: elems - the element list Parameters: start - element at which to start Parameters: end - element at which to stop the content length |
calcContentLength | public static int calcContentLength(List elems)(Code) | | Calculates the content length of the given element list. Warning: It doesn't take any
stretch and shrink possibilities into account.
Parameters: elems - the element list the content length |
determinePreviousBreak | public static int determinePreviousBreak(List elems, int startIndex)(Code) | | Determines the position of the previous break before the start index on an
element list.
Parameters: elems - the element list Parameters: startIndex - the start index the position of the previous break, or -1 if there was no previous break |
endsWithForcedBreak | public static boolean endsWithForcedBreak(LinkedList elems)(Code) | | Indicates whether the given element list ends with a forced break.
Parameters: elems - the element list true if the list ends with a forced break |
removeLegalBreaks | public static void removeLegalBreaks(LinkedList elements)(Code) | | Removes all legal breaks in an element list.
Parameters: elements - the element list |
removeLegalBreaks | public static boolean removeLegalBreaks(LinkedList elements, MinOptMax constraint)(Code) | | Removes legal breaks in an element list. A constraint can be specified to limit the
range in which the breaks are removed. Legal breaks occuring before at least
constraint.opt space is filled will be removed.
Parameters: elements - the element list Parameters: constraint - min/opt/max value to restrict the range in which the breaks are removed. true if the opt constraint is bigger than the list contents |
removeLegalBreaks | public static boolean removeLegalBreaks(LinkedList elements, int constraint)(Code) | | Removes legal breaks in an element list. A constraint can be specified to limit the
range in which the breaks are removed. Legal breaks occuring before at least
constraint space is filled will be removed.
Parameters: elements - the element list Parameters: constraint - value to restrict the range in which the breaks are removed. true if the constraint is bigger than the list contents |
removeLegalBreaksFromEnd | public static boolean removeLegalBreaksFromEnd(LinkedList elements, int constraint)(Code) | | Removes legal breaks in an element list. A constraint can be specified to limit the
range in which the breaks are removed. Legal breaks within the space specified through the
constraint (starting from the end of the element list) will be removed.
Parameters: elements - the element list Parameters: constraint - value to restrict the range in which the breaks are removed. true if the constraint is bigger than the list contents |
|
|