add toString() to BorderCode

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1142761 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-07-04 19:04:08 +00:00
parent a57c397517
commit ed7c3eeb07

View 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();
}
}