]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
move fo/flow/Character.getInlineArea() to layoutmgr/AddLMVisitor.getCharacterInlineArea()
authorWilliam Victor Mote <vmote@apache.org>
Sun, 24 Aug 2003 18:52:19 +0000 (18:52 +0000)
committerWilliam Victor Mote <vmote@apache.org>
Sun, 24 Aug 2003 18:52:19 +0000 (18:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196833 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/flow/Character.java
src/java/org/apache/fop/layoutmgr/AddLMVisitor.java

index 12a21e02279cad0cf6d27d5dfbe110e3a1fb9fed..67149586b7a969dd71c44fd204c757b4e1f67641 100644 (file)
@@ -94,17 +94,6 @@ public class Character extends FObj {
         super(parent);
     }
 
-    public InlineArea getInlineArea() {
-        String str = this.properties.get("character").getString();
-        if (str.length() == 1) {
-            org.apache.fop.area.inline.Character ch =
-              new org.apache.fop.area.inline.Character(
-                str.charAt(0));
-            return ch;
-        }
-        return null;
-    }
-
     private void setup() throws FOPException {
 
         // Common Aural Properties
index bb40e9bd6b9c1f95e5e16ea2b0373097363d57b9..85f72ee1b4c8d937d5f4bc51a078cfcc57e12a7c 100644 (file)
@@ -370,7 +370,7 @@ public class AddLMVisitor extends FOTreeVisitor {
      }
 
      public void serveVisitor(Character node) {
-         InlineArea inline = node.getInlineArea();
+         InlineArea inline = getCharacterInlineArea(node);
          if (inline != null) {
              LeafNodeLayoutManager lm = new LeafNodeLayoutManager();
              lm.setUserAgent(node.getUserAgent());
@@ -380,6 +380,17 @@ public class AddLMVisitor extends FOTreeVisitor {
          }
      }
 
+     public InlineArea getCharacterInlineArea(Character node) {
+         String str = node.properties.get("character").getString();
+         if (str.length() == 1) {
+             org.apache.fop.area.inline.Character ch =
+               new org.apache.fop.area.inline.Character(
+                 str.charAt(0));
+             return ch;
+         }
+         return null;
+     }
+
      /**
       * This adds a leafnode layout manager that deals with the
       * created viewport/image area.