Class CellPart


  • class CellPart
    extends java.lang.Object
    Represents a non-divisible part of a grid unit. Used by the table stepper.
    • Field Detail

      • start

        protected int start
        Index of the starting element of this part
      • end

        protected int end
        Index of the ending element of this part
      • condBeforeContentLength

        private int condBeforeContentLength
      • length

        private int length
      • condAfterContentLength

        private int condAfterContentLength
      • bpBeforeNormal

        private int bpBeforeNormal
      • bpBeforeFirst

        private int bpBeforeFirst
      • bpAfterNormal

        private int bpAfterNormal
      • bpAfterLast

        private int bpAfterLast
      • isLast

        private boolean isLast
    • Constructor Detail

      • CellPart

        protected CellPart​(PrimaryGridUnit pgu,
                           int start,
                           int end,
                           boolean last,
                           int condBeforeContentLength,
                           int length,
                           int condAfterContentLength,
                           int bpBeforeNormal,
                           int bpBeforeFirst,
                           int bpAfterNormal,
                           int bpAfterLast)
        Creates a new CellPart.
        Parameters:
        pgu - Primary grid unit
        start - starting element
        end - ending element
        last - true if this cell part is the last one for the cell
        condBeforeContentLength - length of the additional content that will have to be displayed if this part will be the first one on the page
        length - length of the content represented by this cell part
        condAfterContentLength - length of the additional content that will have to be displayed if this part will be the last one on the page
        bpBeforeNormal - width of border- and padding-before in the normal case
        bpBeforeFirst - width of (possibly optional) border- and padding-before if this part will be the first one on the page
        bpAfterNormal - width of border- and padding-after in the normal case
        bpAfterLast - width of (possibly optional) border- and padding-after if this part will be the last one on the page
    • Method Detail

      • isFirstPart

        public boolean isFirstPart()
        Returns:
        true if this part is the first part of a cell
      • isLastPart

        boolean isLastPart()
        Returns:
        true if this part is the last part of a cell
      • getBorderPaddingBefore

        int getBorderPaddingBefore​(boolean firstOnPage)
      • getBorderPaddingAfter

        int getBorderPaddingAfter​(boolean lastOnPage)
      • getConditionalBeforeContentLength

        int getConditionalBeforeContentLength()
      • getLength

        int getLength()
      • getConditionalAfterContentLength

        int getConditionalAfterContentLength()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object