From a4357576df71b14de8356c2103d7715db260a38e Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Wed, 12 Jan 2005 11:50:31 +0000 Subject: 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 --- src/java/org/apache/fop/area/Area.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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(); + } } -- cgit v1.2.3