Class InlineContainerLayoutManager

    • Constructor Detail

      • InlineContainerLayoutManager

        public InlineContainerLayoutManager​(InlineContainer node)
    • Method Detail

      • getParentArea

        public Area getParentArea​(Area childArea)
        Description copied from class: AbstractLayoutManager
        Return an Area which can contain the passed childArea. The childArea may not yet have any content, but it has essential traits set. In general, if the LayoutManager already has an Area it simply returns it. Otherwise, it makes a new Area of the appropriate class. It gets a parent area for its area by calling its parent LM. Finally, based on the dimensions of the parent area, it initializes its own area. This includes setting the content IPD and the maximum BPD.
        Specified by:
        getParentArea in interface LayoutManager
        Overrides:
        getParentArea in class AbstractLayoutManager
        Parameters:
        childArea - the child area for which the parent area is wanted
        Returns:
        the parent area for the given child
      • addChildArea

        public void addChildArea​(Area childArea)
        Description copied from class: AbstractLayoutManager
        Add a child area to the current area. If this causes the maximum dimension of the current area to be exceeded, the parent LM is called to add it.
        Specified by:
        addChildArea in interface LayoutManager
        Overrides:
        addChildArea in class AbstractLayoutManager
        Parameters:
        childArea - the child area to be added
      • handleOverflow

        public boolean handleOverflow​(int milliPoints)
      • addALetterSpaceTo

        public java.util.List addALetterSpaceTo​(java.util.List oldList)
        Description copied from interface: InlineLevelLayoutManager
        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
        Specified by:
        addALetterSpaceTo in interface InlineLevelLayoutManager
        Parameters:
        oldList - the elements which must be given one more letter space
        Returns:
        the new elements replacing the old ones
      • addALetterSpaceTo

        public java.util.List addALetterSpaceTo​(java.util.List oldList,
                                                int depth)
        Description copied from interface: InlineLevelLayoutManager
        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
        Specified by:
        addALetterSpaceTo in interface InlineLevelLayoutManager
        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

        public java.lang.String getWordChars​(Position pos)
        Description copied from interface: InlineLevelLayoutManager
        Get the word chars corresponding to the given position.
        Specified by:
        getWordChars in interface InlineLevelLayoutManager
        Parameters:
        pos - the position referring to the needed word chars.
        Returns:
        the word chars
      • applyChanges

        public boolean applyChanges​(java.util.List oldList)
        Description copied from interface: InlineLevelLayoutManager
        Tell the LM to apply the changes due to hyphenation
        Specified by:
        applyChanges in interface InlineLevelLayoutManager
        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

        public boolean applyChanges​(java.util.List oldList,
                                    int depth)
        Description copied from interface: InlineLevelLayoutManager
        Tell the LM to apply the changes due to hyphenation
        Specified by:
        applyChanges in interface InlineLevelLayoutManager
        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

        public java.util.List getChangedKnuthElements​(java.util.List oldList,
                                                      int alignment,
                                                      int depth)
        Description copied from interface: InlineLevelLayoutManager
        Get a sequence of KnuthElements representing the content of the node assigned to the LM, after changes have been applied
        Specified by:
        getChangedKnuthElements in interface InlineLevelLayoutManager
        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