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
-
-
Constructor Summary
Constructors Constructor Description SimpleLinebreaker(ParagraphRenderBox paragraphRenderBox)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNode(RenderNode node)
void
dispose()
void
finish()
void
finishBlockBox(RenderBox box)
void
finishInlineBox(InlineRenderBox box)
void
finishParagraphBox(ParagraphRenderBox box)
boolean
isBreakRequested()
boolean
isSuspended()
boolean
isWritable()
void
recycle(ParagraphRenderBox box)
void
setBreakRequested(boolean breakRequested)
void
startBlockBox(RenderBox child)
FullLinebreaker
startComplexLayout()
void
startInlineBox(InlineRenderBox box)
ParagraphLinebreaker
startParagraphBox(ParagraphRenderBox box)
-
-
-
Constructor Detail
-
SimpleLinebreaker
public SimpleLinebreaker(ParagraphRenderBox paragraphRenderBox)
-
-
Method Detail
-
dispose
public void dispose()
-
recycle
public void recycle(ParagraphRenderBox box)
-
isWritable
public boolean isWritable()
- Specified by:
isWritable
in interfaceParagraphLinebreaker
-
startComplexLayout
public FullLinebreaker startComplexLayout()
- Specified by:
startComplexLayout
in interfaceParagraphLinebreaker
-
startBlockBox
public void startBlockBox(RenderBox child)
- Specified by:
startBlockBox
in interfaceParagraphLinebreaker
-
finishBlockBox
public void finishBlockBox(RenderBox box)
- Specified by:
finishBlockBox
in interfaceParagraphLinebreaker
-
startParagraphBox
public ParagraphLinebreaker startParagraphBox(ParagraphRenderBox box)
- Specified by:
startParagraphBox
in interfaceParagraphLinebreaker
-
finishParagraphBox
public void finishParagraphBox(ParagraphRenderBox box)
- Specified by:
finishParagraphBox
in interfaceParagraphLinebreaker
-
isSuspended
public boolean isSuspended()
- Specified by:
isSuspended
in interfaceParagraphLinebreaker
-
finish
public void finish()
- Specified by:
finish
in interfaceParagraphLinebreaker
-
startInlineBox
public void startInlineBox(InlineRenderBox box)
- Specified by:
startInlineBox
in interfaceParagraphLinebreaker
-
finishInlineBox
public void finishInlineBox(InlineRenderBox box)
- Specified by:
finishInlineBox
in interfaceParagraphLinebreaker
-
isBreakRequested
public boolean isBreakRequested()
- Specified by:
isBreakRequested
in interfaceParagraphLinebreaker
-
addNode
public void addNode(RenderNode node)
- Specified by:
addNode
in interfaceParagraphLinebreaker
-
setBreakRequested
public void setBreakRequested(boolean breakRequested)
- Specified by:
setBreakRequested
in interfaceParagraphLinebreaker
-
-