You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ac...@apache.org on 2008/06/30 16:01:39 UTC

svn commit: r672773 - /xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/area/inline/TextArea.java

Author: acumiskey
Date: Mon Jun 30 07:01:39 2008
New Revision: 672773

URL: http://svn.apache.org/viewvc?rev=672773&view=rev
Log:
Added toString() and corrected javadoc and checkstyle.

Modified:
    xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/area/inline/TextArea.java

Modified: xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/area/inline/TextArea.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/area/inline/TextArea.java?rev=672773&r1=672772&r2=672773&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/area/inline/TextArea.java (original)
+++ xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/area/inline/TextArea.java Mon Jun 30 07:01:39 2008
@@ -63,6 +63,7 @@
      * 
      * @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 @@
         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 @@
         return text.toString();
     }
 
+    /** {@inheritDoc} */
+    public String toString() {
+        return "TextArea{text=" + getText() + "}";
+    }
 }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org