コード例 #1
0
ファイル: ArcVisitor.java プロジェクト: mvidela/g2d
 @Override
 public void visit(Surface surface) {
   if (!connectFromPrev) {
     surface.getContext().moveTo(x, y);
   }
   surface.getContext().arc(x, y, radius, startAngle, endAngle, antiClockwise);
 }
コード例 #2
0
 @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);
 }