API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. PageAttributes View Source
Author(s)
David Mendenhall
Since
1.3
Version
1.9, 04/07/06
Serial
Hierarchy
 Object
      PageAttributes
Implements
 Cloneable
Subclasses
Description
publicfinal class PageAttributes
  A set of attributes which control the output of a printed page.
See also:   
Constructors
public PageAttributes ()
Constructs a PageAttributes instance with default values for every attribute.
public PageAttributes (ColorType color, MediaType media, OrientationRequestedType orientationRequested, OriginType origin, PrintQualityType printQuality, int[] printerResolution)
  Constructs a PageAttributes instance with the specified values for every attribute.
public PageAttributes (PageAttributes obj)
  Constructs a PageAttributes instance which is a copy of the supplied PageAttributes.
Methods
Hide/Show inherited methods
public Object clone ()
  Creates and returns a copy of this PageAttributes.
public boolean equals (Object obj)
  Determines whether two PageAttributes are equal to each other.
public ColorType getColor ()
  Returns whether pages using these attributes will be rendered in color or monochrome.
public MediaType getMedia ()
  Returns the paper size for pages using these attributes.
public OrientationRequestedType getOrientationRequested ()
  Returns the print orientation for pages using these attributes.
public OriginType getOrigin ()
  Returns whether drawing at (0, 0) to pages using these attributes draws at the upper-left corner of the physical page, or at the upper-left corner of the printable area.
public int getPrinterResolution ()
  Returns the print resolution for pages using these attributes.
public PrintQualityType getPrintQuality ()
  Returns the print quality for pages using these attributes.
public int hashCode ()
  Returns a hash code value for this PageAttributes.
public void set (PageAttributes obj)
  Sets all of the attributes of this PageAttributes to the same values as the attributes of obj.
public void setColor (ColorType color)
  Specifies whether pages using these attributes will be rendered in color or monochrome.
public void setMedia (MediaType media)
  Specifies the desired paper size for pages using these attributes.
public void setMediaToDefault ()
  Sets the paper size for pages using these attributes to the default size for the default locale.
public void setOrientationRequested (int orientationRequested)
  Specifies the print orientation for pages using these attributes.
public void setOrientationRequested (OrientationRequestedType orientationRequested)
  Specifies the print orientation for pages using these attributes.
public void setOrientationRequestedToDefault ()
  Sets the print orientation for pages using these attributes to the default.
public void setOrigin (OriginType origin)
  Specifies whether drawing at (0, 0) to pages using these attributes draws at the upper-left corner of the physical page, or at the upper-left corner of the printable area.
public void setPrinterResolution (int printerResolution)
  Specifies the desired cross feed and feed print resolutions in dots per inch for pages using these attributes.
public void setPrinterResolution (int[] printerResolution)
  Specifies the desired print resolution for pages using these attributes.
public void setPrinterResolutionToDefault ()
  Sets the printer resolution for pages using these attributes to the default.
public void setPrintQuality (int printQuality)
  Specifies the print quality for pages using these attributes.
public void setPrintQuality (PrintQualityType printQuality)
  Specifies the print quality for pages using these attributes.
public void setPrintQualityToDefault ()
  Sets the print quality for pages using these attributes to the default.
public String toString ()
  Returns a string representation of this PageAttributes.
Fields
Hide/Show inherited fields
Nested Classes
  PageAttributes.ColorType
A type-safe enumeration of possible color states.
  PageAttributes.MediaType
A type-safe enumeration of possible paper sizes.
  PageAttributes.OrientationRequestedType
A type-safe enumeration of possible orientations.
  PageAttributes.OriginType
A type-safe enumeration of possible origins.
  PageAttributes.PrintQualityType
A type-safe enumeration of possible print qualities.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar