Browse Source

Added getBPPaddingAndBorder() to return the border and padding length in

the BP direction.

PR: 25802.


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197292 13f79535-47bb-0310-9956-ffa450edef68
pull/30/head
Finn Bock 20 years ago
parent
commit
7311385301
1 changed files with 12 additions and 1 deletions
  1. 12
    1
      src/java/org/apache/fop/fo/properties/CommonBorderAndPadding.java

+ 12
- 1
src/java/org/apache/fop/fo/properties/CommonBorderAndPadding.java View File

@@ -213,7 +213,18 @@ public class CommonBorderAndPadding implements Cloneable {
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) + ", " +

Loading…
Cancel
Save