Browse Source

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
tags/Root_Temp_KnuthStylePageBreaking
Jeremias Maerki 19 years ago
parent
commit
a4357576df
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      src/java/org/apache/fop/area/Area.java

+ 9
- 1
src/java/org/apache/fop/area/Area.java View File

@@ -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();
}
}


Loading…
Cancel
Save