public abstract class Media extends EnumSyntax implements DocAttribute, PrintRequestAttribute, PrintJobAttribute
媒体可以以不同的方式指定。
一个媒体对象构造一个值,该值表示媒体属性可以指定的方式之一。
聚丙烯的相容性:类别名称返回getName()是IPP的属性名称。枚举的整数值为IPP的枚举值。的toString()方法返回属性值的字符串表示形式的IPP。
| Modifier | Constructor and Description |
|---|---|
protected |
Media(int value)
构造由名称指定的新媒体属性。
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
返回此媒体属性是否等效于对象的传递。
|
类<? extends Attribute> |
getCategory()
获取要用作该打印属性值的“类别”的打印属性类。
|
String |
getName()
获取此属性值的类别的名称,即一个实例。
|
clone, getEnumValueTable, getOffset, getStringTable, getValue, hashCode, readResolve, toStringpublic boolean equals(Object object)
object不空。object是媒体相同的子类的对象。equals 方法重写,继承类
Object
object对象比较。
object相当于该媒体属性真,否则为假。
Object.hashCode(),
HashMap
public final 类<? extends Attribute> getCategory()
对于类媒体和任何供应商定义的子类,类是类媒体本身。
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.