public final class PrinterResolution extends ResolutionSyntax implements DocAttribute, PrintRequestAttribute, PrintJobAttribute
printerresolution是多方面使用:
聚丙烯的相容性:信息需要构建一个IPP "printer-resolution"
属性可以通过调用方法的对象得到printerresolution。返回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, toString
public PrinterResolution(int crossFeedResolution, int feedResolution, int units)
crossFeedResolution
-横向进给方向分辨率。
feedResolution
进给方向分辨率。
units
单位转换因子,如
ResolutionSyntax.DPI
或
ResolutionSyntax.DPCM
。
IllegalArgumentException
-(unchecked异常)如果
crossFeedResolution < 1
或
feedResolution < 1
或
units < 1
扔。
public boolean equals(Object object)
object
不空。object
是类printerresolution实例。object
的横向进给方向分辨率。object
进给方向分辨率。equals
方法重写,继承类
ResolutionSyntax
object
对象比较。
object
相当于这台打印机分辨率属性真,否则为假。
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.