]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bug 25692 (patch by Finn Bock)--toString() implementation of Trait.Background class.
authorGlen Mazza <gmazza@apache.org>
Tue, 23 Dec 2003 21:53:46 +0000 (21:53 +0000)
committerGlen Mazza <gmazza@apache.org>
Tue, 23 Dec 2003 21:53:46 +0000 (21:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197052 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/area/Trait.java

index 3cf8ba74ec0019409d9ab8bcbee5d452d40bf6ea..ed1be87736723f69a8668006027f0c49dfbf42b2 100644 (file)
@@ -469,7 +469,23 @@ public class Trait implements Serializable {
             this.vertical = vertical;
         }
 
-    }
+       /**
+         * Return the string for debugging.
+         * @see java.lang.Object#toString()
+         */
+        public String toString() {
+            StringBuffer sb = new StringBuffer();
+            sb.append("color=" + color);
+            if (url != null) {
+                sb.append(",url=");
+                sb.append(url);
+            }
+            sb.append(",repeat=" + repeat);
+            sb.append(",horiz=" + horiz);
+            sb.append(",vertical=" + vertical);
+            return sb.toString();
+        }
 
+    }
 }