Skip to content

Commit 9bceb98

Browse files
author
john0005
committed
Local server samples copyright
1 parent 65b0c53 commit 9bceb98

File tree

8 files changed

+39
-23
lines changed

8 files changed

+39
-23
lines changed

src/main/java/com/esri/samples/localserver/local_server_dynamic_workspace_raster/LocalServerDynamicWorkspaceRasterSample.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2017 Esri.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
15+
*/
116

217
package com.esri.samples.localserver.local_server_dynamic_workspace_raster;
318

src/main/java/com/esri/samples/localserver/local_server_dynamic_workspace_shapefile/LocalServerDynamicWorkspaceShapefileSample.java

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Esri.
2+
* Copyright 2017 Esri.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
55
* use this file except in compliance with the License. You may obtain a copy of
@@ -15,9 +15,23 @@
1515
*/
1616

1717
package com.esri.samples.localserver.local_server_dynamic_workspace_shapefile;
18+
1819
import java.io.File;
1920
import java.util.Arrays;
2021

22+
import javafx.application.Application;
23+
import javafx.application.Platform;
24+
import javafx.geometry.Insets;
25+
import javafx.geometry.Pos;
26+
import javafx.scene.Scene;
27+
import javafx.scene.control.Alert;
28+
import javafx.scene.control.Alert.AlertType;
29+
import javafx.scene.control.Button;
30+
import javafx.scene.layout.StackPane;
31+
import javafx.stage.FileChooser;
32+
import javafx.stage.FileChooser.ExtensionFilter;
33+
import javafx.stage.Stage;
34+
2135
import com.esri.arcgisruntime.layers.ArcGISMapImageLayer;
2236
import com.esri.arcgisruntime.layers.ArcGISMapImageSublayer;
2337
import com.esri.arcgisruntime.layers.TableSublayerSource;
@@ -35,19 +49,6 @@
3549
import com.esri.arcgisruntime.symbology.SimpleLineSymbol.Style;
3650
import com.esri.arcgisruntime.symbology.SimpleRenderer;
3751

38-
import javafx.application.Application;
39-
import javafx.application.Platform;
40-
import javafx.geometry.Insets;
41-
import javafx.geometry.Pos;
42-
import javafx.scene.Scene;
43-
import javafx.scene.control.Alert;
44-
import javafx.scene.control.Alert.AlertType;
45-
import javafx.scene.control.Button;
46-
import javafx.scene.layout.StackPane;
47-
import javafx.stage.FileChooser;
48-
import javafx.stage.FileChooser.ExtensionFilter;
49-
import javafx.stage.Stage;
50-
5152
public class LocalServerDynamicWorkspaceShapefileSample extends Application {
5253

5354
private MapView mapView;
@@ -153,12 +154,12 @@ private void startLocalMapService(String fileName, String path) {
153154

154155
// add the sub layer to the image layer
155156
imageLayer.addDoneLoadingListener(() -> {
156-
if (imageLayer.getLoadStatus() == LoadStatus.LOADED) {
157+
if (imageLayer.getLoadStatus() == LoadStatus.LOADED) {
157158
// default symbol and renderer need to be created and applied
158159
SimpleLineSymbol lineSymbol = new SimpleLineSymbol(Style.SOLID, 0xFFFF0000, 3);
159160
shapefileSublayer.setRenderer(new SimpleRenderer(lineSymbol));
160161
imageLayer.getSublayers().add(shapefileSublayer);
161-
162+
162163
shapefileSublayer.addDoneLoadingListener(() -> {
163164
// zoom the map to the extent of the added shapefile layer
164165
mapView.setViewpoint(new Viewpoint(shapefileSublayer.getMapServiceSublayerInfo().getExtent()));

src/main/java/com/esri/samples/localserver/local_server_feature_layer/LocalServerFeatureLayerSample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Esri.
2+
* Copyright 2017 Esri.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
55
* use this file except in compliance with the License. You may obtain a copy of

src/main/java/com/esri/samples/localserver/local_server_geoprocessing/LocalServerGeoprocessingController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Esri.
2+
* Copyright 2017 Esri.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
55
* use this file except in compliance with the License. You may obtain a copy of

src/main/java/com/esri/samples/localserver/local_server_geoprocessing/LocalServerGeoprocessingSample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Esri.
2+
* Copyright 2017 Esri.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
55
* use this file except in compliance with the License. You may obtain a copy of

src/main/java/com/esri/samples/localserver/local_server_map_image_layer/LocalServerMapImageLayerSample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Esri.
2+
* Copyright 2017 Esri.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
55
* use this file except in compliance with the License. You may obtain a copy of

src/main/java/com/esri/samples/localserver/local_server_services/LocalServerServicesController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Esri.
2+
* Copyright 2017 Esri.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
55
* use this file except in compliance with the License. You may obtain a copy of

src/main/java/com/esri/samples/localserver/local_server_services/LocalServerServicesSample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Esri.
2+
* Copyright 2017 Esri.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
55
* use this file except in compliance with the License. You may obtain a copy of
@@ -25,7 +25,7 @@
2525
import javafx.stage.Stage;
2626

2727
public class LocalServerServicesSample extends Application {
28-
28+
2929
@Override
3030
public void start(Stage stage) throws IOException {
3131
// set up the scene

0 commit comments

Comments
 (0)