Пример #1
0
 @Override
 public void visit(Surface surface) {
   if (!connectFromPrev) {
     surface.getContext().moveTo(x, y);
   }
   surface.getContext().arc(x, y, radius, startAngle, endAngle, antiClockwise);
 }
 @Override
 public void visit(Surface surface) {
   Context context = surface.getContext();
   context.moveTo(x, y);
   context.lineTo(x + width, y);
   context.lineTo(x + width, y + height);
   context.lineTo(x, y + height);
   context.lineTo(x, y);
 }