for (int i=0;i<oldAxisList.size();i++) removeAxis(i++);
int lastindex = oldAxisList.size()-1; for (int i = lastindex; i >= 0; i--) { removeAxis(i); }
     public void setAxisList(List axisList) {	 // remove the existing axes	 List oldAxisList = getAxes();	 for (int i=0;i<oldAxisList.size();i++)	     removeAxis(i++);	 //add new axes	 if (axisList != null && axisList.size() > 0) {	     Iterator iter = axisList.iterator();	     while (iter.hasNext())		 addAxis((Axis) iter.next());	 }     }