diff options
author | Glen Mazza <gmazza@apache.org> | 2003-10-28 04:22:14 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2003-10-28 04:22:14 +0000 |
commit | 153b66c5d6b402f88f10101614c73b2fe188618d (patch) | |
tree | 92242a16295065a0ad5b596bc894759dd95bc8c9 /src/java/org/apache/fop/render/AbstractRenderer.java | |
parent | a25886fa6eb7c702e71c46e2921e57c449344ee2 (diff) | |
download | xmlgraphics-fop-153b66c5d6b402f88f10101614c73b2fe188618d.tar.gz xmlgraphics-fop-153b66c5d6b402f88f10101614c73b2fe188618d.zip |
renamed org.apache.fop.area.inline.Word to .TextArea (.Text not used to avoid
conflicts with org.w3c.dom.Text)
changed Renderer.renderWord() method to renderText().
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196973 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/AbstractRenderer.java')
-rw-r--r-- | src/java/org/apache/fop/render/AbstractRenderer.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/java/org/apache/fop/render/AbstractRenderer.java b/src/java/org/apache/fop/render/AbstractRenderer.java index 05f72e9b8..d15895319 100644 --- a/src/java/org/apache/fop/render/AbstractRenderer.java +++ b/src/java/org/apache/fop/render/AbstractRenderer.java @@ -90,7 +90,7 @@ import org.apache.fop.area.inline.InlineParent; import org.apache.fop.area.inline.Leader; import org.apache.fop.area.inline.Space; import org.apache.fop.area.inline.Viewport; -import org.apache.fop.area.inline.Word; +import org.apache.fop.area.inline.TextArea; import org.apache.fop.area.inline.Character; import org.apache.fop.apps.FOUserAgent; import org.apache.fop.fo.FOTreeControl; @@ -260,8 +260,8 @@ public abstract class AbstractRenderer extends AbstractLogEnabled InlineArea inline = (InlineArea) children.get(count); if (inline instanceof Character) { sb.append(((Character) inline).getChar()); - } else if (inline instanceof Word) { - sb.append(((Word) inline).getWord()); + } else if (inline instanceof TextArea) { + sb.append(((TextArea) inline).getTextArea()); } else if (inline instanceof InlineParent) { sb.append(convertToString( ((InlineParent) inline).getChildAreas())); @@ -653,8 +653,8 @@ public abstract class AbstractRenderer extends AbstractLogEnabled } /** @see org.apache.fop.render.Renderer */ - public void renderWord(Word word) { - currentBlockIPPosition += word.getWidth(); + public void renderText(TextArea text) { + currentBlockIPPosition += text.getWidth(); } /** @see org.apache.fop.render.Renderer */ @@ -773,15 +773,15 @@ public abstract class AbstractRenderer extends AbstractLogEnabled } /** - * Render the specified Word. + * Render the specified Text. * Required by InlineAreaVisitor interface, which is used to determine which * InlineArea subclass should be rendered. * - * @param area The Word area to be rendered + * @param area The Text area to be rendered * @see org.apache.fop.area.inline.InlineAreaVisitor */ - public void serveVisitor(Word area) { - renderWord(area); + public void serveVisitor(TextArea area) { + renderText(area); } /** |