public static class AWTPrintLifecycle.Context extends Object
AWTPrintLifecycle
context simplifying calling setupPrint(..)
and AWTPrintLifecycle.releasePrint()
on all AWTPrintLifecycle
elements of a Container
.
See Usage.
Modifier and Type | Method and Description |
---|---|
int |
getCount() |
void |
releasePrint()
See Usage.
|
static AWTPrintLifecycle.Context |
setupPrint(Container c,
Graphics2D g2d,
double scaleMatX,
double scaleMatY)
See Usage.
|
public static AWTPrintLifecycle.Context setupPrint(Container c, Graphics2D g2d, double scaleMatX, double scaleMatY)
See Usage.
c
- container to be traversed through to perform setupPrint(..)
on all AWTPrintLifecycle
elements.g2d
- the Graphics2D
instance, which will be used for printing.scaleMatX
- Graphics2D
scaling factor
, i.e. rendering 1/scaleMatX * width pixelsscaleMatY
- Graphics2D
scaling factor
, i.e. rendering 1/scaleMatY * height pixelspublic void releasePrint()
See Usage.
public int getCount()
setupPrint(..)
or releasePrint()
.Copyright 2010 JogAmp Community.