public void paint ( Graphics2D g ) { g . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_ON ) ; origAlpha = 1.0f ; Composite origComposite = g . getComposite ( ) ; if ( origComposite instanceof AlphaComposite ) { AlphaComposite origAlphaComposite = ( AlphaComposite ) origComposite ; if ( origAlphaComposite . getRule ( ) == AlphaComposite . SRC_OVER ) { origAlpha = origAlphaComposite . getAlpha ( ) ; } } // _0 AffineTransform trans_0 = g . getTransform ( ) ; paintRootGraphicsNode_0 ( g ) ; g . setTransform ( trans_0 ) ; }
Paints the transcoded SVG image on the specified graphics context . You can install a custom transformation on the graphics context to scale the image .