diff options
author | Luca Furini <lfurini@apache.org> | 2005-10-27 14:38:12 +0000 |
---|---|---|
committer | Luca Furini <lfurini@apache.org> | 2005-10-27 14:38:12 +0000 |
commit | 7d01c0732e96ddf3dac732bf177dd0513cd844b1 (patch) | |
tree | d173fd7e662af51745749e675355e698624731ae /src/java/org/apache/fop/area/inline/SpaceArea.java | |
parent | 9a0772f9559bce29a13b5e4b8845320dd07fe740 (diff) | |
download | xmlgraphics-fop-7d01c0732e96ddf3dac732bf177dd0513cd844b1.tar.gz xmlgraphics-fop-7d01c0732e96ddf3dac732bf177dd0513cd844b1.zip |
Moved the text-splitting logic from TextArea to TextLM, as suggested by Manuel and Jeremias.
Some simplification in TextLM#addAreas().
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328882 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/area/inline/SpaceArea.java')
-rw-r--r-- | src/java/org/apache/fop/area/inline/SpaceArea.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/area/inline/SpaceArea.java b/src/java/org/apache/fop/area/inline/SpaceArea.java index 1b5a1ae6e..6ec573107 100644 --- a/src/java/org/apache/fop/area/inline/SpaceArea.java +++ b/src/java/org/apache/fop/area/inline/SpaceArea.java @@ -31,13 +31,22 @@ public class SpaceArea extends InlineArea { * The correction offset for the next area
*/
protected int offset = 0;
+
+ /**
+ * Is this space adjustable?
+ */
+ protected boolean isAdjustable;
/**
- * Create a text inline area
+ * Create a space area
* @param s the space character
+ * @param o the offset for the next area
+ * @param a is this space adjustable?
*/
- public SpaceArea(char s) {
+ public SpaceArea(char s, int o, boolean a) {
space = new String() + s;
+ offset = o;
+ isAdjustable = a;
}
/**
|