/** * Sets the Shape stroke. * * @param context * @param attr */ protected void stroke(Context2D context, Attributes attr, double alpha) { context.save(); if (setStrokeParams(context, attr, alpha)) { if (context.isSelection()) { context.stroke(); } else { doApplyShadow(context, attr); context.stroke(); } } context.restore(); }