Package com.github.weisj.jsvg.nodes.text
Class GlyphCursor
java.lang.Object
com.github.weisj.jsvg.nodes.text.GlyphCursor
- Direct Known Subclasses:
PathGlyphCursor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @NotNull GlyphAdvancement
protected final Rectangle2D
protected int
protected int
protected int
protected float[]
protected int
protected final AffineTransform
protected float
protected Length[]
protected Length[]
protected int
protected float
protected Length[]
protected Length[]
protected int
-
Constructor Summary
ConstructorsModifierConstructorDescription(package private)
GlyphCursor
(float x, float y, @NotNull AffineTransform transform) private
GlyphCursor
(float x, float y, @NotNull AffineTransform transform, @NotNull Rectangle2D glyphBounds) (package private)
GlyphCursor
(@NotNull GlyphCursor c) -
Method Summary
Modifier and TypeMethodDescription(package private) @Nullable AffineTransform
advance
(@NotNull MeasureContext measure, @NotNull Glyph glyph) (package private) void
advanceSpacing
(float letterSpacing) (package private) GlyphCursor
derive()
protected float
nextDeltaX
(@NotNull MeasureContext measure) protected float
nextDeltaY
(@NotNull MeasureContext measure) protected double
protected float
nextX
(@NotNull MeasureContext measure) protected float
nextY
(@NotNull MeasureContext measure) void
setAdvancement
(@NotNull GlyphAdvancement advancement) (package private) void
updateFrom
(GlyphCursor local)
-
Field Details
-
completeGlyphRunBounds
-
advancement
-
x
protected float x -
y
protected float y -
glyphOffset
protected int glyphOffset -
transform
-
xLocations
-
xOff
protected int xOff -
xDeltas
-
dxOff
protected int dxOff -
yLocations
-
yOff
protected int yOff -
yDeltas
-
dyOff
protected int dyOff -
rotations
protected float[] rotations -
rotOff
protected int rotOff
-
-
Constructor Details
-
GlyphCursor
GlyphCursor(float x, float y, @NotNull @NotNull AffineTransform transform) -
GlyphCursor
private GlyphCursor(float x, float y, @NotNull @NotNull AffineTransform transform, @NotNull @NotNull Rectangle2D glyphBounds) -
GlyphCursor
GlyphCursor(@NotNull @NotNull GlyphCursor c)
-
-
Method Details
-
derive
GlyphCursor derive() -
updateFrom
-
setAdvancement
-
advancement
-
advance
@Nullable @Nullable AffineTransform advance(@NotNull @NotNull MeasureContext measure, @NotNull @NotNull Glyph glyph) -
advanceSpacing
void advanceSpacing(float letterSpacing) -
nextX
-
nextDeltaX
-
nextY
-
nextDeltaY
-
nextRotation
protected double nextRotation()
-