Class InlineParent

    • Field Detail

      • inlines

        protected java.util.List<InlineArea> inlines
        The list of inline areas added to this inline parent.
      • autoSize

        protected transient boolean autoSize
        Controls whether the IPD is automatically adjusted based on the area's children.
      • minChildOffset

        protected int minChildOffset
        The offset of the beforest child area of this area.
    • Constructor Detail

      • InlineParent

        public InlineParent()
    • Method Detail

      • addChildArea

        public void addChildArea​(Area c)
        Description copied from class: InlineArea
        Set the parent for the child area. Add a child to this area. The default is to do nothing. Subclasses must override to do something if they can have child areas.
        Overrides:
        addChildArea in class InlineArea
        Parameters:
        c - the child area to add
      • getChildAreas

        public java.util.List<InlineArea> getChildAreas()
        Get the child areas for this inline parent.
        Returns:
        the list of child areas
      • applyVariationFactor

        public boolean applyVariationFactor​(double variationFactor,
                                            int lineStretch,
                                            int lineShrink)
        recursively apply the variation factor to all descendant areas
        Overrides:
        applyVariationFactor in class InlineArea
        Parameters:
        variationFactor - the variation factor that must be applied to adjustments
        lineStretch - the total stretch of the line
        lineShrink - the total shrink of the line
        Returns:
        true if there is an UnresolvedArea descendant
      • collectInlineRuns

        public java.util.List collectInlineRuns​(java.util.List runs)
        Description copied from class: InlineArea
        Collection bidi inline runs.
        Overrides:
        collectInlineRuns in class InlineArea
        Parameters:
        runs - current list of inline runs
        Returns:
        modified list of inline runs, having appended new run
      • resetChildrenLevel

        public void resetChildrenLevel()
        Reset bidirectionality level of all children to default (-1), signalling that they will inherit the level of their parent text area.