diff options
author | Jeremias Maerki <jeremias@apache.org> | 2011-03-18 14:59:34 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2011-03-18 14:59:34 +0000 |
commit | c5e6d82c6c6497e17b03a45de2a8883814ef2421 (patch) | |
tree | 591c10507e0eb8922354545820cc5a405e9999c0 | |
parent | b8ac4207fe239a3433870691c79018b0137a30f6 (diff) | |
download | xmlgraphics-fop-c5e6d82c6c6497e17b03a45de2a8883814ef2421.tar.gz xmlgraphics-fop-c5e6d82c6c6497e17b03a45de2a8883814ef2421.zip |
toString() method for BFEntry.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1082940 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/fonts/BFEntry.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fonts/BFEntry.java b/src/java/org/apache/fop/fonts/BFEntry.java index 4e0b169fd..e04b021e4 100644 --- a/src/java/org/apache/fop/fonts/BFEntry.java +++ b/src/java/org/apache/fop/fonts/BFEntry.java @@ -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(); + } + } |