public void reset(){
  coords.removeAllElements();
  xypoints.removeAllElements();
  profileLine.setLocation(setLLPoints(),OMGraphic.RADIANS);
  stateMachine.reset();
  layer.repaint();
  lastMouse=null;
}

public void reset ( ) { coords . removeAllElements ( ) ; xypoints . removeAllElements ( ) ; profileLine . setLocation ( setLLPoints ( ) , OMGraphic . RADIANS ) ; stateMachine . reset ( ) ; layer . repaint ( ) ; lastMouse = null ; }
clears the line from the screen , and resets the state machine .
