java.lang.Object
com.github.weisj.jsvg.nodes.text.GlyphCursor
com.github.weisj.jsvg.nodes.text.PathGlyphCursor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate float
private final @NotNull SegmentIteratorWithLookBehind
private float
Fields inherited from class com.github.weisj.jsvg.nodes.text.GlyphCursor
advancement, completeGlyphRunBounds, dxOff, dyOff, glyphOffset, rotations, rotOff, transform, x, xDeltas, xLocations, xOff, y, yDeltas, yLocations, yOff
-
Constructor Summary
ConstructorsModifierConstructorDescription(package private)
PathGlyphCursor
(@NotNull GlyphCursor cursor, float startOffset, @NotNull PathIterator pathIterator) private
PathGlyphCursor
(@NotNull PathGlyphCursor pathCursor) (package private)
PathGlyphCursor
(@NotNull PathIterator pathIterator, float startOffset) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
advance
(float distance) (package private) @Nullable AffineTransform
advance
(@NotNull MeasureContext measure, @NotNull Glyph glyph) private void
advanceInsideSegment
(float distance) private float
advanceIntoSegment
(float distance) (package private) void
advanceSpacing
(float letterSpacing) private float
calculateSegmentRotation
(float x1, float y1, float x2, float y2) (package private) GlyphCursor
derive()
private float
norm
(float a, float b) private float
reverseIntoSegment
(float distance) void
setAdvancement
(@NotNull GlyphAdvancement advancement) private void
private float
(package private) void
updateFrom
(GlyphCursor local) Methods inherited from class com.github.weisj.jsvg.nodes.text.GlyphCursor
advancement, nextDeltaX, nextDeltaY, nextRotation, nextX, nextY
-
Field Details
-
remainingSegmentLength
private float remainingSegmentLength -
segmentLength
private float segmentLength -
currentSegment
-
segmentIterator
-
-
Constructor Details
-
PathGlyphCursor
PathGlyphCursor(@NotNull @NotNull PathIterator pathIterator, float startOffset) -
PathGlyphCursor
PathGlyphCursor(@NotNull @NotNull GlyphCursor cursor, float startOffset, @NotNull @NotNull PathIterator pathIterator) -
PathGlyphCursor
-
-
Method Details
-
setupInitialData
private void setupInitialData() -
derive
GlyphCursor derive()- Overrides:
derive
in classGlyphCursor
-
updateFrom
- Overrides:
updateFrom
in classGlyphCursor
-
setAdvancement
- Overrides:
setAdvancement
in classGlyphCursor
-
advance
@Nullable @Nullable AffineTransform advance(@NotNull @NotNull MeasureContext measure, @NotNull @NotNull Glyph glyph) - Overrides:
advance
in classGlyphCursor
-
advanceSpacing
void advanceSpacing(float letterSpacing) - Overrides:
advanceSpacing
in classGlyphCursor
-
advance
private void advance(float distance) -
travelledSegmentLength
private float travelledSegmentLength() -
advanceIntoSegment
private float advanceIntoSegment(float distance) -
reverseIntoSegment
private float reverseIntoSegment(float distance) -
advanceInsideSegment
private void advanceInsideSegment(float distance) -
calculateSegmentRotation
private float calculateSegmentRotation(float x1, float y1, float x2, float y2) -
norm
private float norm(float a, float b)
-