API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. JobAttributes View Source
Author(s)
David Mendenhall
Since
1.3
Version
1.11, 04/07/06
Serial
Hierarchy
 Object
      JobAttributes
Implements
 Cloneable
Subclasses
Description
publicfinal class JobAttributes
  A set of attributes which control a print job.
See also:   
Constructors
public JobAttributes ()
  Constructs a JobAttributes instance with default values for every attribute.
public JobAttributes (int copies, DefaultSelectionType defaultSelection, DestinationType destination, DialogType dialog, String fileName, int maxPage, int minPage, MultipleDocumentHandlingType multipleDocumentHandling, int[][] pageRanges, String printer, SidesType sides)
  Constructs a JobAttributes instance with the specified values for every attribute.
public JobAttributes (JobAttributes obj)
  Constructs a JobAttributes instance which is a copy of the supplied JobAttributes.
Methods
Hide/Show inherited methods
public Object clone ()
  Creates and returns a copy of this JobAttributes.
public boolean equals (Object obj)
  Determines whether two JobAttributes are equal to each other.
public int getCopies ()
  Returns the number of copies the application should render for jobs using these attributes.
public DefaultSelectionType getDefaultSelection ()
  Specifies whether, for jobs using these attributes, the application should print all pages, the range specified by the return value of getPageRanges, or the current selection.
public DestinationType getDestination ()
  Specifies whether output will be to a printer or a file for jobs using these attributes.
public DialogType getDialog ()
  Returns whether, for jobs using these attributes, the user should see a print dialog in which to modify the print settings, and which type of print dialog should be displayed.
public String getFileName ()
  Specifies the file name for the output file for jobs using these attributes.
public int getFromPage ()
  Returns, for jobs using these attributes, the first page to be printed, if a range of pages is to be printed.
public int getMaxPage ()
  Specifies the maximum value the user can specify as the last page to be printed for jobs using these attributes.
public int getMinPage ()
  Specifies the minimum value the user can specify as the first page to be printed for jobs using these attributes.
public MultipleDocumentHandlingType getMultipleDocumentHandling ()
  Specifies the handling of multiple copies, including collation, for jobs using these attributes.
public int getPageRanges ()
  Specifies, for jobs using these attributes, the ranges of pages to be printed, if a range of pages is to be printed.
public String getPrinter ()
  Returns the destination printer for jobs using these attributes.
public SidesType getSides ()
  Returns how consecutive pages should be imposed upon the sides of the print medium for jobs using these attributes.
public int getToPage ()
  Returns, for jobs using these attributes, the last page (inclusive) to be printed, if a range of pages is to be printed.
public int hashCode ()
  Returns a hash code value for this JobAttributes.
public void set (JobAttributes obj)
  Sets all of the attributes of this JobAttributes to the same values as the attributes of obj.
public void setCopies (int copies)
  Specifies the number of copies the application should render for jobs using these attributes.
public void setCopiesToDefault ()
  Sets the number of copies the application should render for jobs using these attributes to the default.
public void setDefaultSelection (DefaultSelectionType defaultSelection)
  Specifies whether, for jobs using these attributes, the application should print all pages, the range specified by the return value of getPageRanges, or the current selection.
public void setDestination (DestinationType destination)
  Specifies whether output will be to a printer or a file for jobs using these attributes.
public void setDialog (DialogType dialog)
  Specifies whether, for jobs using these attributes, the user should see a print dialog in which to modify the print settings, and which type of print dialog should be displayed.
public void setFileName (String fileName)
  Specifies the file name for the output file for jobs using these attributes.
public void setFromPage (int fromPage)
  Specifies, for jobs using these attributes, the first page to be printed, if a range of pages is to be printed.
public void setMaxPage (int maxPage)
  Specifies the maximum value the user can specify as the last page to be printed for jobs using these attributes.
public void setMinPage (int minPage)
  Specifies the minimum value the user can specify as the first page to be printed for jobs using these attributes.
public void setMultipleDocumentHandling (MultipleDocumentHandlingType multipleDocumentHandling)
  Specifies the handling of multiple copies, including collation, for jobs using these attributes.
public void setMultipleDocumentHandlingToDefault ()
  Sets the handling of multiple copies, including collation, for jobs using these attributes to the default.
public void setPageRanges (int[][] pageRanges)
  Specifies, for jobs using these attributes, the ranges of pages to be printed, if a range of pages is to be printed.
public void setPrinter (String printer)
  Specifies the destination printer for jobs using these attributes.
public void setSides (SidesType sides)
  Specifies how consecutive pages should be imposed upon the sides of the print medium for jobs using these attributes.
public void setSidesToDefault ()
  Sets how consecutive pages should be imposed upon the sides of the print medium for jobs using these attributes to the default.
public void setToPage (int toPage)
  Specifies, for jobs using these attributes, the last page (inclusive) to be printed, if a range of pages is to be printed.
public String toString ()
  Returns a string representation of this JobAttributes.
Fields
Hide/Show inherited fields
Nested Classes
  JobAttributes.DefaultSelectionType
A type-safe enumeration of possible default selection states.
  JobAttributes.DestinationType
A type-safe enumeration of possible job destinations.
  JobAttributes.DialogType
A type-safe enumeration of possible dialogs to display to the user.
  JobAttributes.MultipleDocumentHandlingType
A type-safe enumeration of possible multiple copy handling states.
  JobAttributes.SidesType
A type-safe enumeration of possible multi-page impositions.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar