aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-01-12 11:55:57 +0000
committerJeremias Maerki <jeremias@apache.org>2005-01-12 11:55:57 +0000
commit1375058131ec99cbb43b988d0da6e6280acf2aa1 (patch)
tree47462b8e17830470d2da76e85b071abbde0e20d6 /src
parent1cc0d9d291d290af66c6c3fca15847833fabc766 (diff)
downloadxmlgraphics-fop-1375058131ec99cbb43b988d0da6e6280acf2aa1.tar.gz
xmlgraphics-fop-1375058131ec99cbb43b988d0da6e6280acf2aa1.zip
Provide public access to width/height.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198257 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/fo/flow/BlockContainer.java22
1 files changed, 16 insertions, 6 deletions
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()