From ed7c3eeb072cc28a56504bb0a51781d8cdb5f5d7 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Mon, 4 Jul 2011 19:04:08 +0000 Subject: [PATCH] add toString() to BorderCode git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1142761 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/hwpf/usermodel/BorderCode.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java index 55a0cdb9c..fcc9997ab 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java @@ -194,4 +194,32 @@ public final class BorderCode implements Cloneable { _fFrame.setValue(_info2, frame ? 1 : 0); } + @Override + public String toString() + { + StringBuffer buffer = new StringBuffer(); + + buffer.append( "[BRC]\n" ); + + buffer.append( " .dptLineWidth = " ); + buffer.append( " (" ).append( getLineWidth() ).append( " )\n" ); + + buffer.append( " .brcType = " ); + buffer.append( " (" ).append( getBorderType() ).append( " )\n" ); + + buffer.append( " .ico = " ); + buffer.append( " (" ).append( getColor() ).append( " )\n" ); + + buffer.append( " .dptSpace = " ); + buffer.append( " (" ).append( getSpace() ).append( " )\n" ); + + buffer.append( " .fShadow = " ); + buffer.append( " (" ).append( isShadow() ).append( " )\n" ); + + buffer.append( " .fFrame = " ); + buffer.append( " (" ).append( isFrame() ).append( " )\n" ); + + return buffer.toString(); + } + }