@Override public final void lineTo(final float x,final float y){
  elements.add(new LineTo(x,y));
  currentPos[0]=x;
  currentPos[1]=y;
}

@ Override public final void lineTo ( final float x , final float y ) { elements . add ( new LineTo ( x , y ) ) ; currentPos [ 0 ] = x ; currentPos [ 1 ] = y ; }
add a line to the shape
