aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-01-12 11:50:31 +0000
committerJeremias Maerki <jeremias@apache.org>2005-01-12 11:50:31 +0000
commita4357576df71b14de8356c2103d7715db260a38e (patch)
treebb526c96c0aaf1d088cd19517d92e7dcee51a99c /src/java
parent7d138fe6b45908b0b6e3a6a2146e803d038e700f (diff)
downloadxmlgraphics-fop-a4357576df71b14de8356c2103d7715db260a38e.tar.gz
xmlgraphics-fop-a4357576df71b14de8356c2103d7715db260a38e.zip
toString() method extended to provide helpful info.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198255 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/area/Area.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/area/Area.java b/src/java/org/apache/fop/area/Area.java
index 4309295b2..2d32baedc 100644
--- a/src/java/org/apache/fop/area/Area.java
+++ b/src/java/org/apache/fop/area/Area.java
@@ -1,5 +1,5 @@
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -368,5 +368,13 @@ public class Area implements Serializable {
+ " could not be converted to an integer");
}
}
+
+ public String toString() {
+ StringBuffer sb = new StringBuffer(super.toString());
+ sb.append(" {ipd=").append(Integer.toString(getIPD()));
+ sb.append(", bpd=").append(Integer.toString(getBPD()));
+ sb.append("}");
+ return sb.toString();
+ }
}