예제 #1
0
 public boolean determineLocation(MouseEvent e) {
   Projection projection = getProjection();
   if (cache != null && projection != null) {
     LatLonPoint ll = projection.inverse(e.getX(), e.getY(), new LatLonPoint.Double());
     location = new DTEDLocation(e.getX(), e.getY());
     location.setElevation(cache.getElevation((float) ll.getY(), (float) ll.getX()));
     location.generate(projection);
     repaint();
     return true;
   }
   return false;
 }