poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1142761 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java
Date Mon, 04 Jul 2011 19:04:08 GMT
Author: sergey
Date: Mon Jul  4 19:04:08 2011
New Revision: 1142761

URL: http://svn.apache.org/viewvc?rev=1142761&view=rev
Log:
add toString() to BorderCode

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java?rev=1142761&r1=1142760&r2=1142761&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BorderCode.java Mon Jul  4
19:04:08 2011
@@ -194,4 +194,32 @@ public final class BorderCode implements
     _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();
+    }
+
 }



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


Mime
View raw message