public void setupLocalViews(View view) {
    cameraSpinner = (SpinnerSelfSelect) view.findViewById(id.cameraFileSpinner);
    footprintCheckBox = (CheckBox) view.findViewById(id.CheckBoxFootprints);

    angleView = (SeekBarWithText) view.findViewById(id.angleView);
    overlapView = (SeekBarWithText) view.findViewById(id.overlapView);
    sidelapView = (SeekBarWithText) view.findViewById(id.sidelapView);
    altitudeView = (SeekBarWithText) view.findViewById(id.altitudeView);

    innerWPsCheckbox = (CheckBox) view.findViewById(id.checkBoxInnerWPs);

    areaTextView = (TextView) view.findViewById(id.areaTextView);
    distanceBetweenLinesTextView = (TextView) view.findViewById(id.distanceBetweenLinesTextView);
    footprintTextView = (TextView) view.findViewById(id.footprintTextView);
    groundResolutionTextView = (TextView) view.findViewById(id.groundResolutionTextView);
    distanceTextView = (TextView) view.findViewById(id.distanceTextView);
    numberOfPicturesView = (TextView) view.findViewById(id.numberOfPicturesTextView);
    numberOfStripsView = (TextView) view.findViewById(id.numberOfStripsTextView);
    lengthView = (TextView) view.findViewById(id.lengthTextView);

    cameraAdapter =
        new CamerasAdapter(getActivity(), android.R.layout.simple_spinner_dropdown_item);
    cameraSpinner.setAdapter(cameraAdapter);

    footprintCheckBox.setOnClickListener(this);
    angleView.setOnChangedListener(this);
    altitudeView.setOnChangedListener(this);
    overlapView.setOnChangedListener(this);
    sidelapView.setOnChangedListener(this);
    innerWPsCheckbox.setOnClickListener(this);
    cameraSpinner.setOnSpinnerItemSelectedListener(this);
  }
  @Override
  public void onSeekBarChanged() {
    survey.update(
        angleView.getValue(),
        new Altitude(altitudeView.getValue()),
        overlapView.getValue(),
        sidelapView.getValue());
    try {
      survey.build();
      altitudeView.setBackgroundColor(Color.TRANSPARENT);
    } catch (Exception e) {
      e.printStackTrace();
      altitudeView.setBackgroundColor(Color.RED);
    }

    survey.getMission().notifyMissionUpdate();
  }
 private void updateSeekBars() {
   altitudeView.setValue(survey.surveyData.getAltitude().valueInMeters());
   angleView.setValue(survey.surveyData.getAngle());
   overlapView.setValue(survey.surveyData.getOverlap());
   sidelapView.setValue(survey.surveyData.getSidelap());
 }