You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by pb...@apache.org on 2004/05/30 18:19:36 UTC
cvs commit: xml-fop/src/java/org/apache/fop/area BlockArea.java
pbwest 2004/05/30 09:19:36
Modified: src/java/org/apache/fop/area Tag: FOP_0-20-0_Alt-Design
BlockArea.java
Log:
Added pageSpace field, acceptLayout(Rectangle2D),
pageSpaceRequest(AreaRange) and adjustedRequest(AreaRange)
Revision Changes Path
No revision
No revision
1.1.2.6 +41 -2 xml-fop/src/java/org/apache/fop/area/Attic/BlockArea.java
Index: BlockArea.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/area/Attic/BlockArea.java,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -r1.1.2.5 -r1.1.2.6
--- BlockArea.java 28 Feb 2004 02:06:44 -0000 1.1.2.5
+++ BlockArea.java 30 May 2004 16:19:36 -0000 1.1.2.6
@@ -19,6 +19,8 @@
*/
package org.apache.fop.area;
+import java.awt.geom.Rectangle2D;
+
import org.apache.fop.datastructs.Node;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.flow.FoPageSequence;
@@ -39,6 +41,43 @@
Object sync) {
super(pageSeq, generatedBy, parent, sync);
// TODO Auto-generated constructor stub
+ }
+
+ /** The page space allocation for layout of the block */
+ private Rectangle2D pageSpace;
+
+// /**
+// * Receives an allocation of page space from area parent
+// * @param pageSpace
+// */
+// public void receivePageSpace(Rectangle2D pageSpace) {
+// this.pageSpace = pageSpace;
+// }
+
+ /**
+ * An allocation of page space has been requested by the currently active
+ * child area. <i>N.B.</i> <code>reference-area</code>s must override
+ * this method to apply an <code>AffineTransform</code> to areas passed
+ * up and returned.
+ * @return
+ */
+ public Rectangle2D pageSpaceRequest(AreaRange spaceRange) {
+ AreaRange request = adjustedRequest(spaceRange);
+ return null;
+ }
+
+ private AreaRange adjustedRequest(AreaRange request) {
+ // TODO Adjust the request for padding, borders and margins on this
+ // block
+ // For now, do nothing.
+ return request;
+ }
+ /**
+ * Accepts a laid-out block from an area child
+ * @param layout
+ */
+ public void acceptLayout(Rectangle2D layout) {
+
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org