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/26 15:54:52 UTC
cvs commit: xml-fop/src/java/org/apache/fop/fo FOText.java
jeremias 2005/01/26 06:54:52
Modified: src/java/org/apache/fop/layoutmgr LeafPosition.java
BreakPoss.java
src/java/org/apache/fop/fo FOText.java
Log:
toString() work
Revision Changes Path
1.4 +9 -1 xml-fop/src/java/org/apache/fop/layoutmgr/LeafPosition.java
Index: LeafPosition.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/LeafPosition.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- LeafPosition.java 21 Mar 2004 12:03:08 -0000 1.3
+++ LeafPosition.java 26 Jan 2005 14:54:52 -0000 1.4
@@ -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,13 @@
public int getLeafPos() {
return iLeafPos;
}
+
+ /** @see java.lang.Object#toString()*/
+ public String toString() {
+ StringBuffer sb = new StringBuffer(super.toString());
+ sb.append(" {pos=").append(getLeafPos());
+ sb.append(", lm=").append(getLM()).append("}");
+ return sb.toString();
+ }
}
1.7 +3 -0 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.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- BreakPoss.java 7 Jan 2005 07:48:36 -0000 1.6
+++ BreakPoss.java 26 Jan 2005 14:54:52 -0000 1.7
@@ -272,6 +272,9 @@
if (isForcedBreak()) {
sb.append(", forced break");
}
+ if (nextBreakOverflows()) {
+ sb.append(", next break overflows");
+ }
sb.append(", stackSize={");
sb.append(stackSize);
sb.append("}, pos=");
1.38 +6 -2 xml-fop/src/java/org/apache/fop/fo/FOText.java
Index: FOText.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/FOText.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- FOText.java 25 Jan 2005 10:55:46 -0000 1.37
+++ FOText.java 26 Jan 2005 14:54:52 -0000 1.38
@@ -19,7 +19,6 @@
package org.apache.fop.fo;
// Java
-import java.util.List;
import java.util.NoSuchElementException;
// FOP
@@ -32,7 +31,6 @@
import org.apache.fop.fo.properties.CommonTextDecoration;
import org.apache.fop.fo.properties.Property;
import org.apache.fop.fo.properties.SpaceProperty;
-import org.apache.fop.layoutmgr.TextLayoutManager;
/**
* A text node (PCDATA) in the formatting object tree.
@@ -577,5 +575,11 @@
public CommonTextDecoration getTextDecoration() {
return textDecoration;
}
+
+ public String toString() {
+ StringBuffer sb = new StringBuffer(super.toString());
+ sb.append(" (").append(ca).append(")");
+ return sb.toString();
+ }
}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org