public void updateData(boolean vpSelected){
  if (!vpSelected && (currentVPS != null))   list.clearSelection();
  ViewpointNode viewpointNode=controller.getViewpointNode();
  viewpointNode.getViewpoint(tempVPS);
  coord.set(tempVPS.location);
  locationField.setLocalValue(coord);
  directionField.setValue(tempVPS.direction);
  distanceField.setValue(tempVPS.distance);
  azEl[0]=Math.toDegrees(tempVPS.azimuth);
  azEl[1]=Math.toDegrees(tempVPS.elevation);
  azElField.setValue(azEl);
  magnificationField.setValue(BasicCamera.magFactor[tempVPS.magIndex]);
  double alt=viewpointNode.getAltitude();
  if (Double.isNaN(alt)) {
    altitudeField.setText("N/A");
  }
 else {
    altitudeField.setValue(alt);
  }
  hike.setSelected(tempVPS.hikeMode);
}

public void updateData ( boolean vpSelected ) { if ( ! vpSelected && ( currentVPS != null ) ) list . clearSelection ( ) ; ViewpointNode viewpointNode = controller . getViewpointNode ( ) ; viewpointNode . getViewpoint ( tempVPS ) ; coord . set ( tempVPS . location ) ; locationField . setLocalValue ( coord ) ; directionField . setValue ( tempVPS . direction ) ; distanceField . setValue ( tempVPS . distance ) ; azEl [ 0 ] = Math . toDegrees ( tempVPS . azimuth ) ; azEl [ 1 ] = Math . toDegrees ( tempVPS . elevation ) ; azElField . setValue ( azEl ) ; magnificationField . setValue ( BasicCamera . magFactor [ tempVPS . magIndex ] ) ; double alt = viewpointNode . getAltitude ( ) ; if ( Double . isNaN ( alt ) ) { altitudeField . setText ( "N/A" ) ; } else { altitudeField . setValue ( alt ) ; } hike . setSelected ( tempVPS . hikeMode ) ; }
viewpoint moved . update the attributes panel .
