ewe.fx.print
Class PageFormat

java.lang.Object
  extended byewe.fx.print.PageFormat

public class PageFormat
extends Object

A PageFormat class is sent to a Printable object during the printing of a document. It gives information on page resolution of the printer being used.


Field Summary
 double fullPageHeight
           
 double fullPageWidth
           
 double imageableHeight
           
 double imageableWidth
           
 double imageableX
           
 double imageableY
           
 double requestedFullHeight
           
 double requestedFullWidth
           
 double requestedHeight
           
 double requestedWidth
           
 double requestedX
           
 double requestedXDpi
           
 double requestedY
           
 double requestedYDpi
           
 double xDPI
          This is the output X-DPI and it may not be know, and if so, it will be 0.
 double xScreenScale
           
 double yDPI
          This is the output Y-DPI and it may not be know, and if so, it will be 0.
 double yScreenScale
           
 
Constructor Summary
PageFormat()
           
 
Method Summary
 void acceptRequests()
          Return the Requested Imageable area for the PageFormat - if one was requested, otherwise null will be returned.
 void requestDPI(double xDPI, double yDPI)
          This requests that the output DPI be set to the specified values.
 void requestImageableArea(double x, double y, double width, double height)
          This requests that the imageable area of the paper to be set to the specified values, which are given in units of Points (printer dots - 1/72 of an inch).
 void requestPageSize(double width, double height)
          This requests that the size of the paper be set to specified values, which are given in units of Points (printer dots - 1/72 of an inch).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Field Detail

fullPageWidth

public double fullPageWidth

fullPageHeight

public double fullPageHeight

imageableWidth

public double imageableWidth

imageableHeight

public double imageableHeight

xScreenScale

public double xScreenScale

yScreenScale

public double yScreenScale

imageableX

public double imageableX

imageableY

public double imageableY

xDPI

public double xDPI
This is the output X-DPI and it may not be know, and if so, it will be 0.


yDPI

public double yDPI
This is the output Y-DPI and it may not be know, and if so, it will be 0.


requestedX

public double requestedX

requestedY

public double requestedY

requestedWidth

public double requestedWidth

requestedHeight

public double requestedHeight

requestedFullWidth

public double requestedFullWidth

requestedFullHeight

public double requestedFullHeight

requestedXDpi

public double requestedXDpi

requestedYDpi

public double requestedYDpi
Constructor Detail

PageFormat

public PageFormat()
Method Detail

requestDPI

public void requestDPI(double xDPI,
                       double yDPI)
This requests that the output DPI be set to the specified values. Note that this is just a request and the device may not provide the requested DPIs. The getXDPI() and getYDPI() values will return the actual DPIs (if available) at print time. They may not be available immediately after this call.


requestImageableArea

public void requestImageableArea(double x,
                                 double y,
                                 double width,
                                 double height)
This requests that the imageable area of the paper to be set to the specified values, which are given in units of Points (printer dots - 1/72 of an inch). Therefore this can be used regardless of the eventual printer resolution.

Parameters:
x - the x offset of the imageable area.
y - the y offset of the imageable area.
width - the width of the imageable area.
height - the height of the imageable area.

requestPageSize

public void requestPageSize(double width,
                            double height)
This requests that the size of the paper be set to specified values, which are given in units of Points (printer dots - 1/72 of an inch). Therefore this can be used regardless of the eventual printer resolution.

Parameters:
width - the requested size of the paper.
height - the requested height of the paper.

acceptRequests

public void acceptRequests()
Return the Requested Imageable area for the PageFormat - if one was requested, otherwise null will be returned.