summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Bernard West <pbwest@apache.org>2004-07-24 04:26:50 +0000
committerPeter Bernard West <pbwest@apache.org>2004-07-24 04:26:50 +0000
commitf4f0d630b3f1c3e08bbd40b11f09102488eed681 (patch)
tree7af7e96b8ca8e86edbbe7c0d5d88d39a3a65979a
parent076f09060b8671aaf210320da7cbeefd645c743c (diff)
downloadxmlgraphics-fop-f4f0d630b3f1c3e08bbd40b11f09102488eed681.tar.gz
xmlgraphics-fop-f4f0d630b3f1c3e08bbd40b11f09102488eed681.zip
Override getFrameRelative{width,Height} from Area.AreaGeometry
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197820 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/area/ContentRectangle.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/area/ContentRectangle.java b/src/java/org/apache/fop/area/ContentRectangle.java
index 59f882457..470f7b778 100644
--- a/src/java/org/apache/fop/area/ContentRectangle.java
+++ b/src/java/org/apache/fop/area/ContentRectangle.java
@@ -122,6 +122,23 @@ public class ContentRectangle extends AreaGeometry {
}
/**
+ * Gets the width of this <code>AreaGeometry</code> as seen from any
+ * enclosing frame
+ * @return the frame-view width
+ */
+ protected double getFrameRelativeWidth() {
+ return getFrameRelativeDimensions().getWidth();
+ }
+ /**
+ * Gets the height of this <code>AreaGeometry</code> as seen from any
+ * enclosing frame
+ * @return the frame-view height
+ */
+ protected double getFrameRelativeHeight() {
+ return getFrameRelativeDimensions().getHeight();
+ }
+
+ /**
* {@inheritDoc}
* <p>Any registered listeners are notified of the change in the
* dimension.