You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/01/12 12:50:32 UTC
cvs commit: xml-fop/src/java/org/apache/fop/area Area.java
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: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org