public class DefaultRenderableTextFactory extends java.lang.Object implements RenderableTextFactory
Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultRenderableTextFactory.DefaultRenderableTextFactoryState |
Modifier | Constructor and Description |
---|---|
|
DefaultRenderableTextFactory(LayoutProcess layoutProcess) |
protected |
DefaultRenderableTextFactory(LayoutProcess layoutProcess,
boolean init) |
Modifier and Type | Method and Description |
---|---|
protected void |
addGlyph(int rawCodePoint,
int[] extraChars) |
protected void |
addWord(boolean forceLinebreak) |
protected BreakOpportunityProducer |
createBreakProducer(LayoutContext layoutContext) |
protected FontSizeProducer |
createFontSizeProducer(LayoutContext layoutContext) |
protected GlyphClassificationProducer |
createGlyphClassifier(LayoutContext layoutContext) |
protected KerningProducer |
createKerningProducer(LayoutContext layoutContext) |
protected SpacingProducer |
createSpacingProducer(LayoutContext layoutContext) |
RenderNode[] |
createText(int[] text,
int offset,
int length,
LayoutContext layoutContext)
The text is given as CodePoints.
|
protected WhiteSpaceFilter |
createWhitespaceFilter(LayoutContext layoutContext) |
RenderNode[] |
finishText() |
protected RenderNode[] |
processText(int[] text,
int offset,
int length) |
State |
saveState() |
void |
startText() |
public DefaultRenderableTextFactory(LayoutProcess layoutProcess)
protected DefaultRenderableTextFactory(LayoutProcess layoutProcess, boolean init)
public RenderNode[] createText(int[] text, int offset, int length, LayoutContext layoutContext)
RenderableTextFactory
createText
in interface RenderableTextFactory
protected RenderNode[] processText(int[] text, int offset, int length)
protected void addGlyph(int rawCodePoint, int[] extraChars)
protected void addWord(boolean forceLinebreak)
protected WhiteSpaceFilter createWhitespaceFilter(LayoutContext layoutContext)
protected GlyphClassificationProducer createGlyphClassifier(LayoutContext layoutContext)
protected BreakOpportunityProducer createBreakProducer(LayoutContext layoutContext)
protected SpacingProducer createSpacingProducer(LayoutContext layoutContext)
protected FontSizeProducer createFontSizeProducer(LayoutContext layoutContext)
protected KerningProducer createKerningProducer(LayoutContext layoutContext)
public RenderNode[] finishText()
finishText
in interface RenderableTextFactory
public void startText()
startText
in interface RenderableTextFactory
public State saveState() throws StateException
saveState
in interface StatefullComponent
StateException