javax.print.attribute.standard
Class MediaName

java.lang.Object
  extended by javax.print.attribute.EnumSyntax
      extended by javax.print.attribute.standard.Media
          extended by javax.print.attribute.standard.MediaName
All Implemented Interfaces:
Serializable, Cloneable, Attribute, DocAttribute, PrintJobAttribute, PrintRequestAttribute

public class MediaName
extends Media

MediaName is a subclass of the Media printing attribute and provides selection of media to be used by the means of defined names. The class pre-defines commonly available media names. This media type enumeration may be used in alternative to MediaSizeName/MediaTray.

IPP Compatibility: MediaName is not an IPP 1.1 attribute on its own. It provides parts of the media attribute type values.

See Also:
Serialized Form

Field Summary
static MediaName ISO_A4_TRANSPARENT
          The ISO A4 transparent medium.
static MediaName ISO_A4_WHITE
          The ISO A4 white medium.
static MediaName NA_LETTER_TRANSPARENT
          The North American letter transparent medium.
static MediaName NA_LETTER_WHITE
          The North American letter white medium.
 
Constructor Summary
protected MediaName(int i)
          Creates a MediaName object.
 
Method Summary
protected  EnumSyntax[] getEnumValueTable()
          Returns a table with the enumeration values for this object.
protected  String[] getStringTable()
          Returns a table with the enumeration values represented as strings for this object.
 
Methods inherited from class javax.print.attribute.standard.Media
equals, getCategory, getName
 
Methods inherited from class javax.print.attribute.EnumSyntax
clone, getOffset, getValue, hashCode, readResolve, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NA_LETTER_WHITE

public static final MediaName NA_LETTER_WHITE
The North American letter white medium.


NA_LETTER_TRANSPARENT

public static final MediaName NA_LETTER_TRANSPARENT
The North American letter transparent medium.


ISO_A4_WHITE

public static final MediaName ISO_A4_WHITE
The ISO A4 white medium.


ISO_A4_TRANSPARENT

public static final MediaName ISO_A4_TRANSPARENT
The ISO A4 transparent medium.

Constructor Detail

MediaName

protected MediaName(int i)
Creates a MediaName object.

Parameters:
i - the enum value.
Method Detail

getStringTable

protected String[] getStringTable()
Returns a table with the enumeration values represented as strings for this object.

Overrides:
getStringTable in class EnumSyntax
Returns:
The enumeration values as strings.

getEnumValueTable

protected EnumSyntax[] getEnumValueTable()
Returns a table with the enumeration values for this object.

Overrides:
getEnumValueTable in class EnumSyntax
Returns:
The enumeration values.