@Override
    protected boolean prepare(final Context2D context, final Attributes attr, final double alpha)
    {
        final double end = attr.getEndAngle();

        final double beg = attr.getStartAngle();

        if (beg == end)
        {
            return false;
        }
        final double ord = attr.getOuterRadius();

        final double ird = attr.getInnerRadius();

        final boolean ccw = attr.isCounterClockwise();

        if ((ord > 0) && (ird > 0))
        {
            context.beginPath();

            context.arc(0, 0, ord, beg, end, ccw);

            context.arc(0, 0, ird, end, beg, (false == ccw));

            context.closePath();

            return true;
        }
        return false;
    }
@ Override protected boolean prepare ( final Context2D context , final Attributes attr , final double alpha ) { final double end = attr . getEndAngle ( ) ; final double beg = attr . getStartAngle ( ) ; if ( beg == end ) { return false ; } final double ord = attr . getOuterRadius ( ) ; final double ird = attr . getInnerRadius ( ) ; final boolean ccw = attr . isCounterClockwise ( ) ; if ( ( ord > 0 ) && ( ird > 0 ) ) { context . beginPath ( ) ; context . arc ( 0 , 0 , ord , beg , end , ccw ) ; context . arc ( 0 , 0 , ird , end , beg , ( false == ccw ) ) ; context . closePath ( ) ; return true ; } return false ; }
Draws this slice.

@param context