org.pentaho.reporting.engine.classic.core.layout.process.linebreak
Class SimpleLinebreaker
java.lang.Object
org.pentaho.reporting.engine.classic.core.layout.process.linebreak.SimpleLinebreaker
- All Implemented Interfaces:
- ParagraphLinebreaker
public final class SimpleLinebreaker
- extends Object
- implements ParagraphLinebreaker
This implementation is used in the simple mode. The pool-box is used as is - none of the nodes get derived, but we
keep track of the calls in case we encounter a manual break later. In that case, the SimpleLinebreaker converts
itself into a FullLinebreaker.
- Author:
- Thomas Morgner
SimpleLinebreaker
public SimpleLinebreaker(ParagraphRenderBox paragraphRenderBox)
dispose
public void dispose()
recycle
public void recycle(ParagraphRenderBox box)
isWritable
public boolean isWritable()
- Specified by:
isWritable
in interface ParagraphLinebreaker
startComplexLayout
public FullLinebreaker startComplexLayout()
- Specified by:
startComplexLayout
in interface ParagraphLinebreaker
startBlockBox
public void startBlockBox(RenderBox child)
- Specified by:
startBlockBox
in interface ParagraphLinebreaker
finishBlockBox
public void finishBlockBox(RenderBox box)
- Specified by:
finishBlockBox
in interface ParagraphLinebreaker
startParagraphBox
public ParagraphLinebreaker startParagraphBox(ParagraphRenderBox box)
- Specified by:
startParagraphBox
in interface ParagraphLinebreaker
finishParagraphBox
public void finishParagraphBox(ParagraphRenderBox box)
- Specified by:
finishParagraphBox
in interface ParagraphLinebreaker
isSuspended
public boolean isSuspended()
- Specified by:
isSuspended
in interface ParagraphLinebreaker
finish
public void finish()
- Specified by:
finish
in interface ParagraphLinebreaker
startInlineBox
public void startInlineBox(InlineRenderBox box)
- Specified by:
startInlineBox
in interface ParagraphLinebreaker
finishInlineBox
public void finishInlineBox(InlineRenderBox box)
- Specified by:
finishInlineBox
in interface ParagraphLinebreaker
isBreakRequested
public boolean isBreakRequested()
- Specified by:
isBreakRequested
in interface ParagraphLinebreaker
addNode
public void addNode(RenderNode node)
- Specified by:
addNode
in interface ParagraphLinebreaker
setBreakRequested
public void setBreakRequested(boolean breakRequested)
- Specified by:
setBreakRequested
in interface ParagraphLinebreaker