jeremias 2005/01/12 03:57:02 Modified: src/java/org/apache/fop/fo/properties CommonBorderPaddingBackground.java Log: Convenience method for accessing inline-progression padding and border extents. Revision Changes Path 1.7 +15 -2 xml-fop/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java Index: CommonBorderPaddingBackground.java =================================================================== RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- CommonBorderPaddingBackground.java 24 Nov 2004 21:07:29 -0000 1.6 +++ CommonBorderPaddingBackground.java 12 Jan 2005 11:57:02 -0000 1.7 @@ -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 @@ } } + /** + * 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.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]