]> source.dussan.org Git - poi.git/commitdiff
add toString() to BorderCode
authorSergey Vladimirov <sergey@apache.org>
Mon, 4 Jul 2011 19:04:08 +0000 (19:04 +0000)
committerSergey Vladimirov <sergey@apache.org>
Mon, 4 Jul 2011 19:04:08 +0000 (19:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1142761 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java

index 55a0cdb9c175740fc381515103ef112aa8cc4255..fcc9997ab5bdf22fb02e86c5e9dda72a2242a573 100644 (file)
@@ -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();
+    }
+
 }