From 67a0898e6cdfbd0fe4079f1d38e8d5aa4befe8cd Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Wed, 12 Jan 2005 11:57:02 +0000 Subject: [PATCH] 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 --- .../properties/CommonBorderPaddingBackground.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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. @@ -202,6 +202,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. -- 2.39.5