Class PathGlyphCursor

    • Constructor Detail

      • PathGlyphCursor

        PathGlyphCursor​(@NotNull
                        @NotNull java.awt.geom.PathIterator pathIterator,
                        float startOffset)
      • PathGlyphCursor

        PathGlyphCursor​(@NotNull
                        @NotNull GlyphCursor cursor,
                        float startOffset,
                        @NotNull
                        @NotNull java.awt.geom.PathIterator pathIterator)
      • PathGlyphCursor

        private PathGlyphCursor​(@NotNull
                                @NotNull PathGlyphCursor pathCursor)
    • Method Detail

      • setupInitialData

        private void setupInitialData()
      • advance

        @Nullable
        @Nullable java.awt.geom.AffineTransform advance​(@NotNull
                                                        @NotNull MeasureContext measure,
                                                        @NotNull
                                                        @NotNull Glyph glyph)
        Overrides:
        advance 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)