From: Jeremias Maerki Date: Wed, 12 Jan 2005 11:55:57 +0000 (+0000) Subject: Provide public access to width/height. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~250 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1375058131ec99cbb43b988d0da6e6280acf2aa1;p=xmlgraphics-fop.git Provide public access to width/height. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198257 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/flow/BlockContainer.java b/src/java/org/apache/fop/fo/flow/BlockContainer.java index cc44c9d13..3b2338111 100644 --- a/src/java/org/apache/fop/fo/flow/BlockContainer.java +++ b/src/java/org/apache/fop/fo/flow/BlockContainer.java @@ -1,5 +1,5 @@ /* - * Copyright 1999-2004 The Apache Software Foundation. + * Copyright 1999-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. @@ -18,9 +18,6 @@ package org.apache.fop.fo.flow; -// Java -import java.util.List; - import org.apache.fop.apps.FOPException; import org.apache.fop.datatypes.Length; import org.apache.fop.datatypes.Numeric; @@ -32,7 +29,6 @@ import org.apache.fop.fo.properties.CommonBorderPaddingBackground; import org.apache.fop.fo.properties.CommonMarginBlock; import org.apache.fop.fo.properties.KeepProperty; import org.apache.fop.fo.properties.LengthRangeProperty; -import org.apache.fop.layoutmgr.BlockContainerLayoutManager; /** * Class modelling the fo:block-container object. @@ -183,11 +179,25 @@ public class BlockContainer extends FObj { } /** - * Return the "writing-mode" property. + * @return the "writing-mode" property. */ public int getWritingMode() { return writingMode; } + + /** + * @return the width property + */ + public Length getWidth() { + return width; + } + + /** + * @return the height property + */ + public Length getHeight() { + return height; + } /** * @see org.apache.fop.fo.FObj#getName()