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

  • Constructor Details

    • PathGlyphCursor

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

      PathGlyphCursor(@NotNull @NotNull GlyphCursor cursor, float startOffset, @NotNull @NotNull PathIterator pathIterator)
    • 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
    • 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
    • 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)