Package com.jogamp.nativewindow.awt
Class AWTPrintLifecycle.Context
- java.lang.Object
-
- com.jogamp.nativewindow.awt.AWTPrintLifecycle.Context
-
- Enclosing interface:
- AWTPrintLifecycle
public static class AWTPrintLifecycle.Context extends Object
ConvenientAWTPrintLifecycle
context simplifying callingsetupPrint(..)
andAWTPrintLifecycle.releasePrint()
on allAWTPrintLifecycle
elements of aContainer
.See Usage.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
void
releasePrint()
See Usage.static AWTPrintLifecycle.Context
setupPrint(Container c, double scaleMatX, double scaleMatY, int numSamples, int tileWidth, int tileHeight)
See Usage.
-
-
-
Method Detail
-
setupPrint
public static AWTPrintLifecycle.Context setupPrint(Container c, double scaleMatX, double scaleMatY, int numSamples, int tileWidth, int tileHeight)
See Usage.
- Parameters:
c
- container to be traversed through to performsetupPrint(..)
on allAWTPrintLifecycle
elements.scaleMatX
-Graphics2D
scaling factor
, i.e. rendering 1/scaleMatX * width pixelsscaleMatY
-Graphics2D
scaling factor
, i.e. rendering 1/scaleMatY * height pixelsnumSamples
- multisampling value: < 0 turns off, == 0 leaves as-is, > 0 enables using given num samplestileWidth
- custom tile width fortile renderer
, pass -1 for default.tileHeight
- custom tile height fortile renderer
, pass -1 for default.- Returns:
- the context
-
releasePrint
public void releasePrint()
See Usage.
-
getCount
public int getCount()
- Returns:
- count of performed actions of last
setupPrint(..)
orreleasePrint()
.
-
-