
Returns a string version of this two-dimensional size attribute in the
given units. The string takes the form
"XxY
U", where
X is the X dimension,
Y is the Y
dimension, and
U is the units name. The values are displayed in
floating point.
Returns:
String version of this two-dimensional size attribute.
Parameters:
-
units - Unit conversion factor, e.g. {@link #INCH
INCH} or
{@link #MM
MM}.
-
unitsName - Units name string, e.g.
"in" or
"mm". If
null, no units name is appended to the result.
Throws:
-
IllegalArgumentException - (unchecked exception) Thrown if
units < 1.