|
9 | 9 | import java.io.FileNotFoundException;
|
10 | 10 | import java.io.IOException;
|
11 | 11 | import java.net.MalformedURLException;
|
| 12 | +import java.nio.file.Paths; |
12 | 13 | import java.util.ArrayList;
|
13 | 14 | import java.util.Collections;
|
14 | 15 | import java.util.List;
|
@@ -59,23 +60,22 @@ public CodeChartsCoordinator(ConfigClient configClient, DataBaseClient dataBaseC
|
59 | 60 | this.imageView = imageView;
|
60 | 61 | this.codeCharts = codeCharts;
|
61 | 62 | codeChartsInput = new CodeChartsInput();
|
62 |
| - |
63 | 63 | // BILD SETZEN
|
64 | 64 | String imageUrl = Files.saveImage(configClient.getConfig().getImageUrl());
|
65 |
| - Image image = new Image(imageUrl); |
| 65 | + Image image = new Image(Paths.get(imageUrl).toUri().toString()); |
66 | 66 | imageViewPort = new Rectangle2D(0, 0, image.getWidth(), image.getHeight());
|
67 | 67 | imageView.setImage(image);
|
68 | 68 | imageView.setVisible(false);
|
69 | 69 |
|
70 | 70 | // Konfiguration abspeichern
|
71 | 71 | CodeChartsConfiguration ccConfig = configClient.getConfig().getCodeChartsConfiguration();
|
72 |
| - iterations = ccConfig.getInterations(); |
| 72 | + iterations = ccConfig.getIterations(); |
73 | 73 | maxDepth = ccConfig.getMaxDepth();
|
74 | 74 | relativeSize = ccConfig.getRandomized();
|
75 | 75 | timings = ccConfig.getTimings();
|
76 | 76 |
|
77 | 77 | // String-Listen initialisieren
|
78 |
| - usableStrings = dataBaseClient.strings.get(ccConfig.getStringId()); |
| 78 | + usableStrings = ccConfig.getStrings(); |
79 | 79 | if (usableStrings == null) {
|
80 | 80 | throw new IllegalArgumentException("no strings provided!");
|
81 | 81 | }
|
|
0 commit comments