]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Provide public access to width/height.
authorJeremias Maerki <jeremias@apache.org>
Wed, 12 Jan 2005 11:55:57 +0000 (11:55 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 12 Jan 2005 11:55:57 +0000 (11:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198257 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/flow/BlockContainer.java

index cc44c9d13bed5090ef4c90b068ac93e42ae76edb..3b233811114fd311e1cd690b5add1fbc959bad9d 100644 (file)
@@ -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()