aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/FObj.java
diff options
context:
space:
mode:
authorjtauber <jtauber@unknown>1999-11-16 14:21:50 +0000
committerjtauber <jtauber@unknown>1999-11-16 14:21:50 +0000
commitc52d0e5d3b95f2b97090cf9b431c3b8f02b1702a (patch)
treeac57cbe83e22156e829c0d05b89c2c0ec8cd040a /src/org/apache/fop/fo/FObj.java
parent63df53dddc94142221ed81aa8b73b02a421b2ba1 (diff)
downloadxmlgraphics-fop-c52d0e5d3b95f2b97090cf9b431c3b8f02b1702a.tar.gz
xmlgraphics-fop-c52d0e5d3b95f2b97090cf9b431c3b8f02b1702a.zip
PR:
Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193223 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo/FObj.java')
-rw-r--r--src/org/apache/fop/fo/FObj.java63
1 files changed, 60 insertions, 3 deletions
diff --git a/src/org/apache/fop/fo/FObj.java b/src/org/apache/fop/fo/FObj.java
index 7454d9ab5..73aaddaae 100644
--- a/src/org/apache/fop/fo/FObj.java
+++ b/src/org/apache/fop/fo/FObj.java
@@ -48,60 +48,117 @@
Software Foundation, please see <http://www.apache.org/>.
*/
-package org.apache.xml.fop.fo;
+package org.apache.fop.fo;
+
+
// FOP
-import org.apache.xml.fop.layout.Area;
-import org.apache.xml.fop.apps.FOPException;
+
+import org.apache.fop.layout.Area;
+
+import org.apache.fop.apps.FOPException;
+
+
// Java
+
import java.util.Hashtable;
+
import java.util.Enumeration;
+
+
/**
+
* base class for representation of formatting objects and their processing
+
*/
+
public class FObj extends FONode {
+
+
public static class Maker {
+
public FObj make(FObj parent, PropertyList propertyList)
+
throws FOPException {
+
return new FObj(parent, propertyList);
+
}
+
}
+
+
public static Maker maker() {
+
return new Maker();
+
}
+
+
protected PropertyList properties;
+
protected String name;
+
+
protected FObj(FObj parent, PropertyList propertyList) {
+
super(parent);
+
this.properties = propertyList;
+
this.name = "default FO";
+
}
+
+
protected void addCharacters(char data[], int start, int length) {
+
// ignore
+
}
+
+
public int layout(Area area) throws FOPException {
+
// should always be overridden
+
return OK;
+
}
+
+
public String getName() {
+
return this.name;
+
}
+
+
protected void start() {
+
// do nothing by default
+
}
+
+
protected void end() {
+
// do nothing by default
+
}
+
}
+
+