/** * Will draw the data of this node and the data of all subsequent nodes */ public void drawAll(Camera drawLocation) { if (data != null) { data.paint(drawLocation); } if (nextNode != null) { nextNode.drawAll(drawLocation); } }
/** * Will draw all of the nodes in the list */ public void drawAll(Camera drawLocation) { firstNode.drawAll(drawLocation); }