- 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.StringBuilder
codepoints
private @Nullable RenderContext
context
private @Nullable java.awt.geom.AffineTransform
glyphTransform
-
Constructor Summary
Constructors Constructor Description GlyphRunTextOutput()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
beginText()
void
codepoint(@NotNull java.lang.String codepoint, @NotNull java.awt.geom.AffineTransform glyphTransform, @NotNull RenderContext context)
void
endText()
protected abstract void
glyphRun(@NotNull java.lang.String codepoints, @NotNull java.awt.geom.AffineTransform glyphTransform, @NotNull RenderContext context)
void
glyphRunBreak()
Signals that the next glyph has manual placement and therefore is visually separated from the previous glyph.protected abstract void
onTextEnd()
protected abstract void
onTextStart()
private void
reset()
-
-
-
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:
codepoint
in interfaceTextOutput
-
reset
private void reset()
-
beginText
public final void beginText()
- Specified by:
beginText
in interfaceTextOutput
-
glyphRunBreak
public void glyphRunBreak()
Description copied from interface:TextOutput
Signals that the next glyph has manual placement and therefore is visually separated from the previous glyph.- Specified by:
glyphRunBreak
in interfaceTextOutput
-
endText
public final void endText()
- Specified by:
endText
in interfaceTextOutput
-
-