org.pentaho.reporting.libraries.fonts.text.breaks
Class LineBreakProducer
java.lang.Object
org.pentaho.reporting.libraries.fonts.text.breaks.LineBreakProducer
- All Implemented Interfaces:
- Cloneable, BreakOpportunityProducer, ClassificationProducer
- Direct Known Subclasses:
- WordBreakProducer
public class LineBreakProducer
- extends 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
LineBreakProducer
public LineBreakProducer()
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 Object clone()
throws CloneNotSupportedException
- Specified by:
clone
in interface BreakOpportunityProducer
- Specified by:
clone
in interface ClassificationProducer
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException
reset
public void reset()
- Specified by:
reset
in interface BreakOpportunityProducer