private static void paintShadow(Graphics2D g,ColorSet colorSet,ConnectionDrawing drawing){
  Color pre=g.getColor();
  Stroke s=g.getStroke();
  if (colorSet.getStyle() == WidgetDecorator.BLUEPRINT_STYLE) {
    g.setPaint(colorSet.getBackgroundPaint());
    g.setStroke(sLineShadowStroke);
  }
 else {
    g.setColor(colorSet.getShadow());
    g.setStroke(colorSet.getShadowStroke());
  }
  drawing.draw(g);
  g.setColor(pre);
  g.setStroke(s);
}

private static void paintShadow ( Graphics2D g , ColorSet colorSet , ConnectionDrawing drawing ) { Color pre = g . getColor ( ) ; Stroke s = g . getStroke ( ) ; if ( colorSet . getStyle ( ) == WidgetDecorator . BLUEPRINT_STYLE ) { g . setPaint ( colorSet . getBackgroundPaint ( ) ) ; g . setStroke ( sLineShadowStroke ) ; } else { g . setColor ( colorSet . getShadow ( ) ) ; g . setStroke ( colorSet . getShadowStroke ( ) ) ; } drawing . draw ( g ) ; g . setColor ( pre ) ; g . setStroke ( s ) ; }
utility to draw the given drawing as a shadow
