Results 1 to 5 of 5

Thread: Confused about PageAttributes class

  1. #1
    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.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    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.

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    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)

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    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()

  5. #5
    Join Date
    Jan 2008
    Posts
    1,521

    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.

Similar Threads

  1. Confused about Scrollbar class
    By Jagruti23 in forum Software Development
    Replies: 5
    Last Post: 06-03-2010, 04:18 PM
  2. Confused with JInternalFrame class
    By Truster in forum Software Development
    Replies: 5
    Last Post: 17-02-2010, 09:58 AM
  3. Confused with JSpinner class
    By Bottlenecked in forum Software Development
    Replies: 4
    Last Post: 15-02-2010, 09:51 AM
  4. Confused with OverlayLayout class
    By Bottlenecked in forum Software Development
    Replies: 5
    Last Post: 12-02-2010, 09:37 AM
  5. Confused with 'Class SpinnerNumberModel'
    By Khan Baba in forum Software Development
    Replies: 5
    Last Post: 11-02-2010, 11:08 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,123,730.61144 seconds with 16 queries