/[classpath]/classpath/javax/print/attribute/ResolutionSyntax.java
ViewVC logotype

Diff of /classpath/javax/print/attribute/ResolutionSyntax.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by wbaer, Sat Nov 19 11:03:37 2005 UTC revision 1.6 by wbaer, Sat Nov 19 15:56:51 2005 UTC
# Line 254  public abstract class ResolutionSyntax Line 254  public abstract class ResolutionSyntax
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);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26