Skip to content

Commit e8b9c83

Browse files
committed
formatting
1 parent 37d5be4 commit e8b9c83

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/main/java/com/esri/samples/symbology/read_symbols_from_mobile_style_file/ReadSymbolsFromMobileStyleFileController.java

+10-11
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected void updateItem(SymbolStyleSearchResult item, boolean empty) {
105105
} else {
106106
// get the symbol from the list view entry, and create an image from it
107107
ListenableFuture<Image> symbolImageFuture = item.getSymbol().createSwatchAsync(0x00000000, 1);
108-
try{
108+
try {
109109
// get the resulting image
110110
Image symbolImage = symbolImageFuture.get();
111111
// create and image view and display it in the cell
@@ -208,7 +208,7 @@ private void loadSymbolsFromStyleFile() {
208208

209209
// loop through the results and add each item to a list view according to category
210210
List<SymbolStyleSearchResult> symbolStyleSearchResults = symbolStyleSearchResultFuture.get();
211-
symbolStyleSearchResults.forEach (symbolStyleSearchResult -> {
211+
symbolStyleSearchResults.forEach(symbolStyleSearchResult -> {
212212

213213
// add the SymbolStyleSearchResult object to the correct list for its category
214214
switch (symbolStyleSearchResult.getCategory().toLowerCase()) {
@@ -318,17 +318,16 @@ private void updateSymbolPreview(MultilayerPointSymbol multilayerPointSymbol) {
318318
* Updates the size of the symbol preview and the label when the size bar is interacted with.
319319
*/
320320
@FXML
321-
private void updateSymbolSize(){
322-
// get the slider value and convert to a string
323-
String sizeValue = Integer.toString((int) sizeSlider.getValue());
324-
// display the value in the label
325-
sizeLabel.setText(sizeValue + " px");
326-
327-
// update the preview
328-
buildCompositeSymbol();
321+
private void updateSymbolSize() {
322+
// get the slider value and convert to a string
323+
String sizeValue = Integer.toString((int) sizeSlider.getValue());
324+
// display the value in the label
325+
sizeLabel.setText(sizeValue + " px");
326+
327+
// update the preview
328+
buildCompositeSymbol();
329329
}
330330

331-
332331
/**
333332
* Clears all the graphics from the graphics overlay.
334333
*/

0 commit comments

Comments
 (0)