]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
changed inline references to layout.inline
authorKeiron Liddle <keiron@apache.org>
Wed, 24 Jan 2001 00:31:39 +0000 (00:31 +0000)
committerKeiron Liddle <keiron@apache.org>
Wed, 24 Jan 2001 00:31:39 +0000 (00:31 +0000)
also renderers now render a word area

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193979 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/flow/InstreamForeignObject.java
src/org/apache/fop/fo/flow/Leader.java
src/org/apache/fop/layout/LineArea.java
src/org/apache/fop/render/Renderer.java
src/org/apache/fop/render/awt/AWTRenderer.java
src/org/apache/fop/render/pdf/PDFRenderer.java
src/org/apache/fop/render/xml/XMLRenderer.java
src/org/apache/fop/svg/SVG.java

index 1a8a19ca71b07e0d8a931a492c852c237011db7f..a980d7ef9f85267e02b8c01926119b8601d31e17 100644 (file)
@@ -55,6 +55,7 @@ package org.apache.fop.fo.flow;
 import org.apache.fop.fo.*;
 import org.apache.fop.fo.properties.*;
 import org.apache.fop.layout.*;
+import org.apache.fop.layout.inline.*;
 import org.apache.fop.layout.BlockArea;
 import org.apache.fop.layout.FontState;
 import org.apache.fop.apps.FOPException;
index f5792d024d691af65692507db16f044d4bdb3a07..297c82b187b7b49d685889894502a9845220e431 100644 (file)
@@ -56,7 +56,7 @@ import org.apache.fop.fo.properties.*;
 import org.apache.fop.datatypes.*;
 import org.apache.fop.layout.Area;
 import org.apache.fop.layout.BlockArea;
-import org.apache.fop.layout.LeaderArea;
+import org.apache.fop.layout.inline.LeaderArea;
 import org.apache.fop.layout.FontState;
 import org.apache.fop.apps.FOPException;
 import org.apache.fop.messaging.MessageHandler;
index 9aca8b1eee1a92fd146a890bc69d1fa88bc217bf..9b20ed73b1bad53ed8749022f04364cf408ef080 100644 (file)
@@ -54,7 +54,7 @@ package org.apache.fop.layout;
 //fop
 import org.apache.fop.render.Renderer;
 import org.apache.fop.messaging.MessageHandler;
-import org.apache.fop.layout.LeaderArea;
+import org.apache.fop.layout.inline.*;
 import org.apache.fop.datatypes.IDNode;
 import org.apache.fop.fo.properties.WrapOption;
 import org.apache.fop.fo.properties.WhiteSpaceCollapse;
@@ -289,7 +289,7 @@ public class LineArea extends Area {
                     // add the current word
 
                     if (wordLength > 0) {
-                        InlineArea ia = new InlineArea(currentFontState,
+                        WordArea ia = new WordArea(currentFontState,
                                                        this.red, this.green, this.blue,
                                                        new String(data, wordStart,
                                                                   wordLength), wordWidth);
@@ -407,7 +407,7 @@ public class LineArea extends Area {
 
         if (prev == TEXT) {
 
-            InlineArea pia = new InlineArea(currentFontState, this.red,
+            WordArea pia = new WordArea(currentFontState, this.red,
                                             this.green, this.blue,
                                             new String(data, wordStart, wordLength), wordWidth);
 
@@ -441,7 +441,7 @@ public class LineArea extends Area {
                           int leaderLengthOptimum, int leaderLengthMaximum,
                           int ruleStyle, int ruleThickness, int leaderPatternWidth,
                           int leaderAlignment) {
-        InlineArea leaderPatternArea;
+        WordArea leaderPatternArea;
         int leaderLength;
         int remainingWidth =
           this.getContentWidth() - this.getCurrentXPosition();
@@ -504,7 +504,7 @@ public class LineArea extends Area {
                       new InlineSpace(leaderPatternWidth -
                                       this.currentFontState.width(46), false);
                     leaderPatternArea =
-                      new InlineArea(currentFontState, this.red,
+                      new WordArea(currentFontState, this.red,
                                      this.green, this.blue, new String ("."),
                                      this.currentFontState.width(46));
                     int dotsFactor = (int) Math.floor (
@@ -697,8 +697,8 @@ public class LineArea extends Area {
         for (int i = 0; i < factor; i ++) {
             leaderChars[i] = fillChar;
         }
-        InlineArea leaderPatternArea =
-          new InlineArea(currentFontState, this.red, this.green,
+        WordArea leaderPatternArea =
+          new WordArea(currentFontState, this.red, this.green,
                          this.blue, new String (leaderChars), leaderLength);
         return leaderPatternArea;
     }
@@ -861,7 +861,7 @@ public class LineArea extends Area {
 
     /** adds a single character to the line area tree*/ 
     public int addCharacter (char data, LinkSet ls, boolean ul) {
-        InlineArea ia = null;
+        WordArea ia = null;
         int remainingWidth =
           this.getContentWidth() - this.getCurrentXPosition();
         int width = this.currentFontState.width(data);
@@ -874,7 +874,7 @@ public class LineArea extends Area {
             return org.apache.fop.fo.flow.Character.OK;
           }
           //create new InlineArea
-          ia = new InlineArea(currentFontState,
+          ia = new WordArea(currentFontState,
                                          this.red, this.green, this.blue,
                                          new Character(data).toString(),width);
           ia.setUnderlined(ul);
@@ -894,18 +894,18 @@ public class LineArea extends Area {
     /** adds a InlineArea containing the String startChar+wordBuf to the line area children.  */
     private void addWord (char startChar, StringBuffer wordBuf) {
         String word = wordBuf.toString();
-        InlineArea hia;
+        WordArea hia;
         int startCharWidth = this.currentFontState.width(startChar);
         if (startChar == ' ') {
             this.addChild(new InlineSpace(startCharWidth));
         } else {
-            hia = new InlineArea(currentFontState,
+            hia = new WordArea(currentFontState,
                                  this.red, this.green, this.blue,
                                  new Character(startChar).toString(),1);
             this.addChild(hia);
         }
         int wordWidth = this.getWordWidth(word);
-        hia = new InlineArea(currentFontState,
+        hia = new WordArea(currentFontState,
                                  this.red, this.green, this.blue,
                                  word,word.length());
         this.addChild(hia);
index fb3bff7a3c6bbac76ad30513390325a8c2047a0e..5fcf18d16947115d69cc13e2d7090a5983d13248 100644 (file)
@@ -55,6 +55,7 @@ import org.apache.fop.dom.svg.SVGArea;
 import org.apache.fop.image.ImageArea;
 import org.apache.fop.apps.FOPException;
 import org.apache.fop.layout.*;
+import org.apache.fop.layout.inline.*;
 
 // Java
 import java.io.OutputStream;
@@ -102,7 +103,7 @@ public interface Renderer {
     public void renderImageArea(ImageArea area);
 
     /** render the given inline area */
-    public void renderInlineArea(InlineArea area);
+    public void renderWordArea(WordArea area);
 
     /** render the given inline space */
     public void renderInlineSpace(InlineSpace space);
index 1d6fd682f2a9578cb8b84f2626a00b281a054c6f..52b90a7b12095df5b7a0dbb695f9e784a535d08b 100644 (file)
@@ -10,6 +10,7 @@ package org.apache.fop.render.awt;
  */
 
 import org.apache.fop.layout.*;
+import org.apache.fop.layout.inline.*;
 import org.apache.fop.messaging.MessageHandler;
 import org.apache.fop.datatypes.*;
 import org.apache.fop.image.*;
@@ -542,7 +543,7 @@ public class AWTRenderer implements Renderer, Printable, Pageable {
 
     }
 
-    public void renderInlineArea(InlineArea area) {
+    public void renderWordArea(WordArea area) {
         char ch;
         StringBuffer pdf = new StringBuffer();
 
index 27541546228c42fd3162c6fc4d43516201ad3bc0..0f29c65e67d82c66ee97b36090152cf5db65580f 100644 (file)
@@ -59,6 +59,7 @@ import org.apache.fop.image.FopImage;
 import org.apache.fop.apps.FOPException;
 import org.apache.fop.fo.properties.*;
 import org.apache.fop.layout.*;
+import org.apache.fop.layout.inline.*;
 import org.apache.fop.datatypes.*;
 import org.apache.fop.svg.PathPoint;
 import org.apache.fop.pdf.*;
@@ -565,7 +566,7 @@ public class PDFRenderer implements Renderer {
        *
        * @param area inline area to render
        */
-    public void renderInlineArea(InlineArea area) {
+    public void renderWordArea(WordArea area) {
         char ch;
         StringBuffer pdf = new StringBuffer();
 
index ff8e2defaa2ba17f6c499cd2235fe6bf4e409180..767ccab0412af79a9b7353951ff98db994b70d70 100644 (file)
@@ -58,6 +58,7 @@ import org.apache.fop.dom.svg.SVGArea;
 import org.apache.fop.render.Renderer;
 import org.apache.fop.image.ImageArea;
 import org.apache.fop.layout.*;
+import org.apache.fop.layout.inline.*;
 import org.apache.fop.pdf.*;
 import org.apache.fop.fo.properties.LeaderPattern;
 
@@ -279,7 +280,7 @@ public class XMLRenderer implements Renderer {
      *
      * @param area the area to render
      */
-    public void renderInlineArea(InlineArea area) {
+    public void renderWordArea(WordArea area) {
        String fontWeight = area.getFontState().getFontWeight();
        StringBuffer sb = new StringBuffer();
        String s = area.getText();
index bbf2d3634fd3cbed0b8575974709bcc2dd36b7d2..b67b8c04eee7a1d3c278ae80511f386ecccb8abe 100644 (file)
@@ -55,9 +55,9 @@ package org.apache.fop.svg;
 import org.apache.fop.fo.*;
 import org.apache.fop.fo.properties.*;
 import org.apache.fop.layout.Area;
-import org.apache.fop.layout.ForeignObjectArea;
 import org.apache.fop.layout.FontState;
 import org.apache.fop.apps.FOPException;
+import org.apache.fop.layout.inline.*;
 
 import org.apache.fop.dom.svg.*;
 import org.w3c.dom.svg.*;