Class CharacterRenderInfo


  • public class CharacterRenderInfo
    extends TextChunk
    This class represents a single character and its bounding box
    • Field Detail

    • Constructor Detail

      • CharacterRenderInfo

        public CharacterRenderInfo​(TextRenderInfo tri)
    • Method Detail

      • mapString

        static CharacterRenderInfo.StringConversionInfo mapString​(java.util.List<CharacterRenderInfo> cris)
        This method converts a List of CharacterRenderInfo. The returned data structure contains both the plaintext and the mapping of indices (from the list to the string). These indices can differ; if there is sufficient spacing between two CharacterRenderInfo objects, this algorithm will decide to insert space. The inserted space will cause the indices to differ by at least 1.
      • putCharsWithIndex

        private static void putCharsWithIndex​(java.lang.CharSequence seq,
                                              int index,
                                              java.util.Map<java.lang.Integer,​java.lang.Integer> indexMap,
                                              java.lang.StringBuilder sb)
      • getBoundingBox

        public Rectangle getBoundingBox()