From 24957c08b9c2820d9ac0ce169086f80217b203f5 Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Tue, 23 Dec 2003 21:53:46 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/area/Trait.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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(); + } + } } -- 2.39.5