protected final void doApplyShadow ( final Context2D context , final Attributes attr ) { if ( ( false == isAppliedShadow ( ) ) && ( attr . hasShadow ( ) ) ) { setAppliedShadow ( true ) ; final Shadow shadow = attr . getShadow ( ) ; if ( null != shadow ) { context . setShadow ( shadow ) ; } } }
Applies this shape s Shadow .