java.awt
Class JobAttributes.SidesType

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.JobAttributes.SidesType
Enclosing class:
JobAttributes sample code for java.awt.JobAttributes definition code for java.awt.JobAttributes

public static final class JobAttributes.SidesType
extends Object sample code for java.lang.Object definition code for java.lang.Object

A type-safe enumeration of possible multi-page impositions. These impositions are in compliance with IPP 1.1.


Field Summary
static JobAttributes.SidesType sample code for java.awt.JobAttributes.SidesType definition code for java.awt.JobAttributes.SidesType ONE_SIDED sample code for java.awt.JobAttributes.SidesType.ONE_SIDED definition code for java.awt.JobAttributes.SidesType.ONE_SIDED
          The SidesType instance to use for specifying that consecutive job pages should be printed upon the same side of consecutive media sheets.
static JobAttributes.SidesType sample code for java.awt.JobAttributes.SidesType definition code for java.awt.JobAttributes.SidesType TWO_SIDED_LONG_EDGE sample code for java.awt.JobAttributes.SidesType.TWO_SIDED_LONG_EDGE definition code for java.awt.JobAttributes.SidesType.TWO_SIDED_LONG_EDGE
          The SidesType instance to use for specifying that consecutive job pages should be printed upon front and back sides of consecutive media sheets, such that the orientation of each pair of pages on the medium would be correct for the reader as if for binding on the long edge.
static JobAttributes.SidesType sample code for java.awt.JobAttributes.SidesType definition code for java.awt.JobAttributes.SidesType TWO_SIDED_SHORT_EDGE sample code for java.awt.JobAttributes.SidesType.TWO_SIDED_SHORT_EDGE definition code for java.awt.JobAttributes.SidesType.TWO_SIDED_SHORT_EDGE
          The SidesType instance to use for specifying that consecutive job pages should be printed upon front and back sides of consecutive media sheets, such that the orientation of each pair of pages on the medium would be correct for the reader as if for binding on the short edge.
 
Method Summary
 int hashCode sample code for java.awt.JobAttributes.SidesType.hashCode() definition code for java.awt.JobAttributes.SidesType.hashCode() ()
          Returns a hash code value for the object.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for java.awt.JobAttributes.SidesType.toString() definition code for java.awt.JobAttributes.SidesType.toString() ()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

ONE_SIDED sample code for java.awt.JobAttributes.SidesType.ONE_SIDED

public static final JobAttributes.SidesType sample code for java.awt.JobAttributes.SidesType definition code for java.awt.JobAttributes.SidesType  ONE_SIDED
The SidesType instance to use for specifying that consecutive job pages should be printed upon the same side of consecutive media sheets.


TWO_SIDED_LONG_EDGE sample code for java.awt.JobAttributes.SidesType.TWO_SIDED_LONG_EDGE

public static final JobAttributes.SidesType sample code for java.awt.JobAttributes.SidesType definition code for java.awt.JobAttributes.SidesType  TWO_SIDED_LONG_EDGE
The SidesType instance to use for specifying that consecutive job pages should be printed upon front and back sides of consecutive media sheets, such that the orientation of each pair of pages on the medium would be correct for the reader as if for binding on the long edge.


TWO_SIDED_SHORT_EDGE sample code for java.awt.JobAttributes.SidesType.TWO_SIDED_SHORT_EDGE

public static final JobAttributes.SidesType sample code for java.awt.JobAttributes.SidesType definition code for java.awt.JobAttributes.SidesType  TWO_SIDED_SHORT_EDGE
The SidesType instance to use for specifying that consecutive job pages should be printed upon front and back sides of consecutive media sheets, such that the orientation of each pair of pages on the medium would be correct for the reader as if for binding on the short edge.

Method Detail

hashCode sample code for java.awt.AttributeValue.hashCode() definition code for java.awt.AttributeValue.hashCode()

public int hashCode()
Description copied from class: Object sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

The general contract of hashCode is:

As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)

Overrides:
hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a hash code value for this object.
See Also:
Object.equals(java.lang.Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

toString sample code for java.awt.AttributeValue.toString() definition code for java.awt.AttributeValue.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Description copied from class: Object sample code for java.lang.Object.toString() definition code for java.lang.Object.toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a string representation of the object.