|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
Public Member Functions | |
| OnscreenPrintable (final PrinterJob job, final Container printContainer, final int printDPI, final int numSamples, final int tileWidth, final int tileHeight) | |
| int | print (final Graphics g, final PageFormat pf, final int page) throws PrinterException |
Public Member Functions inherited from com.jogamp.opengl.test.junit.jogl.tile.PrintableBase | |
| PrintableBase (final PrinterJob job, final Container printContainer, final int printDPI, final int numSamples, final int tileWidth, final int tileHeight) | |
| void | waitUntilIdle () |
| Wait for idle . More... | |
Additional Inherited Members | |
Public Attributes inherited from com.jogamp.opengl.test.junit.jogl.tile.PrintableBase | |
| final PrinterJob | job |
| final Container | cont |
| final int | dpi |
| final int | numSamples |
| final int | tileWidth |
| final int | tileHeight |
Static Public Attributes inherited from com.jogamp.opengl.test.junit.jogl.tile.PrintableBase | |
| static final double | MM_PER_INCH = 25.4 |
Protected Attributes inherited from com.jogamp.opengl.test.junit.jogl.tile.PrintableBase | |
| final RecursiveLock | lockPrinting = LockFactory.createRecursiveLock() |
We fit the frame into the imageable area with for 72 dpi, assuming that is the default AWT painting density.
The frame borders are considered.
The frame's scale factor is used for the graphics print matrix of the overall print-job, hence no frame resize is required.
The GL scale factor 'scaleGLMatXY', 72dpi/glDPI, is passed to the GL object which locally scales the print matrix and renders the scene with 1/scaleGLMatXY pixels.
Definition at line 62 of file OnscreenPrintable.java.
| com.jogamp.opengl.test.junit.jogl.tile.OnscreenPrintable.OnscreenPrintable | ( | final PrinterJob | job, |
| final Container | printContainer, | ||
| final int | printDPI, | ||
| final int | numSamples, | ||
| final int | tileWidth, | ||
| final int | tileHeight | ||
| ) |
| job | |
| printContainer | |
| printDPI | |
| numSamples | multisampling value: < 0 turns off, == 0 leaves as-is, > 0 enables using given num samples |
| tileWidth | custom tile width for tile renderer, pass -1 for default. |
| tileHeight | custom tile height for tile renderer, pass -1 for default. |
Definition at line 73 of file OnscreenPrintable.java.
| int com.jogamp.opengl.test.junit.jogl.tile.OnscreenPrintable.print | ( | final Graphics | g, |
| final PageFormat | pf, | ||
| final int | page | ||
| ) | throws PrinterException |
Definition at line 79 of file OnscreenPrintable.java.