Class LineBreakProducer
java.lang.Object
org.pentaho.reporting.libraries.fonts.text.breaks.LineBreakProducer
- All Implemented Interfaces:
Cloneable,BreakOpportunityProducer,ClassificationProducer
- Direct Known Subclasses:
WordBreakProducer
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_WORDFields inherited from interface org.pentaho.reporting.libraries.fonts.text.ClassificationProducer
END_OF_TEXT, START_OF_TEXT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intcreateBreakOpportunity(int codepoint) voidreset()voidSignals the start of text.
-
Constructor Details
-
LineBreakProducer
public LineBreakProducer()
-
-
Method Details
-
startText
public void startText()Signals the start of text. Resets the state to the initial values. -
createBreakOpportunity
public int createBreakOpportunity(int codepoint) - Specified by:
createBreakOpportunityin interfaceBreakOpportunityProducer
-
clone
- Specified by:
clonein interfaceBreakOpportunityProducer- Specified by:
clonein interfaceClassificationProducer- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
reset
public void reset()- Specified by:
resetin interfaceBreakOpportunityProducer
-