Browse Source

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
tags/Defoe_export
Peter Bernard West 20 years ago
parent
commit
f4f0d630b3
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      src/java/org/apache/fop/area/ContentRectangle.java

+ 17
- 0
src/java/org/apache/fop/area/ContentRectangle.java View 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

Loading…
Cancel
Save