254 |
* </p> |
* </p> |
255 |
* |
* |
256 |
* @param units the units to use |
* @param units the units to use |
257 |
* @param unitsName the name of the units |
* @param unitsName the name of the units. If <code>null</code> |
258 |
|
* it is ommitted from the string representation. |
259 |
* |
* |
260 |
* @return The string representation. |
* @return The string representation. |
261 |
*/ |
*/ |
262 |
public String toString(int units, String unitsName) |
public String toString(int units, String unitsName) |
263 |
{ |
{ |
264 |
|
if (unitsName == null) |
265 |
|
return getCrossFeedResolution(units) + "x" + getFeedResolution(units); |
266 |
|
|
267 |
return ("" + getCrossFeedResolution(units) |
return ("" + getCrossFeedResolution(units) |
268 |
+ "x" + getFeedResolution(units) |
+ "x" + getFeedResolution(units) |
269 |
+ " " + unitsName); |
+ " " + unitsName); |