org.pentaho.reporting.libraries.fonts.text.breaks
Class LineBreakProducer

java.lang.Object
  extended by org.pentaho.reporting.libraries.fonts.text.breaks.LineBreakProducer
All Implemented Interfaces:
java.lang.Cloneable, BreakOpportunityProducer, ClassificationProducer
Direct Known Subclasses:
WordBreakProducer

public class LineBreakProducer
extends java.lang.Object
implements BreakOpportunityProducer

This produces linebreaks when a CR/LF is encountered. This corresponds to the expected behaviour of HTML-pre elements.

Author:
Thomas Morgner

Field Summary
 
Fields inherited from interface org.pentaho.reporting.libraries.fonts.text.breaks.BreakOpportunityProducer
BREAK_CHAR, BREAK_LINE, BREAK_NEVER, BREAK_SYLLABLE, BREAK_WORD
 
Fields inherited from interface org.pentaho.reporting.libraries.fonts.text.ClassificationProducer
END_OF_TEXT, START_OF_TEXT
 
Constructor Summary
LineBreakProducer()
           
 
Method Summary
 java.lang.Object clone()
           
 int createBreakOpportunity(int codepoint)
           
 void reset()
           
 void startText()
          Signals the start of text.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineBreakProducer

public LineBreakProducer()
Method Detail

startText

public void startText()
Signals the start of text. Resets the state to the initial values.


createBreakOpportunity

public int createBreakOpportunity(int codepoint)
Specified by:
createBreakOpportunity in interface BreakOpportunityProducer

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface BreakOpportunityProducer
Specified by:
clone in interface ClassificationProducer
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

reset

public void reset()
Specified by:
reset in interface BreakOpportunityProducer