Class StrokingTextPainter.TextRun

  • Enclosing class:
    StrokingTextPainter

    public static class StrokingTextPainter.TextRun
    extends java.lang.Object
    Inner convenience class for associating a TextLayout for sub-spans, and the ACI which iterates over that subspan.
    • Field Detail

      • aci

        protected java.text.AttributedCharacterIterator aci
      • anchorType

        protected int anchorType
      • firstRunInChunk

        protected boolean firstRunInChunk
      • length

        protected java.lang.Float length
      • lengthAdjust

        protected java.lang.Integer lengthAdjust
    • Constructor Detail

      • TextRun

        public TextRun​(TextSpanLayout layout,
                       java.text.AttributedCharacterIterator aci,
                       boolean firstRunInChunk)
    • Method Detail

      • getACI

        public java.text.AttributedCharacterIterator getACI()
      • getAnchorType

        public int getAnchorType()
      • getLength

        public java.lang.Float getLength()
      • getLengthAdjust

        public java.lang.Integer getLengthAdjust()
      • isFirstRunInChunk

        public boolean isFirstRunInChunk()
      • getBidiLevel

        public int getBidiLevel()
      • reverse

        public void reverse()
      • maybeReverseGlyphs

        public void maybeReverseGlyphs​(boolean mirror)