/*
 * Copyright 2018 Esri.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package com.esri.samples.displayinformation.sketch_on_map;

import com.esri.arcgisruntime.concurrent.ListenableFuture;
import com.esri.arcgisruntime.geometry.Geometry;
import com.esri.arcgisruntime.geometry.GeometryType;
import com.esri.arcgisruntime.mapping.ArcGISMap;
import com.esri.arcgisruntime.mapping.Basemap;
import com.esri.arcgisruntime.mapping.view.Graphic;
import com.esri.arcgisruntime.mapping.view.GraphicsOverlay;
import com.esri.arcgisruntime.mapping.view.IdentifyGraphicsOverlayResult;
import com.esri.arcgisruntime.mapping.view.MapView;
import com.esri.arcgisruntime.mapping.view.SketchCreationMode;
import com.esri.arcgisruntime.mapping.view.SketchEditor;
import com.esri.arcgisruntime.symbology.SimpleFillSymbol;
import com.esri.arcgisruntime.symbology.SimpleLineSymbol;
import com.esri.arcgisruntime.symbology.SimpleMarkerSymbol;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.geometry.Insets;
import javafx.geometry.Orientation;
import javafx.geometry.Point2D;
import javafx.geometry.Pos;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Control;
import javafx.scene.control.Tooltip;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.Background;
import javafx.scene.layout.BackgroundFill;
import javafx.scene.layout.CornerRadii;
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Paint;
import javafx.stage.Stage;

import java.io.IOException;

public class SketchOnMapSample extends Application {

  private static SketchOnMapController controller;

  @Override
  public void start(Stage stage) throws IOException {

    // set up the scene
    FXMLLoader loader = new FXMLLoader(getClass().getResource("/fxml/sketch_on_map.fxml"));
    Parent root = loader.load();
    controller = loader.getController();
    Scene scene = new Scene(root);

    // set up the stage
    stage.setTitle("Sketch on Map Sample");
    stage.setWidth(1000);
    stage.setHeight(700);
    stage.setScene(scene);
    stage.show();
  }


  /**
   * Stops and releases all resources used in application
   */
  @Override
  public void stop() { controller.terminate(); }

  /**
   * Opens and runs application.
   *
   * @param args arguments passed to this application
   */
  public static void main(String[] args) {

    Application.launch(args);
  }
}
@@ -650,1519 +650,124 @@
 ort 
-com.esri.arcgisruntime.concurrent.ListenableFuture;%0Aimport com.esri.arcgisruntime.geometry.Geometry;%0Aimport com.esri.arcgisruntime.geometry.GeometryType;%0Aimport com.esri.arcgisruntime.mapping.ArcGISMap;%0Aimport com.esri.arcgisruntime.mapping.Basemap;%0Aimport com.esri.arcgisruntime.mapping.view.Graphic;%0Aimport com.esri.arcgisruntime.mapping.view.GraphicsOverlay;%0Aimport com.esri.arcgisruntime.mapping.view.IdentifyGraphicsOverlayResult;%0Aimport com.esri.arcgisruntime.mapping.view.MapView;%0Aimport com.esri.arcgisruntime.mapping.view.SketchCreationMode;%0Aimport com.esri.arcgisruntime.mapping.view.SketchEditor;%0Aimport com.esri.arcgisruntime.symbology.SimpleFillSymbol;%0Aimport com.esri.arcgisruntime.symbology.SimpleLineSymbol;%0Aimport com.esri.arcgisruntime.symbology.SimpleMarkerSymbol;%0A%0Aimport javafx.application.Application;%0Aimport javafx.fxml.FXMLLoader;%0Aimport javafx.geometry.Insets;%0Aimport javafx.geometry.Orientation;%0Aimport javafx.geometry.Point2D;%0Aimport javafx.geometry.Pos;%0Aimport javafx.scene.Parent;%0Aimport javafx.scene.Scene;%0Aimport javafx.scene.control.Button;%0Aimport javafx.scene.control.Control;%0Aimport javafx.scene.control.Tooltip;%0Aimport javafx.scene.image.Image;%0Aimport javafx.scene.image.ImageView;%0Aimport javafx.scene.layout.Background;%0Aimport javafx.scene.layout.BackgroundFill;%0Aimport javafx.scene.layout.CornerRadii;%0Aimport javafx.scene.layout.FlowPane;%0Aimport javafx.scene.layout.HBox;%0Aimport javafx.scene.layout.StackPane;%0Aimport javafx.scene.layout.VBox;%0Aimport javafx.scene.paint.Paint
+javafx.application.Application;%0Aimport javafx.fxml.FXMLLoader;%0Aimport javafx.scene.Parent;%0Aimport javafx.scene.Scene
 ;%0Aim

Update SketchOnMapSample.java