Class GlyphLine.GlyphLinePart

  • Enclosing class:
    GlyphLine

    public static class GlyphLine.GlyphLinePart
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String actualText  
      private int end  
      private boolean reversed  
      private int start  
    • Constructor Summary

      Constructors 
      Constructor Description
      GlyphLinePart​(int start, int end)
      Creates a glyph line part object with given start and end values.
      GlyphLinePart​(int start, int end, java.lang.String actualText)
      Creates a glyph line part object with given start, end and actual text values.
    • Field Detail

      • start

        private int start
      • end

        private int end
      • actualText

        private java.lang.String actualText
      • reversed

        private boolean reversed
    • Constructor Detail

      • GlyphLinePart

        public GlyphLinePart​(int start,
                             int end)
        Creates a glyph line part object with given start and end values. Actual text is set to null.
        Parameters:
        start - start value of the glyph line part
        end - end value of the glyph line part
      • GlyphLinePart

        public GlyphLinePart​(int start,
                             int end,
                             java.lang.String actualText)
        Creates a glyph line part object with given start, end and actual text values.
        Parameters:
        start - start value of the glyph line part
        end - end value of the glyph line part
        actualText - actual text
    • Method Detail

      • getStart

        public int getStart()
        Retrieves the start of the glyph line part.
        Returns:
        start value of glyph line part
      • setStart

        public GlyphLine.GlyphLinePart setStart​(int start)
        Sets the start of the glyph line part.
        Parameters:
        start - start of the glyph line part
        Returns:
        Altered glyph line part object
      • getEnd

        public int getEnd()
        Retrieves the end of the glyph line part.
        Returns:
        end value of glyph line part
      • setEnd

        public GlyphLine.GlyphLinePart setEnd​(int end)
        Sets the end of the glyph line part.
        Parameters:
        end - end value of glyph line part
        Returns:
        Altered glyph line part object
      • getActualText

        public java.lang.String getActualText()
        Retrieves the actual text of the glyph line part.
        Returns:
        Actual text of glyph line part
      • setActualText

        public GlyphLine.GlyphLinePart setActualText​(java.lang.String actualText)
        Sets the actual text of the glyph line part.
        Parameters:
        actualText - Actual text of glyph line part
        Returns:
        Altered Glyph line part object
      • isReversed

        public boolean isReversed()
        Retrieves whether the glyph line part is reversed.
        Returns:
        True if it is reversed, false otherwise.
      • setReversed

        public GlyphLine.GlyphLinePart setReversed​(boolean reversed)
        Sets whether the glyph line part is reversed.
        Parameters:
        reversed - true if it should be reversed, false otherwise
        Returns:
        Altered glyph line part object