From: Glen Mazza Date: Tue, 23 Dec 2003 21:53:46 +0000 (+0000) Subject: Bug 25692 (patch by Finn Bock)--toString() implementation of Trait.Background class. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~967 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=24957c08b9c2820d9ac0ce169086f80217b203f5;p=xmlgraphics-fop.git Bug 25692 (patch by Finn Bock)--toString() implementation of Trait.Background class. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197052 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/area/Trait.java b/src/java/org/apache/fop/area/Trait.java index 3cf8ba74e..ed1be8773 100644 --- a/src/java/org/apache/fop/area/Trait.java +++ b/src/java/org/apache/fop/area/Trait.java @@ -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(); + } + } }