jeremias 2005/01/12 03:50:32 Modified: src/java/org/apache/fop/area Area.java Log: toString() method extended to provide helpful info. Revision Changes Path 1.6 +9 -1 xml-fop/src/java/org/apache/fop/area/Area.java Index: Area.java =================================================================== RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/area/Area.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- Area.java 7 Oct 2004 19:47:46 -0000 1.5 +++ Area.java 12 Jan 2005 11:50:31 -0000 1.6 @@ -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. @@ -367,6 +367,14 @@ + oTraitCode.getClass().getName() + " 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(); } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]