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