|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.print.attribute.EnumSyntax
javax.print.attribute.standard.Media
public abstract class Media
The 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.
| 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. |
| Methods inherited from class javax.print.attribute.EnumSyntax |
|---|
clone, getEnumValueTable, getOffset, getStringTable, getValue, hashCode, readResolve, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Media(int value)
Media object.
value - the enum value.| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectobj - the object to test
true if both objects are equal,
false otherwise.Object.hashCode()public Class<? extends Attribute> getCategory()
getCategory in interface AttributeMedia itself.public final String getName()
getName in interface Attribute
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||