protected void addProfileEvent(MouseEvent event){
  LatLonPoint llp=proj.inverse(event.getX(),event.getY(),new LatLonPoint.Double());
  if (lastMouse != null) {
    if ((Math.abs(lastMouse.getX() - event.getX()) > MAX_SPACE_BETWEEN_PIXELS) || (Math.abs(lastMouse.getY() - event.getY()) > MAX_SPACE_BETWEEN_PIXELS)) {
      addGreatCirclePoints(lastMouse,event);
      coords.addElement(llp);
      xypoints.addElement(event.getPoint());
    }
  }
 else {
    coords.addElement(llp);
    xypoints.addElement(event.getPoint());
  }
  lastMouse=event;
  profileLine.setLocation(setLLPoints(),OMGraphic.RADIANS);
  profileLine.generate(proj);
}

protected void addProfileEvent ( MouseEvent event ) { LatLonPoint llp = proj . inverse ( event . getX ( ) , event . getY ( ) , new LatLonPoint . Double ( ) ) ; if ( lastMouse != null ) { if ( ( Math . abs ( lastMouse . getX ( ) - event . getX ( ) ) > MAX_SPACE_BETWEEN_PIXELS ) || ( Math . abs ( lastMouse . getY ( ) - event . getY ( ) ) > MAX_SPACE_BETWEEN_PIXELS ) ) { addGreatCirclePoints ( lastMouse , event ) ; coords . addElement ( llp ) ; xypoints . addElement ( event . getPoint ( ) ) ; } } else { coords . addElement ( llp ) ; xypoints . addElement ( event . getPoint ( ) ) ; } lastMouse = event ; profileLine . setLocation ( setLLPoints ( ) , OMGraphic . RADIANS ) ; profileLine . generate ( proj ) ; }
used to keep track of another point for the line , as determined by the state machine .
