JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support

org.jpedal.examples.simpleviewer.paper
Class PaperSizes

java.lang.Object
  extended by 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)
           
 
Method Summary
 java.lang.String[] getAvailablePaperSizes()
           
 int getDefaultPageIndex()
          Returns the index of the default paper size
 java.lang.String[] getPaperSizes()
           
 MarginPaper getSelectedPaper(java.lang.Object id)
          return selected Paper
 void setPrintService(javax.print.PrintService p)
          Sets the print service and checks which page sizes are available
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaperSizes

public PaperSizes(javax.print.PrintService printService)

PaperSizes

public PaperSizes(java.lang.String defaultSize)
Method Detail

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

JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support