javax.print.attribute.standard
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 {@link javax.print.attribute.standard.MediaTray}, {@link javax.print.attribute.standard.MediaName} and {@link javax.print.attribute.standard.MediaSizeName}:
media
and provides predefined values to be used.
IPP Compatibility: Media is an IPP 1.1 attribute.
Constructor Summary | |
---|---|
protected | Media(int value)
Constructs a Media object.
|
Method Summary | |
---|---|
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.
|
Media
object.
Parameters: value the enum value.
Parameters: obj the object to test
Returns: true
if both objects are equal,
false
otherwise.
Returns: The class Media
itself.
Returns: The name "media".