diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-01-12 11:57:02 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-01-12 11:57:02 +0000 |
commit | 67a0898e6cdfbd0fe4079f1d38e8d5aa4befe8cd (patch) | |
tree | 2b68ea1c3149bcf68e6aa4b4937c083c8e23dac6 | |
parent | 1375058131ec99cbb43b988d0da6e6280acf2aa1 (diff) | |
download | xmlgraphics-fop-67a0898e6cdfbd0fe4079f1d38e8d5aa4befe8cd.tar.gz xmlgraphics-fop-67a0898e6cdfbd0fe4079f1d38e8d5aa4befe8cd.zip |
Convenience method for accessing inline-progression padding and border extents.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198258 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-x | src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java b/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java index a3564c7aa..6bc09a7f7 100755 --- a/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java +++ b/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java @@ -1,5 +1,5 @@ /* - * Copyright 2004 The Apache Software Foundation. + * Copyright 2004-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -203,6 +203,19 @@ public class CommonBorderPaddingBackground implements Cloneable { } /** + * Return all the border and padding width in the inline progression + * dimension. + * @param bDiscard the discard flag. + * @return all the padding and border width. + */ + public int getIPPaddingAndBorder(boolean bDiscard) { + return getPaddingStart(bDiscard) + + getPaddingEnd(bDiscard) + + getBorderStartWidth(bDiscard) + + getBorderEndWidth(bDiscard); + } + + /** * Return all the border and padding height in the block progression * dimension. * @param bDiscard the discard flag. |