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/07 08:48:36 UTC
cvs commit: xml-fop/src/java/org/apache/fop/layoutmgr BreakPoss.java
jeremias 2005/01/06 23:48:36
Modified: src/java/org/apache/fop/layoutmgr BreakPoss.java
Log:
toString() for easier debugging.
Revision Changes Path
1.6 +20 -1 xml-fop/src/java/org/apache/fop/layoutmgr/BreakPoss.java
Index: BreakPoss.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/BreakPoss.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- BreakPoss.java 21 Mar 2004 12:03:08 -0000 1.5
+++ BreakPoss.java 7 Jan 2005 07:48:36 -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.
@@ -258,5 +258,24 @@
*/
public void setMiddle(int t) {
middle = t;
+ }
+
+ /** @see java.lang.Object#toString() */
+ public String toString() {
+ StringBuffer sb = new StringBuffer("BreakPoss");
+ if (isFirstArea()) {
+ sb.append(", first area");
+ }
+ if (isLastArea()) {
+ sb.append(", last area");
+ }
+ if (isForcedBreak()) {
+ sb.append(", forced break");
+ }
+ sb.append(", stackSize={");
+ sb.append(stackSize);
+ sb.append("}, pos=");
+ sb.append(position);
+ return sb.toString();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org