|
16 | 16 | ~ the License. |
17 | 17 | --> |
18 | 18 |
|
| 19 | + |
19 | 20 | <?import javafx.geometry.Insets?> |
20 | 21 | <?import javafx.scene.control.Button?> |
| 22 | +<?import javafx.scene.control.CheckBox?> |
21 | 23 | <?import javafx.scene.control.Label?> |
22 | | -<?import javafx.scene.control.Separator?> |
23 | 24 | <?import javafx.scene.control.Slider?> |
24 | 25 | <?import javafx.scene.layout.Background?> |
25 | 26 | <?import javafx.scene.layout.BackgroundFill?> |
| 27 | +<?import javafx.scene.layout.BorderPane?> |
26 | 28 | <?import javafx.scene.layout.StackPane?> |
27 | 29 | <?import javafx.scene.layout.VBox?> |
28 | 30 | <?import javafx.scene.paint.Color?> |
29 | 31 | <?import com.esri.arcgisruntime.mapping.view.SceneView?> |
30 | | -<?import javafx.scene.control.CheckBox?> |
31 | 32 | <?import javafx.scene.layout.HBox?> |
32 | | -<StackPane fx:controller="com.esri.samples.scene.orbit_the_camera_around_an_object.OrbitTheCameraAroundAnObjectController" |
33 | | - xmlns:fx="http://javafx.com/fxml" |
34 | | - stylesheets="/css/style.css"> |
| 33 | +<StackPane |
| 34 | + fx:id="stackpane" |
| 35 | + fx:controller="com.esri.samples.scene.orbit_the_camera_around_an_object.OrbitTheCameraAroundAnObjectController" |
| 36 | + xmlns:fx="http://javafx.com/fxml" |
| 37 | + stylesheets="/css/style.css"> |
35 | 38 | <SceneView fx:id="sceneView"/> |
36 | 39 |
|
37 | | - <!--View buttons--> |
38 | | - <VBox StackPane.alignment="BOTTOM_RIGHT" maxWidth="200" maxHeight="50" styleClass="panel-region" spacing="11" alignment="TOP_CENTER"> |
39 | | - <StackPane.margin> |
40 | | - <Insets bottom="20" right="10"/> |
41 | | - </StackPane.margin> |
42 | | - <padding> |
43 | | - <Insets topRightBottomLeft="10"/> |
44 | | - </padding> |
45 | | - <Button text="Cockpit view" maxWidth="Infinity" onAction="#handleCockpitViewButtonClicked"/> |
46 | | - <Button text="Center view" maxWidth="Infinity" onAction="#handleFollowViewButtonClicked"/> |
47 | | - |
48 | | - <background> |
49 | | - <Background> |
50 | | - <fills> |
51 | | - <BackgroundFill> |
52 | | - <fill> |
53 | | - <Color opacity="0.3"/> |
54 | | - </fill> |
55 | | - </BackgroundFill> |
56 | | - </fills> |
57 | | - </Background> |
58 | | - </background> |
59 | | - </VBox> |
| 40 | + <BorderPane pickOnBounds="false"> |
| 41 | + <top> |
| 42 | + <!--View buttons--> |
| 43 | + <VBox StackPane.alignment="TOP_LEFT" maxWidth="200" maxHeight="50" styleClass="panel-region" spacing="11" |
| 44 | + alignment="TOP_CENTER"> |
| 45 | + <StackPane.margin> |
| 46 | + <Insets bottom="20" right="10"/> |
| 47 | + </StackPane.margin> |
| 48 | + <padding> |
| 49 | + <Insets topRightBottomLeft="10"/> |
| 50 | + </padding> |
| 51 | + <Button text="Cockpit view" maxWidth="Infinity" onAction="#handleCockpitViewButtonClicked"/> |
| 52 | + <Button text="Center view" maxWidth="Infinity" onAction="#handleFollowViewButtonClicked"/> |
60 | 53 |
|
61 | | - <!--Camera heading--> |
62 | | - <VBox StackPane.alignment="BOTTOM_LEFT" maxWidth="500" maxHeight="50" styleClass="panel-region" spacing="6"> |
63 | | - <StackPane.margin> |
64 | | - <Insets bottom="20" left="10"/> |
65 | | - </StackPane.margin> |
66 | | - <padding> |
67 | | - <Insets top="10" left="30" right="30" bottom="10"/> |
68 | | - </padding> |
69 | | - <HBox alignment="TOP_LEFT" maxWidth="Infinity"> |
70 | | - <Label text="Camera Heading" maxWidth="Infinity" HBox.hgrow="ALWAYS"> |
71 | | - <!--<padding>--> |
72 | | - <!--<Insets left="10" right="130"/>--> |
73 | | - <!--</padding>--> |
74 | | - </Label> |
75 | | - <CheckBox fx:id="allowDistanceInteractionCheckBox" text="Allow camera distance interaction" selected="true" |
76 | | - onAction="#handleDistanceInteractionCheckBoxToggle" HBox.hgrow="ALWAYS"/> |
77 | | - </HBox> |
78 | | - |
79 | | - <Slider fx:id="cameraHeadingSlider" min="-180" max="180" majorTickUnit="90" showTickMarks="true" |
80 | | - showTickLabels="true" maxWidth="Infinity" VBox.vgrow="ALWAYS"/> |
81 | | - <background> |
82 | | - <Background> |
83 | | - <fills> |
84 | | - <BackgroundFill> |
85 | | - <fill> |
86 | | - <Color opacity="0.3"/> |
87 | | - </fill> |
88 | | - </BackgroundFill> |
89 | | - </fills> |
90 | | - </Background> |
91 | | - </background> |
92 | | - </VBox> |
93 | | - |
94 | | - <!--Plane pitch--> |
95 | | - <VBox StackPane.alignment="CENTER_RIGHT" alignment="CENTER" maxWidth="100" maxHeight="300" styleClass="panel-region" |
96 | | - spacing="6"> |
97 | | - <StackPane.margin> |
98 | | - <Insets right="10" top="110"/> |
99 | | - </StackPane.margin> |
100 | | - <padding> |
101 | | - <Insets topRightBottomLeft="10"/> |
102 | | - </padding> |
103 | | - <Label text="Plane Pitch"/> |
104 | | - <Slider fx:id="planePitchSlider" orientation="VERTICAL" min="-90" max="90" majorTickUnit="45" showTickMarks="true" |
105 | | - showTickLabels="true" maxHeight="Infinity" VBox.vgrow="ALWAYS"/> |
106 | | - <background> |
107 | | - <Background> |
108 | | - <fills> |
109 | | - <BackgroundFill> |
110 | | - <fill> |
111 | | - <Color opacity="0.3"/> |
112 | | - </fill> |
113 | | - </BackgroundFill> |
114 | | - </fills> |
115 | | - </Background> |
116 | | - </background> |
117 | | - </VBox> |
| 54 | + <background> |
| 55 | + <Background> |
| 56 | + <fills> |
| 57 | + <BackgroundFill> |
| 58 | + <fill> |
| 59 | + <Color opacity="0.3"/> |
| 60 | + </fill> |
| 61 | + </BackgroundFill> |
| 62 | + </fills> |
| 63 | + </Background> |
| 64 | + </background> |
| 65 | + </VBox> |
| 66 | + </top> |
| 67 | + <right> |
| 68 | + <!--Plane pitch--> |
| 69 | + <VBox BorderPane.alignment="CENTER_RIGHT" alignment="CENTER" maxWidth="100" maxHeight="300" |
| 70 | + styleClass="panel-region" spacing="6"> |
| 71 | + <StackPane.margin> |
| 72 | + <Insets right="10"/> |
| 73 | + </StackPane.margin> |
| 74 | + <padding> |
| 75 | + <Insets topRightBottomLeft="10"/> |
| 76 | + </padding> |
| 77 | + <Label text="Plane Pitch"/> |
| 78 | + <Slider fx:id="planePitchSlider" orientation="VERTICAL" min="-90" max="90" majorTickUnit="45" showTickMarks="true" |
| 79 | + showTickLabels="true" maxHeight="Infinity" VBox.vgrow="ALWAYS"/> |
| 80 | + <background> |
| 81 | + <Background> |
| 82 | + <fills> |
| 83 | + <BackgroundFill> |
| 84 | + <fill> |
| 85 | + <Color opacity="0.3"/> |
| 86 | + </fill> |
| 87 | + </BackgroundFill> |
| 88 | + </fills> |
| 89 | + </Background> |
| 90 | + </background> |
| 91 | + </VBox> |
| 92 | + </right> |
| 93 | + <bottom> |
| 94 | + <!--Camera heading--> |
| 95 | + <VBox BorderPane.alignment="BOTTOM_CENTER" minWidth="100" maxWidth="500" maxHeight="50" |
| 96 | + styleClass="panel-region" spacing="6"> |
| 97 | + <BorderPane.margin> |
| 98 | + <Insets topRightBottomLeft="20"/> |
| 99 | + </BorderPane.margin> |
| 100 | + <padding> |
| 101 | + <Insets topRightBottomLeft="10"/> |
| 102 | + </padding> |
| 103 | + <HBox maxWidth="Infinity"> |
| 104 | + <Label text="Camera Heading" HBox.hgrow="ALWAYS" maxWidth="Infinity"/> |
| 105 | + <CheckBox fx:id="allowDistanceInteractionCheckBox" text="Allow camera distance interaction" |
| 106 | + selected="true" onAction="#handleDistanceInteractionCheckBoxToggle"/> |
| 107 | + </HBox> |
| 108 | + <Slider fx:id="cameraHeadingSlider" min="-180" max="180" majorTickUnit="90" showTickMarks="true" |
| 109 | + showTickLabels="true" HBox.hgrow="ALWAYS"/> |
| 110 | + <background> |
| 111 | + <Background> |
| 112 | + <fills> |
| 113 | + <BackgroundFill> |
| 114 | + <fill> |
| 115 | + <Color opacity="0.3"/> |
| 116 | + </fill> |
| 117 | + </BackgroundFill> |
| 118 | + </fills> |
| 119 | + </Background> |
| 120 | + </background> |
| 121 | + </VBox> |
| 122 | + </bottom> |
| 123 | + </BorderPane> |
118 | 124 | </StackPane> |
119 | 125 |
|
120 | 126 |
|
121 | | - |
|
0 commit comments