public class MediaName extends Media implements Attribute
可以使用此属性,而不是指定MediaSize或MediaTray。
MediaName类目前声明了几个标准的媒体名称。 媒体名称属性的实现或站点定义的名称也可以通过定义MediaName类的子类来创建。
IPP兼容性: MediaName是为媒体命名的IPP“媒体”属性的值的表示类。
Modifier and Type | Field and Description |
---|---|
static MediaName |
ISO_A4_TRANSPARENT
A4透明度。
|
static MediaName |
ISO_A4_WHITE
白色A4纸。
|
static MediaName |
NA_LETTER_TRANSPARENT
信件透明度。
|
static MediaName |
NA_LETTER_WHITE
白信纸。
|
Modifier | Constructor and Description |
---|---|
protected |
MediaName(int value)
构造具有给定整数值的新媒体名称枚举值。
|
Modifier and Type | Method and Description |
---|---|
protected EnumSyntax[] |
getEnumValueTable()
返回MediaTray类的枚举值表。
|
protected String[] |
getStringTable()
返回类MediaTray的字符串表。
|
equals, getCategory, getName
clone, getOffset, getValue, hashCode, readResolve, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getCategory, getName
public static final MediaName NA_LETTER_WHITE
public static final MediaName NA_LETTER_TRANSPARENT
public static final MediaName ISO_A4_WHITE
public static final MediaName ISO_A4_TRANSPARENT
protected String[] getStringTable()
getStringTable
在
EnumSyntax
protected EnumSyntax[] getEnumValueTable()
getEnumValueTable
在
EnumSyntax
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.