You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FObj.java 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package org.apache.xml.fop.fo;
  2. // FOP
  3. import org.apache.xml.fop.layout.Area;
  4. import org.apache.xml.fop.apps.FOPException;
  5. // Java
  6. import java.util.Hashtable;
  7. import java.util.Enumeration;
  8. /**
  9. * base class for representation of formatting objects and their processing
  10. */
  11. public class FObj extends FONode {
  12. public static class Maker {
  13. public FObj make(FObj parent, PropertyList propertyList)
  14. throws FOPException {
  15. return new FObj(parent, propertyList);
  16. }
  17. }
  18. public static Maker maker() {
  19. return new Maker();
  20. }
  21. protected PropertyList properties;
  22. protected String name;
  23. protected FObj(FObj parent, PropertyList propertyList) {
  24. super(parent);
  25. this.properties = propertyList;
  26. this.name = "default FO";
  27. }
  28. protected void addCharacters(char data[], int start, int length) {
  29. // ignore
  30. }
  31. public int layout(Area area) throws FOPException {
  32. // should always be overridden
  33. return OK;
  34. }
  35. public String getName() {
  36. return this.name;
  37. }
  38. protected void start() {
  39. // do nothing by default
  40. }
  41. protected void end() {
  42. // do nothing by default
  43. }
  44. }