org.jpedal.examples.simpleviewer.paper
Class PaperSizes
java.lang.Object
org.jpedal.examples.simpleviewer.paper.PaperSizes
public class PaperSizes
- extends java.lang.Object
|
Constructor Summary |
PaperSizes(javax.print.PrintService printService)
|
PaperSizes(java.lang.String defaultSize)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PaperSizes
public PaperSizes(javax.print.PrintService printService)
PaperSizes
public PaperSizes(java.lang.String defaultSize)
getAvailablePaperSizes
public java.lang.String[] getAvailablePaperSizes()
getSelectedPaper
public MarginPaper getSelectedPaper(java.lang.Object id)
- return selected Paper
setPrintService
public void setPrintService(javax.print.PrintService p)
- Sets the print service and checks which page sizes are available
- Parameters:
p - print service
getPaperSizes
public java.lang.String[] getPaperSizes()
getDefaultPageIndex
public int getDefaultPageIndex()
- Returns the index of the default paper size
- Returns:
JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support