- 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
AbstractGlyphRun.Metrics
completeGlyphRunMetrics
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, AbstractGlyphRun.Metrics metrics)
(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)
private boolean
currentGlyphHasDeltaXOverride()
private boolean
currentGlyphHasDeltaYOverride()
private boolean
currentGlyphHasRotationOverride()
private boolean
currentGlyphHasXOverride()
private boolean
currentGlyphHasYOverride()
(package private) java.awt.geom.Point2D.Float
currentLocation(@NotNull MeasureContext measure)
private float
currentX(@NotNull MeasureContext measure)
private float
currentXDelta(@NotNull MeasureContext measure)
private float
currentY(@NotNull MeasureContext measure)
private float
currentYDelta(@NotNull MeasureContext measure)
(package private) GlyphCursor
derive()
(package private) boolean
isCurrentGlyphAutoLayout()
protected float
nextDeltaX(@NotNull MeasureContext measure)
protected float
nextDeltaY(@NotNull MeasureContext measure)
private double
nextRotation()
private float
nextX(@NotNull MeasureContext measure)
private float
nextY(@NotNull MeasureContext measure)
void
setAdvancement(@NotNull GlyphAdvancement advancement)
(package private) boolean
shouldRenderCurrentGlyph()
(package private) void
updateFrom(GlyphCursor local)
-
-
-
Field Detail
-
completeGlyphRunMetrics
@NotNull public final AbstractGlyphRun.Metrics completeGlyphRunMetrics
-
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 AbstractGlyphRun.Metrics metrics)
-
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()
-
currentLocation
@NotNull java.awt.geom.Point2D.Float currentLocation(@NotNull @NotNull MeasureContext measure)
-
advance
@Nullable @Nullable java.awt.geom.AffineTransform advance(@NotNull @NotNull MeasureContext measure, @NotNull @NotNull Glyph glyph)
-
advanceSpacing
void advanceSpacing(float letterSpacing)
-
currentGlyphHasXOverride
private boolean currentGlyphHasXOverride()
-
currentX
private float currentX(@NotNull @NotNull MeasureContext measure)
-
currentXDelta
private float currentXDelta(@NotNull @NotNull MeasureContext measure)
-
currentY
private float currentY(@NotNull @NotNull MeasureContext measure)
-
currentYDelta
private float currentYDelta(@NotNull @NotNull MeasureContext measure)
-
nextX
private float nextX(@NotNull @NotNull MeasureContext measure)
-
currentGlyphHasDeltaXOverride
private boolean currentGlyphHasDeltaXOverride()
-
nextDeltaX
protected final float nextDeltaX(@NotNull @NotNull MeasureContext measure)
-
currentGlyphHasYOverride
private boolean currentGlyphHasYOverride()
-
nextY
private float nextY(@NotNull @NotNull MeasureContext measure)
-
currentGlyphHasDeltaYOverride
private boolean currentGlyphHasDeltaYOverride()
-
nextDeltaY
protected final float nextDeltaY(@NotNull @NotNull MeasureContext measure)
-
currentGlyphHasRotationOverride
private boolean currentGlyphHasRotationOverride()
-
nextRotation
private double nextRotation()
-
isCurrentGlyphAutoLayout
boolean isCurrentGlyphAutoLayout()
-
shouldRenderCurrentGlyph
boolean shouldRenderCurrentGlyph()
-
-