xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r1082940 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/BFEntry.java
Date Fri, 18 Mar 2011 14:59:34 GMT
Author: jeremias
Date: Fri Mar 18 14:59:34 2011
New Revision: 1082940

URL: http://svn.apache.org/viewvc?rev=1082940&view=rev
Log:
toString() method for BFEntry.

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/BFEntry.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/BFEntry.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/BFEntry.java?rev=1082940&r1=1082939&r2=1082940&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/BFEntry.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/BFEntry.java Fri Mar 18 14:59:34 2011
@@ -64,4 +64,14 @@ public class BFEntry {
         return glyphStartIndex;
     }
 
+    /** {@inheritDoc} */
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder("BFEntry: ");
+        sb.append("Unicode ").append(getUnicodeStart()).append("..").append(getUnicodeEnd());
+        sb.append(" --> ").append(getGlyphStartIndex()).append("..");
+        sb.append(getGlyphStartIndex() + getUnicodeEnd() - getUnicodeStart());
+        return sb.toString();
+    }
+
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message