Interface InlineLevelLayoutManager

    • Method Detail

      • addALetterSpaceTo

        java.util.List addALetterSpaceTo​(java.util.List oldList)
        Tell the LM to modify its data, adding a letter space to the word fragment represented by the given elements, and returning the corrected elements
        Parameters:
        oldList - the elements which must be given one more letter space
        Returns:
        the new elements replacing the old ones
      • addALetterSpaceTo

        java.util.List addALetterSpaceTo​(java.util.List oldList,
                                         int depth)
        Tell the LM to modify its data, adding a letter space to the word fragment represented by the given elements, and returning the corrected elements
        Parameters:
        oldList - the elements which must be given one more letter space
        depth - the depth at which the Positions for this LM in oldList are found
        Returns:
        the new elements replacing the old ones
      • getWordChars

        java.lang.String getWordChars​(Position pos)
        Get the word chars corresponding to the given position.
        Parameters:
        pos - the position referring to the needed word chars.
        Returns:
        the word chars
      • hyphenate

        void hyphenate​(Position pos,
                       HyphContext hyphContext)
        Tell the LM to hyphenate a word
        Parameters:
        pos - the Position referring to the word
        hyphContext - the HyphContext storing hyphenation information
      • applyChanges

        boolean applyChanges​(java.util.List oldList)
        Tell the LM to apply the changes due to hyphenation
        Parameters:
        oldList - the list of the old elements the changes refer to
        Returns:
        true if the LM had to change its data, false otherwise
      • applyChanges

        boolean applyChanges​(java.util.List oldList,
                             int depth)
        Tell the LM to apply the changes due to hyphenation
        Parameters:
        oldList - the list of the old elements the changes refer to
        depth - the depth at which the Positions for this LM in oldList are found
        Returns:
        true if the LM had to change its data, false otherwise
      • getChangedKnuthElements

        java.util.List getChangedKnuthElements​(java.util.List oldList,
                                               int alignment,
                                               int depth)
        Get a sequence of KnuthElements representing the content of the node assigned to the LM, after changes have been applied
        Parameters:
        oldList - the elements to replace
        alignment - the desired text alignment
        depth - the depth at which the Positions for this LM in oldList are found
        Returns:
        the updated list of KnuthElements