add isEmpty() and toString() to LineSpacingDescriptor

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144644 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-07-09 11:24:02 +00:00
parent 1eba38d7cf
commit 2a96d74ace

View File

@ -74,4 +74,19 @@ public final class LineSpacingDescriptor
return _dyaLine == lspd._dyaLine && _fMultiLinespace == lspd._fMultiLinespace;
}
public boolean isEmpty()
{
return _dyaLine == 0 && _fMultiLinespace == 0;
}
@Override
public String toString()
{
if ( isEmpty() )
return "[LSPD] EMPTY";
return "[LSPD] (dyaLine: " + _dyaLine + "; fMultLinespace: "
+ _fMultiLinespace + ")";
}
}