Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , ,

Sponsored Links



Confused about PageAttributes class

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 09-03-2010
Member
 
Join Date: Jan 2010
Posts: 70
Confused about PageAttributes class

Hi All,

I need you suggestions to sort-out my java programming query. I am getting troubled while studying the 'PageAttributes class' of the java programming language. I also don't have any idea about it's methods. I wonder if you let me know something about the this PageAttributes class of the java language. Suitable example over PageAttributes class will also be greatly appreciated.
Reply With Quote
  #2  
Old 09-03-2010
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
Re: Confused about PageAttributes class

It is a set of attributes which control the output of a printed page. Instances of this class control the color state, paper size (media type), orientation, logical origin, print quality, and resolution of every page which uses the instance. Attribute names are compliant with the Internet Printing Protocol (IPP) 1.1 where possible. Attribute values are partially compliant where possible. To use a method which takes an inner class type, pass a reference to one of the constant fields of the inner class.
Reply With Quote
  #3  
Old 09-03-2010
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
Re: Confused about PageAttributes class

Hello friends,

Please study following six methods of the PageAttributes class:
  1. setPrintQuality(PageAttributes.PrintQualityType prtQuality)
  2. setPrintQuality(int prtQuality)
  3. setPrinterResolution(int[] xj)
  4. setPrinterResolution(int xj)
  5. setOrientationRequested(int or)
Reply With Quote
  #4  
Old 09-03-2010
MindSpace's Avatar
Member
 
Join Date: Feb 2008
Posts: 1,832
Re: Confused about PageAttributes class

Below I have given some constructors of the PageAttributes class of java:
  • PageAttributes(PageAttributes pa)
  • PageAttributes(PageAttributes.ColorType clr, PageAttributes.MediaType media, PageAttributes.OrientationRequestedType or, PageAttributes.OriginType or, PageAttributes.PrintQualityType pq, int[] pr)
  • PageAttributes()
Reply With Quote
  #5  
Old 09-03-2010
Modifier's Avatar
Member
 
Join Date: Jan 2008
Posts: 1,502
Re: Confused about PageAttributes class

Hi,

If you want to know about nested classes of 'PageAttributes class', then please refer below:
  1. PageAttributes.PrintQualityType: It is used for print qualities enumeration.
  2. PageAttributes.ColorType: It is used for color states enumeration.
  3. PageAttributes.OriginType:It is used for origins enumeration.
  4. PageAttributes.OrientationRequestedType: It is used for orientations enumeration.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Confused about PageAttributes class"
Thread Thread Starter Forum Replies Last Post
Confused about Scrollbar class Jagruti23 Software Development 5 06-03-2010 04:18 PM
Confused about JApplet class ScarFace 01 Software Development 5 19-02-2010 08:50 AM
Confused about JCheckBox class Khan Baba Software Development 5 18-02-2010 12:54 PM
Confused with JInternalFrame class Truster Software Development 5 17-02-2010 09:58 AM
Confused with JPopupMenu class Bottlenecked Software Development 5 16-02-2010 09:27 AM


All times are GMT +5.5. The time now is 07:39 AM.