diff options
author | Karen Lease <klease@apache.org> | 2001-11-09 22:04:58 +0000 |
---|---|---|
committer | Karen Lease <klease@apache.org> | 2001-11-09 22:04:58 +0000 |
commit | 8c8375992e530847a070926283424803ed8a16ef (patch) | |
tree | b789cc0275c1d9274fbe6c9378e7cdc7214fe1f6 /src/org/apache/fop/fo | |
parent | 83b0a60b919627a1b8fd45789c2f34e73328433c (diff) | |
download | xmlgraphics-fop-8c8375992e530847a070926283424803ed8a16ef.tar.gz xmlgraphics-fop-8c8375992e530847a070926283424803ed8a16ef.zip |
Add layout manager related methods
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194544 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo')
-rw-r--r-- | src/org/apache/fop/fo/FObj.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/org/apache/fop/fo/FObj.java b/src/org/apache/fop/fo/FObj.java index 4c5cb910f..dc74a8a01 100644 --- a/src/org/apache/fop/fo/FObj.java +++ b/src/org/apache/fop/fo/FObj.java @@ -12,6 +12,7 @@ import org.apache.fop.layout.Area; import org.apache.fop.layout.AreaClass; import org.apache.fop.apps.FOPException; import org.apache.fop.datatypes.IDReferences; +import org.apache.fop.layoutmgr.LayoutManager; import org.apache.fop.fo.properties.FOPropertyMapping; import org.apache.fop.layout.Area; import org.apache.fop.layout.AreaClass; @@ -19,6 +20,8 @@ import org.apache.fop.layout.LinkSet; import org.apache.fop.system.BufferManager; import org.apache.fop.fo.flow.Marker; +// Java +import java.util.Iterator; import org.xml.sax.Attributes; import java.util.Iterator; @@ -187,6 +190,19 @@ public class FObj extends FONode { this.properties.setWritingMode(p.getProperty("writing-mode").getEnum()); } + /** + * Return a LayoutManager responsible for laying out this FObj's content. + * Must override in subclasses if their content can be laid out. + */ + public LayoutManager getLayoutManager() { + return null; + } + + + public Iterator getChildren() { + return children.iterator(); + } + public void setIsInTableCell() { this.isInTableCell = true; // made recursive by Eric Schaeffer |