]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Override getFrameRelative{width,Height} from Area.AreaGeometry
authorPeter Bernard West <pbwest@apache.org>
Sat, 24 Jul 2004 04:26:50 +0000 (04:26 +0000)
committerPeter Bernard West <pbwest@apache.org>
Sat, 24 Jul 2004 04:26:50 +0000 (04:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197820 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/area/ContentRectangle.java

index 59f8824576c68559a2a5163306599dee2a3ebd5a..470f7b778c26bba3d2fecd9680d1b4e5e140bf99 100644 (file)
@@ -121,6 +121,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