From: Sergey Vladimirov Date: Mon, 4 Jul 2011 19:04:08 +0000 (+0000) Subject: add toString() to BorderCode X-Git-Tag: REL_3_8_BETA4~343 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=89494004ed420d3d418e0209eb50d061585dcbfc;p=poi.git add toString() to BorderCode git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1142761 13f79535-47bb-0310-9956-ffa450edef68 --- 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 55a0cdb9c1..fcc9997ab5 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(); + } + }