Class DefaultRenderableTextFactory
- java.lang.Object
-
- org.jfree.layouting.renderer.text.DefaultRenderableTextFactory
-
- All Implemented Interfaces:
RenderableTextFactory,StatefullComponent
public class DefaultRenderableTextFactory extends java.lang.Object implements RenderableTextFactory
For the sake of completeness, we would now also need a script-type classifier and from there we would need a BaseLineInfo-factory.- Author:
- Thomas Morgner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDefaultRenderableTextFactory.DefaultRenderableTextFactoryState
-
Constructor Summary
Constructors Modifier Constructor Description DefaultRenderableTextFactory(LayoutProcess layoutProcess)protectedDefaultRenderableTextFactory(LayoutProcess layoutProcess, boolean init)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddGlyph(int rawCodePoint, int[] extraChars)protected voidaddWord(boolean forceLinebreak)protected org.pentaho.reporting.libraries.fonts.text.breaks.BreakOpportunityProducercreateBreakProducer(LayoutContext layoutContext)protected org.pentaho.reporting.libraries.fonts.text.font.FontSizeProducercreateFontSizeProducer(LayoutContext layoutContext)protected org.pentaho.reporting.libraries.fonts.text.classifier.GlyphClassificationProducercreateGlyphClassifier(LayoutContext layoutContext)protected org.pentaho.reporting.libraries.fonts.text.font.KerningProducercreateKerningProducer(LayoutContext layoutContext)protected org.pentaho.reporting.libraries.fonts.text.SpacingProducercreateSpacingProducer(LayoutContext layoutContext)RenderNode[]createText(int[] text, int offset, int length, LayoutContext layoutContext)The text is given as CodePoints.protected org.pentaho.reporting.libraries.fonts.text.whitespace.WhiteSpaceFiltercreateWhitespaceFilter(LayoutContext layoutContext)RenderNode[]finishText()protected RenderNode[]processText(int[] text, int offset, int length)StatesaveState()voidstartText()
-
-
-
Constructor Detail
-
DefaultRenderableTextFactory
public DefaultRenderableTextFactory(LayoutProcess layoutProcess)
-
DefaultRenderableTextFactory
protected DefaultRenderableTextFactory(LayoutProcess layoutProcess, boolean init)
-
-
Method Detail
-
createText
public RenderNode[] createText(int[] text, int offset, int length, LayoutContext layoutContext)
Description copied from interface:RenderableTextFactoryThe text is given as CodePoints.- Specified by:
createTextin interfaceRenderableTextFactory- Returns:
-
processText
protected RenderNode[] processText(int[] text, int offset, int length)
-
addGlyph
protected void addGlyph(int rawCodePoint, int[] extraChars)
-
addWord
protected void addWord(boolean forceLinebreak)
-
createWhitespaceFilter
protected org.pentaho.reporting.libraries.fonts.text.whitespace.WhiteSpaceFilter createWhitespaceFilter(LayoutContext layoutContext)
-
createGlyphClassifier
protected org.pentaho.reporting.libraries.fonts.text.classifier.GlyphClassificationProducer createGlyphClassifier(LayoutContext layoutContext)
-
createBreakProducer
protected org.pentaho.reporting.libraries.fonts.text.breaks.BreakOpportunityProducer createBreakProducer(LayoutContext layoutContext)
-
createSpacingProducer
protected org.pentaho.reporting.libraries.fonts.text.SpacingProducer createSpacingProducer(LayoutContext layoutContext)
-
createFontSizeProducer
protected org.pentaho.reporting.libraries.fonts.text.font.FontSizeProducer createFontSizeProducer(LayoutContext layoutContext)
-
createKerningProducer
protected org.pentaho.reporting.libraries.fonts.text.font.KerningProducer createKerningProducer(LayoutContext layoutContext)
-
finishText
public RenderNode[] finishText()
- Specified by:
finishTextin interfaceRenderableTextFactory
-
startText
public void startText()
- Specified by:
startTextin interfaceRenderableTextFactory
-
saveState
public State saveState() throws StateException
- Specified by:
saveStatein interfaceStatefullComponent- Throws:
StateException
-
-