Class PathGlyphCursor

java.lang.Object
com.github.weisj.jsvg.nodes.text.GlyphCursor
com.github.weisj.jsvg.nodes.text.PathGlyphCursor

final class PathGlyphCursor extends GlyphCursor
  • Field Details

    • remainingSegmentLength

      private float remainingSegmentLength
    • segmentLength

      private float segmentLength
    • retainedLengthAtStart

      private float retainedLengthAtStart
    • shouldRenderCurrentGlyph

      private boolean shouldRenderCurrentGlyph
    • currentSegment

      private SegmentIteratorWithLookBehind.Segment currentSegment
    • segmentIterator

      @NotNull private final @NotNull SegmentIteratorWithLookBehind segmentIterator
  • Constructor Details

    • PathGlyphCursor

      PathGlyphCursor(@NotNull @NotNull PathIterator pathIterator, float startOffset)
    • PathGlyphCursor

      PathGlyphCursor(@NotNull @NotNull GlyphCursor cursor, @NotNull @NotNull PathIterator pathIterator, float startOffset)
    • PathGlyphCursor

      private PathGlyphCursor(@NotNull @NotNull PathGlyphCursor pathCursor)
  • Method Details

    • setupInitialData

      private void setupInitialData()
    • derive

      GlyphCursor derive()
      Overrides:
      derive in class GlyphCursor
    • updateFrom

      void updateFrom(GlyphCursor local)
      Overrides:
      updateFrom in class GlyphCursor
    • setAdvancement

      public void setAdvancement(@NotNull @NotNull GlyphAdvancement advancement)
      Overrides:
      setAdvancement in class GlyphCursor
    • currentLocation

      @NotNull Point2D.Float currentLocation(@NotNull @NotNull MeasureContext measure)
      Overrides:
      currentLocation in class GlyphCursor
    • advance

      @Nullable @Nullable AffineTransform advance(@NotNull @NotNull MeasureContext measure, @NotNull @NotNull Glyph glyph)
      Overrides:
      advance in class GlyphCursor
    • advanceSpacing

      void advanceSpacing(float letterSpacing)
      Overrides:
      advanceSpacing in class GlyphCursor
    • shouldRenderCurrentGlyph

      boolean shouldRenderCurrentGlyph()
      Overrides:
      shouldRenderCurrentGlyph in class GlyphCursor
    • 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)