org.pentaho.reporting.engine.classic.core.layout.process.linebreak
Class SimpleLinebreaker

java.lang.Object
  extended by 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
SimpleLinebreaker(ParagraphRenderBox paragraphRenderBox)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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