public class Stroke{ public ArrayList dotList; public Stroke(){ dotList = new ArrayList(); } public void draw(){ beginShape(LINE_STRIP); for(int i=0; i< dotList.size(); i++){ vertex(((Dot)dotList.get(i)).x, ((Dot)dotList.get(i)).y); }// end for endShape(); }//end method draw() }//end class Stroke