code: 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);
              }
          }
      }
docs: Applies this shape's Shadow.
  
  @param context
  @param attr
  @return boolean