diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2008-06-30 14:01:39 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2008-06-30 14:01:39 +0000 |
commit | 61cfd2dc54ed5129eac545dda8f0c597a1350ad9 (patch) | |
tree | 017ff9b9a42b8389b896c05af1d2e7f600eccce6 /src/java/org/apache/fop/area | |
parent | 02c81a8d408816cc27bcd15dbe02f6a2eaffbd88 (diff) | |
download | xmlgraphics-fop-61cfd2dc54ed5129eac545dda8f0c597a1350ad9.tar.gz xmlgraphics-fop-61cfd2dc54ed5129eac545dda8f0c597a1350ad9.zip |
Added toString() and corrected javadoc and checkstyle.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@672773 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/area')
-rw-r--r-- | src/java/org/apache/fop/area/inline/TextArea.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/area/inline/TextArea.java b/src/java/org/apache/fop/area/inline/TextArea.java index 703d6a436..fc7463af0 100644 --- a/src/java/org/apache/fop/area/inline/TextArea.java +++ b/src/java/org/apache/fop/area/inline/TextArea.java @@ -63,6 +63,7 @@ public class TextArea extends AbstractTextArea { * * @param word the word string * @param offset the offset for the next area + * @param letterAdjust the letter adjustment array (may be null) */ public void addWord(String word, int offset, int[] letterAdjust) { WordArea wordArea = new WordArea(word, offset, letterAdjust); @@ -98,7 +99,7 @@ public class TextArea extends AbstractTextArea { StringBuffer text = new StringBuffer(); InlineArea child; // assemble the text - for (int i = 0; i < inlines.size(); i ++) { + for (int i = 0; i < inlines.size(); i++) { child = (InlineArea) inlines.get(i); if (child instanceof WordArea) { text.append(((WordArea) child).getWord()); @@ -109,5 +110,9 @@ public class TextArea extends AbstractTextArea { return text.toString(); } + /** {@inheritDoc} */ + public String toString() { + return "TextArea{text=" + getText() + "}"; + } } |