- java.lang.Object
-
- com.github.weisj.jsvg.nodes.text.GlyphRunTextOutput
-
- All Implemented Interfaces:
TextOutput
public abstract class GlyphRunTextOutput extends java.lang.Object implements TextOutput
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringBuildercodepointsprivate @Nullable RenderContextcontextprivate @Nullable java.awt.geom.AffineTransformglyphTransform
-
Constructor Summary
Constructors Constructor Description GlyphRunTextOutput()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbeginText()voidcodepoint(@NotNull java.lang.String codepoint, @NotNull java.awt.geom.AffineTransform glyphTransform, @NotNull RenderContext context)voidendText()protected abstract voidglyphRun(@NotNull java.lang.String codepoints, @NotNull java.awt.geom.AffineTransform glyphTransform, @NotNull RenderContext context)voidglyphRunBreak()Signals that the next glyph has manual placement and therefore is visually separated from the previous glyph.protected abstract voidonTextEnd()protected abstract voidonTextStart()private voidreset()
-
-
-
Field Detail
-
codepoints
private final java.lang.StringBuilder codepoints
-
glyphTransform
@Nullable private @Nullable java.awt.geom.AffineTransform glyphTransform
-
context
@Nullable private @Nullable RenderContext context
-
-
Method Detail
-
glyphRun
protected abstract void glyphRun(@NotNull @NotNull java.lang.String codepoints, @NotNull @NotNull java.awt.geom.AffineTransform glyphTransform, @NotNull @NotNull RenderContext context)
-
onTextStart
protected abstract void onTextStart()
-
onTextEnd
protected abstract void onTextEnd()
-
codepoint
public void codepoint(@NotNull @NotNull java.lang.String codepoint, @NotNull @NotNull java.awt.geom.AffineTransform glyphTransform, @NotNull @NotNull RenderContext context)- Specified by:
codepointin interfaceTextOutput
-
reset
private void reset()
-
beginText
public final void beginText()
- Specified by:
beginTextin interfaceTextOutput
-
glyphRunBreak
public void glyphRunBreak()
Description copied from interface:TextOutputSignals that the next glyph has manual placement and therefore is visually separated from the previous glyph.- Specified by:
glyphRunBreakin interfaceTextOutput
-
endText
public final void endText()
- Specified by:
endTextin interfaceTextOutput
-
-