diff options
author | Keiron Liddle <keiron@apache.org> | 2001-11-02 07:45:18 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-11-02 07:45:18 +0000 |
commit | 4cf83fe1e5dab96e2e348877b0e43d8abdc6c0d9 (patch) | |
tree | 7775bd735536527bca329a5a35bc3486e441f35b /src/org/apache/fop/area/inline | |
parent | caeb7b6fb44928f710a272d4495a687bd3e353e2 (diff) | |
download | xmlgraphics-fop-4cf83fe1e5dab96e2e348877b0e43d8abdc6c0d9.tar.gz xmlgraphics-fop-4cf83fe1e5dab96e2e348877b0e43d8abdc6c0d9.zip |
svg renderer now basically works, pages, text, leader, svg
some other misc updates to areas
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194534 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/area/inline')
-rw-r--r-- | src/org/apache/fop/area/inline/Container.java | 9 | ||||
-rw-r--r-- | src/org/apache/fop/area/inline/InlineArea.java | 8 | ||||
-rw-r--r-- | src/org/apache/fop/area/inline/Word.java | 8 |
3 files changed, 24 insertions, 1 deletions
diff --git a/src/org/apache/fop/area/inline/Container.java b/src/org/apache/fop/area/inline/Container.java index 76c987e21..daf347fff 100644 --- a/src/org/apache/fop/area/inline/Container.java +++ b/src/org/apache/fop/area/inline/Container.java @@ -14,10 +14,13 @@ import org.apache.fop.render.Renderer; import java.util.List; import java.util.ArrayList; +// this is an inline area that can have blocks as children public class Container extends Area { ArrayList blocks = new ArrayList(); + int width; - // this is an inline area that can have blocks as children + public Container() { + } public void render(Renderer renderer) { renderer.renderContainer(this); @@ -31,4 +34,8 @@ public class Container extends Area { return blocks; } + public int getWidth() { + return width; + } + } diff --git a/src/org/apache/fop/area/inline/InlineArea.java b/src/org/apache/fop/area/inline/InlineArea.java index aa229316f..d688ae038 100644 --- a/src/org/apache/fop/area/inline/InlineArea.java +++ b/src/org/apache/fop/area/inline/InlineArea.java @@ -45,6 +45,14 @@ public class InlineArea extends Area { return width; } + public void setOffset(int v) { + verticalPosition = v; + } + + public int getOffset() { + return verticalPosition; + } + public void addProperty(Property prop) { if (props == null) { props = new ArrayList(); diff --git a/src/org/apache/fop/area/inline/Word.java b/src/org/apache/fop/area/inline/Word.java index 070af40ff..51b009b28 100644 --- a/src/org/apache/fop/area/inline/Word.java +++ b/src/org/apache/fop/area/inline/Word.java @@ -17,4 +17,12 @@ public class Word extends InlineArea { public void render(Renderer renderer) { renderer.renderWord(this); } + + public void setWord(String w) { + word = w; + } + + public String getWord() { + return word; + } } |