/** * Draws this chord. * * @param context */ @Override public boolean prepare(Context2D context, Attributes attr, double alpha) { double beg = getStartAngle(); double end = getEndAngle(); context.beginPath(); context.arc(0, 0, getRadius(), beg, end, isCounterClockwise()); context.closePath(); return true; }