public void arcLine(final int cx,final int cy,final int innerRadius,final int outerRadius,final double angle,final boolean in,final Long colorLine,final Long colorDot,final int dotDist,final int dotPos,final int dotRadius,final boolean dotFilled){
  final double a=PI180 * angle;
  final double cosa=Math.cos(a);
  final double sina=Math.sin(a);
  final int xi=cx + (int)(innerRadius * cosa);
  final int yi=cy - (int)(innerRadius * sina);
  final int xo=cx + (int)(outerRadius * cosa);
  final int yo=cy - (int)(outerRadius * sina);
  if (in) {
    line(xo,yo,xi,yi,colorLine,100,colorDot,100,dotDist,dotPos,dotRadius,dotFilled);
  }
 else {
    line(xi,yi,xo,yo,colorLine,100,colorDot,100,dotDist,dotPos,dotRadius,dotFilled);
  }
}

public void arcLine ( final int cx , final int cy , final int innerRadius , final int outerRadius , final double angle , final boolean in , final Long colorLine , final Long colorDot , final int dotDist , final int dotPos , final int dotRadius , final boolean dotFilled ) { final double a = PI180 * angle ; final double cosa = Math . cos ( a ) ; final double sina = Math . sin ( a ) ; final int xi = cx + ( int ) ( innerRadius * cosa ) ; final int yi = cy - ( int ) ( innerRadius * sina ) ; final int xo = cx + ( int ) ( outerRadius * cosa ) ; final int yo = cy - ( int ) ( outerRadius * sina ) ; if ( in ) { line ( xo , yo , xi , yi , colorLine , 100 , colorDot , 100 , dotDist , dotPos , dotRadius , dotFilled ) ; } else { line ( xi , yi , xo , yo , colorLine , 100 , colorDot , 100 , dotDist , dotPos , dotRadius , dotFilled ) ; } }
draw a portion of a line from the center of a circle
