bckfnn      2004/01/29 11:37:02

  Modified:    src/java/org/apache/fop/fo/properties
                        CommonBorderAndPadding.java
  Log:
  Added getBPPaddingAndBorder() to return the border and padding length in
  the BP direction.
  
  PR: 25802.
  
  Revision  Changes    Path
  1.5       +13 -2     
xml-fop/src/java/org/apache/fop/fo/properties/CommonBorderAndPadding.java
  
  Index: CommonBorderAndPadding.java
  ===================================================================
  RCS file: 
/home/cvs/xml-fop/src/java/org/apache/fop/fo/properties/CommonBorderAndPadding.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- CommonBorderAndPadding.java       22 Dec 2003 21:37:44 -0000      1.4
  +++ CommonBorderAndPadding.java       29 Jan 2004 19:37:02 -0000      1.5
  @@ -213,7 +213,18 @@
               return padding[side].iLength;
           }
       }
  -    
  +
  +    /**
  +     * Return all the border and padding height in the block progression 
  +     * dimension.
  +     * @param bDiscard the discard flag.
  +     * @return all the padding and border height.
  +     */
  +    public int getBPPaddingAndBorder(boolean bDiscard) {
  +        return getPaddingBefore(bDiscard) + getPaddingAfter(bDiscard) +
  +               getBorderBeforeWidth(bDiscard) + getBorderAfterWidth(bDiscard);      
  
  +    }
  +
       public String toString() {
           return "CommonBordersAndPadding (Before, After, Start, End):\n" +
           "Borders: (" + getBorderBeforeWidth(false) + ", " + 
getBorderAfterWidth(false) + ", " +
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to