Package org.ghost4j.display
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 TypeMethodDescriptionvoid
Method called when device has been closed.void
Method called when new device has been opened.void
displayPage
(int width, int height, int raster, int format, int copies, int flush, byte[] imageData) Method called on show page.void
Method called when device is about to be closed.void
displayPreSize
(int width, int height, int raster, int format) Method called when device is about to be resized.void
displaySize
(int width, int height, int raster, int format) Method called when device has been resized.void
Method called on page flush.void
displayUpdate
(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:DisplayCallback
Method called when device has been closed. This is the last event from this device.- Specified by:
displayClose
in interfaceDisplayCallback
- Throws:
GhostscriptException
-
displayOpen
Description copied from interface:DisplayCallback
Method called when new device has been opened. This is the first event from this device.- Specified by:
displayOpen
in 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:DisplayCallback
Method called on show page.- Specified by:
displayPage
in 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:DisplayCallback
Method called when device is about to be closed. Device will not be closed until this function returns.- Specified by:
displayPreClose
in interfaceDisplayCallback
- Throws:
GhostscriptException
-
displayPreSize
public void displayPreSize(int width, int height, int raster, int format) throws GhostscriptException Description copied from interface:DisplayCallback
Method called when device is about to be resized.- Specified by:
displayPreSize
in interfaceDisplayCallback
- Parameters:
width
- Widthheight
- Heightraster
- Rasterformat
- Format- Throws:
GhostscriptException
-
displaySize
Description copied from interface:DisplayCallback
Method called when device has been resized.- Specified by:
displaySize
in interfaceDisplayCallback
- Parameters:
width
- Widthheight
- Heightraster
- Rasterformat
- Format- Throws:
GhostscriptException
-
displaySync
Description copied from interface:DisplayCallback
Method called on page flush.- Specified by:
displaySync
in interfaceDisplayCallback
- Throws:
GhostscriptException
-
displayUpdate
Description copied from interface:DisplayCallback
Method called to notify whenever a portion of the raster is updated.- Specified by:
displayUpdate
in interfaceDisplayCallback
- Parameters:
x
- X coordinatey
- Y coordinatewidth
- Widthheight
- Height- Throws:
GhostscriptException
-
getRasters
-