Class PathGlyphCursor
java.lang.Object
com.github.weisj.jsvg.nodes.text.GlyphCursor
com.github.weisj.jsvg.nodes.text.PathGlyphCursor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatprivate floatprivate final @NotNull SegmentIteratorWithLookBehindprivate floatprivate booleanFields inherited from class GlyphCursor
advancement, completeGlyphRunMetrics, dxOff, dyOff, glyphOffset, rotations, rotOff, transform, x, xDeltas, xLocations, xOff, y, yDeltas, yLocations, yOff -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)PathGlyphCursor(@NotNull GlyphCursor cursor, @NotNull PathIterator pathIterator, float startOffset) privatePathGlyphCursor(@NotNull PathGlyphCursor pathCursor) (package private)PathGlyphCursor(@NotNull PathIterator pathIterator, float startOffset) -
Method Summary
Modifier and TypeMethodDescriptionprivate floatadjustForRetainedLength(float distance) private voidadvance(float distance) (package private) @Nullable AffineTransformadvance(@NotNull MeasureContext measure, @NotNull Glyph glyph) private voidadvanceInsideSegment(float distance) private floatadvanceIntoSegment(float distance) (package private) voidadvanceSpacing(float letterSpacing) private floatcalculateSegmentRotation(float x1, float y1, float x2, float y2) (package private) Point2D.FloatcurrentLocation(@NotNull MeasureContext measure) (package private) GlyphCursorderive()private floatnorm(float a, float b) private floatreverseIntoSegment(float distance) voidsetAdvancement(@NotNull GlyphAdvancement advancement) private void(package private) booleanprivate float(package private) voidupdateFrom(GlyphCursor local) Methods inherited from class GlyphCursor
advancement, isCurrentGlyphAutoLayout, nextDeltaX, nextDeltaY
-
Field Details
-
remainingSegmentLength
private float remainingSegmentLength -
segmentLength
private float segmentLength -
retainedLengthAtStart
private float retainedLengthAtStart -
shouldRenderCurrentGlyph
private boolean shouldRenderCurrentGlyph -
currentSegment
-
segmentIterator
-
-
Constructor Details
-
PathGlyphCursor
PathGlyphCursor(@NotNull @NotNull PathIterator pathIterator, float startOffset) -
PathGlyphCursor
PathGlyphCursor(@NotNull @NotNull GlyphCursor cursor, @NotNull @NotNull PathIterator pathIterator, float startOffset) -
PathGlyphCursor
-
-
Method Details
-
setupInitialData
private void setupInitialData() -
derive
GlyphCursor derive()- Overrides:
derivein classGlyphCursor
-
updateFrom
- Overrides:
updateFromin classGlyphCursor
-
setAdvancement
- Overrides:
setAdvancementin classGlyphCursor
-
currentLocation
- Overrides:
currentLocationin classGlyphCursor
-
advance
@Nullable @Nullable AffineTransform advance(@NotNull @NotNull MeasureContext measure, @NotNull @NotNull Glyph glyph) - Overrides:
advancein classGlyphCursor
-
advanceSpacing
void advanceSpacing(float letterSpacing) - Overrides:
advanceSpacingin classGlyphCursor
-
shouldRenderCurrentGlyph
boolean shouldRenderCurrentGlyph()- Overrides:
shouldRenderCurrentGlyphin classGlyphCursor
-
advance
private void advance(float distance) -
travelledSegmentLength
private float travelledSegmentLength() -
adjustForRetainedLength
private float adjustForRetainedLength(float distance) -
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)
-