Class LeftAlignmentProcessor
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.layout.process.alignment.AbstractAlignmentProcessor
-
- org.pentaho.reporting.engine.classic.core.layout.process.alignment.LeftAlignmentProcessor
-
- All Implemented Interfaces:
LastLineTextAlignmentProcessor
,TextAlignmentProcessor
- Direct Known Subclasses:
JustifyAlignmentProcessor
public class LeftAlignmentProcessor extends AbstractAlignmentProcessor
Performs the left-alignment computations. The inf-min-step creates the initial sequence of elements. The alignment processor now iterates over the sequence and produces the layouted line. Elements can be split, splitting is a local operation and does not copy the children. Text splitting may produce a totally different text (see: TeX hyphenation system). The process is iterative and continues unless all elements have been consumed.- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description LeftAlignmentProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPageSegment()
protected int
handleElement(int start, int count)
Handle the next input chunk.RenderBox
next()
void
performLastLineAlignment()
void
performSkipAlignment(int endIndex)
void
setPageSegment(int pageSegment)
protected void
updateBreaksForLastLineAlignment()
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.layout.process.alignment.AbstractAlignmentProcessor
computeInlineBlock, deinitialize, getBreakableIndex, getBreakableMaxAllowedWidth, getElementDimensions, getElementPositions, getEndOfLine, getNodes, getPageBreak, getPagebreakCount, getPageBreaks, getPageGrid, getSequenceElements, getSequenceFill, getSkipIndex, getStartOfLine, hasNext, initialize, initializeForLastLineAlignment, initializeForSkipAlignment, isBorderMarker, isLastLineAlignment, iterate, reInitializeForHandlingComponentSplit, setBreakableIndex, setBreakableMaxAllowedWidth, setSkipIndex, splitBreakableIfPossible, updateLineSize, updatePageBreaks
-
-
-
-
Method Detail
-
getPageSegment
public int getPageSegment()
-
setPageSegment
public void setPageSegment(int pageSegment)
-
next
public RenderBox next()
- Specified by:
next
in interfaceTextAlignmentProcessor
- Overrides:
next
in classAbstractAlignmentProcessor
-
performLastLineAlignment
public void performLastLineAlignment()
- Specified by:
performLastLineAlignment
in interfaceLastLineTextAlignmentProcessor
- Overrides:
performLastLineAlignment
in classAbstractAlignmentProcessor
-
handleElement
protected int handleElement(int start, int count)
Handle the next input chunk.- Specified by:
handleElement
in classAbstractAlignmentProcessor
- Parameters:
start
- the start indexcount
- the number of elements in the sequence- Returns:
- the index of the last element that will fit on the current line.
-
performSkipAlignment
public void performSkipAlignment(int endIndex)
- Overrides:
performSkipAlignment
in classAbstractAlignmentProcessor
-
updateBreaksForLastLineAlignment
protected void updateBreaksForLastLineAlignment()
- Overrides:
updateBreaksForLastLineAlignment
in classAbstractAlignmentProcessor
-
-