question: @ Override public void renderFormsOntoG2InHeadless ( final Object raw , final int pageIndex , final Map componentsToIgnore , final FormFactory formFactory ) { if ( formsOrdered == null || formsOrdered [ pageIndex ] == null ) { return ; } this . componentsToIgnore = componentsToIgnore ; FormObject formObject ; final boolean isPrinting = formFactory != null ; final Graphics2D g2 = ( Graphics2D ) raw ; final AffineTransform defaultAf = g2 . getTransform ( ) ; final AffineTransform aff = g2 . getTransform ( ) ; aff . scale ( 1 , 1 ) ; g2 . setTransform ( aff ) ; for ( final FormObject nextVal : formsOrdered [ pageIndex ] ) { if ( nextVal != null ) { formObject = nextVal ; final boolean [ ] flags = formObject . getCharacteristics ( ) ; if ( ( ( flags [ 1 ] || ( isPrinting && ! flags [ 2 ] ) ) ) ) { continue ; } renderComponent ( g2 , formObject , isPrinting ) ; } } g2 . setTransform ( defaultAf ) ; }
target:  Draw forms without swing