public abstract class Media extends EnumSyntax implements DocAttribute, PrintRequestAttribute, PrintJobAttribute
Media printing attribute specifies which
type of media should be used for printing.
The media to be used can be specified in three ways represented
by the media subclasses MediaTray,
MediaName and
MediaSizeName:
media
and provides predefined values to be used.
IPP Compatibility: Media is an IPP 1.1 attribute.
| Modifier | Constructor and Description |
|---|---|
protected |
Media(int value)
Constructs a
Media object. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Tests if the given object is equal to this object.
|
Class<? extends Attribute> |
getCategory()
Returns category of this class.
|
String |
getName()
Returns the name of this attribute.
|
clone, getEnumValueTable, getOffset, getStringTable, getValue, hashCode, readResolve, toStringprotected Media(int value)
Media object.value - the enum value.public boolean equals(Object obj)
equals in class Objectobj - the object to testtrue if both objects are equal,
false otherwise.Object.hashCode()public Class<? extends Attribute> getCategory()
getCategory in interface AttributeMedia itself.