Class PageRasterDisplayCallback
java.lang.Object
org.ghost4j.display.PageRasterDisplayCallback
- All Implemented Interfaces:
DisplayCallback
Display callback in charge of extracting raw page rasters (PageRaster)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod called when device has been closed.voidMethod called when new device has been opened.voiddisplayPage(int width, int height, int raster, int format, int copies, int flush, byte[] imageData) Method called on show page.voidMethod called when device is about to be closed.voiddisplayPreSize(int width, int height, int raster, int format) Method called when device is about to be resized.voiddisplaySize(int width, int height, int raster, int format) Method called when device has been resized.voidMethod called on page flush.voiddisplayUpdate(int x, int y, int width, int height) Method called to notify whenever a portion of the raster is updated.
-
Field Details
-
rasters
-
-
Constructor Details
-
PageRasterDisplayCallback
public PageRasterDisplayCallback()Constructor
-
-
Method Details
-
displayClose
Description copied from interface:DisplayCallbackMethod called when device has been closed. This is the last event from this device.- Specified by:
displayClosein interfaceDisplayCallback- Throws:
GhostscriptException
-
displayOpen
Description copied from interface:DisplayCallbackMethod called when new device has been opened. This is the first event from this device.- Specified by:
displayOpenin interfaceDisplayCallback- Throws:
GhostscriptException
-
displayPage
public void displayPage(int width, int height, int raster, int format, int copies, int flush, byte[] imageData) throws GhostscriptException Description copied from interface:DisplayCallbackMethod called on show page.- Specified by:
displayPagein interfaceDisplayCallback- Parameters:
width- Widthheight- Heightraster- Rasterformat- Formatcopies- Copiesflush- FlushimageData- Byte array representing image data. Data layout and order is controlled by the -dDisplayFormat argument.- Throws:
GhostscriptException
-
displayPreClose
Description copied from interface:DisplayCallbackMethod called when device is about to be closed. Device will not be closed until this function returns.- Specified by:
displayPreClosein interfaceDisplayCallback- Throws:
GhostscriptException
-
displayPreSize
public void displayPreSize(int width, int height, int raster, int format) throws GhostscriptException Description copied from interface:DisplayCallbackMethod called when device is about to be resized.- Specified by:
displayPreSizein interfaceDisplayCallback- Parameters:
width- Widthheight- Heightraster- Rasterformat- Format- Throws:
GhostscriptException
-
displaySize
Description copied from interface:DisplayCallbackMethod called when device has been resized.- Specified by:
displaySizein interfaceDisplayCallback- Parameters:
width- Widthheight- Heightraster- Rasterformat- Format- Throws:
GhostscriptException
-
displaySync
Description copied from interface:DisplayCallbackMethod called on page flush.- Specified by:
displaySyncin interfaceDisplayCallback- Throws:
GhostscriptException
-
displayUpdate
Description copied from interface:DisplayCallbackMethod called to notify whenever a portion of the raster is updated.- Specified by:
displayUpdatein interfaceDisplayCallback- Parameters:
x- X coordinatey- Y coordinatewidth- Widthheight- Height- Throws:
GhostscriptException
-
getRasters
-