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/04/05 17:37:56 UTC
cvs commit: xml-fop/src/java/org/apache/fop/layoutmgr NonLeafPosition.java Position.java
jeremias 2005/04/05 08:37:56
Modified: src/java/org/apache/fop/layoutmgr Tag:
Temp_KnuthStylePageBreaking NonLeafPosition.java
Position.java
Log:
toString() methods for debugging
Revision Changes Path
No revision
No revision
1.3.2.1 +14 -1 xml-fop/src/java/org/apache/fop/layoutmgr/NonLeafPosition.java
Index: NonLeafPosition.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/NonLeafPosition.java,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -r1.3 -r1.3.2.1
--- NonLeafPosition.java 21 Mar 2004 12:03:08 -0000 1.3
+++ NonLeafPosition.java 5 Apr 2005 15:37:56 -0000 1.3.2.1
@@ -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.
@@ -30,5 +30,18 @@
public Position getPosition() {
return subPos;
}
+
+ /** @see java.lang.Object#toString() */
+ public String toString() {
+ StringBuffer sb = new StringBuffer();
+ sb.append("NonLeafPos(");
+ if (getPosition() != null) {
+ sb.append(getPosition().toString());
+ } else {
+ sb.append("null");
+ }
+ sb.append(")");
+ return sb.toString();
+ }
}
1.3.2.1 +14 -1 xml-fop/src/java/org/apache/fop/layoutmgr/Position.java
Index: Position.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/Position.java,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -r1.3 -r1.3.2.1
--- Position.java 21 Mar 2004 12:03:08 -0000 1.3
+++ Position.java 5 Apr 2005 15:37:56 -0000 1.3.2.1
@@ -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.
@@ -37,5 +37,18 @@
public Position getPosition() {
return null;
}
+
+
+ /** @see java.lang.Object#toString() */
+ public String toString() {
+ StringBuffer sb = new StringBuffer();
+ sb.append("Position");
+ if (getLM() != null) {
+ sb.append(" {");
+ sb.append(getLM());
+ sb.append("}");
+ }
+ return sb.toString();
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org