com.jniwrapper.win32.gdi
Class PrintParameters

java.lang.Object
  extended bycom.jniwrapper.win32.gdi.PrintParameters

public class PrintParameters
extends java.lang.Object

This class describes set of pages in document to print, number of copies to print.


Constructor Summary
PrintParameters()
           
 
Method Summary
static PrintParameters create(int startPage, int endPage, int numCopies)
           
 int getFromPage()
          Returns start page to print.
 int getMaxPage()
           
 int getMinPage()
           
 int getNumCopies()
           
 PageRange[] getPageRanges()
           
 int getToPage()
          Sets start page to print.
 boolean isCollate()
           
 boolean isPrintEvenPages()
           
 boolean isPrintOddPages()
           
 void setCollate(boolean collate)
           
 void setFromPage(int fromPage)
          Sets start page to print.
 void setMaxPage(int maxPage)
           
 void setMinPage(int minPage)
           
 void setNumCopies(int numCopies)
           
 void setPageRanges(PageRange[] pageRanges)
           
 void setPrintEvenPages(boolean printEvenPages)
           
 void setPrintOddPages(boolean printOddPages)
           
 void setToPage(int toPage)
          Sets last page to print.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintParameters

public PrintParameters()
Method Detail

getFromPage

public int getFromPage()
Returns start page to print.

Returns:
start page to print.

setFromPage

public void setFromPage(int fromPage)
Sets start page to print.

Parameters:
fromPage - number of page.

getToPage

public int getToPage()
Sets start page to print.


setToPage

public void setToPage(int toPage)
Sets last page to print.

Parameters:
toPage - number of page.

getMinPage

public int getMinPage()

setMinPage

public void setMinPage(int minPage)

getMaxPage

public int getMaxPage()

setMaxPage

public void setMaxPage(int maxPage)

getNumCopies

public int getNumCopies()

setNumCopies

public void setNumCopies(int numCopies)

isPrintOddPages

public boolean isPrintOddPages()

setPrintOddPages

public void setPrintOddPages(boolean printOddPages)

isPrintEvenPages

public boolean isPrintEvenPages()

setPrintEvenPages

public void setPrintEvenPages(boolean printEvenPages)

getPageRanges

public PageRange[] getPageRanges()

setPageRanges

public void setPageRanges(PageRange[] pageRanges)

isCollate

public boolean isCollate()

setCollate

public void setCollate(boolean collate)

create

public static PrintParameters create(int startPage,
                                     int endPage,
                                     int numCopies)