Interface TextChunk

    • Method Detail

      • getChunkSet

        ChunkSet getChunkSet()
        Gets the chunk set the chunk belongs to.
        Returns:
        the chunk set or null when the chunk does not belong to any set.
      • getText

        String getText()
        Gets the complete text of the chunk.
        Returns:
        the text chunk.
      • getName

        String getName()
        Gets a readable name of the chunk for listing purposes.
        Returns:
        the chunk name.
      • setName

        void setName​(String name)
        Sets a readable name of the chunk for listing purposes.
        Parameters:
        name - the chunk name
      • getSourceArea

        Area getSourceArea()
        Gets the source area the chunk was extracted from.
        Returns:
        the source area
      • getSourceBox

        Box getSourceBox()
        Gets the source box the chunk was extracted from.
        Returns:
        the source box
      • getFontFamily

        String getFontFamily()
        Gets the font family of the chunk.
        Returns:
        the font family name
      • getColor

        Color getColor()
        Gets the text color of the chunk.
        Returns:
        the text color
      • getEffectiveBackgroundColor

        Color getEffectiveBackgroundColor()
        Gets the efficient background color of the chunk.
        Returns:
        the background color or nul when transparent.