public final class PrinterResolution extends ResolutionSyntax implements DocAttribute, PrintRequestAttribute, PrintJobAttribute
PrinterResolution以多种方式使用:
 IPP兼容性:可以通过调用PrinterResolution对象上的方法来获取构建IPP "printer-resolution"属性所需的信息。 由getName()返回的类别名称提供IPP属性名称。 
DPCM, DPI| Constructor and Description | 
|---|
| PrinterResolution(int crossFeedResolution, int feedResolution, int units)
              从给定项目构建新的打印机分辨率属性。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object object)
              返回此打印机分辨率属性是否等同于传入的对象。 
             | 
| 类<? extends Attribute> | getCategory()
              获取要用作此打印属性值的“类别”的打印属性类。 
             | 
| String | getName()
              获取此属性值是一个实例的类别的名称。 
             | 
getCrossFeedResolution, getCrossFeedResolutionDphi, getFeedResolution, getFeedResolutionDphi, getResolution, hashCode, lessThanOrEquals, toString, toStringpublic PrinterResolution(int crossFeedResolution,
                         int feedResolution,
                         int units) 
          crossFeedResolution - 交叉进给方向分辨率。 
           feedResolution - 进纸方向分辨率。 
           units - 单位换算系数,例如 
            ResolutionSyntax.DPI或 
            ResolutionSyntax.DPCM 。 
           IllegalArgumentException - (未经检查的例外)如果 
            crossFeedResolution < 1或 
            feedResolution < 1或 
            units < 1 。 
           public boolean equals(Object object)
object不为空。 object是PrinterResolution类的一个实例。 object的交叉进给方向分辨率。 object的进纸方向分辨率。 equals在 
            ResolutionSyntax 
           object - 要比较的对象。 
           object相当于此打印机分辨率属性,则为真,否则为false。 
           Object.hashCode() , HashMap 
           public final 类<? extends Attribute> getCategory()
对于PrinterResolution类,该类别是PrinterResolution本身。
getCategory在接口 
            Attribute 
           java.lang.Class的一个实例。 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.