-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 0.9 - all main features complete
- Loading branch information
Bennet Krause
committed
Dec 1, 2016
1 parent
089e0aa
commit b1e3469
Showing
10 changed files
with
180 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
fdp/src/main/java/view/controller/ChartWindowController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package view.controller; | ||
|
||
import java.util.List; | ||
|
||
import fdp.GraphConfiguration; | ||
import javafx.fxml.FXML; | ||
import javafx.scene.chart.LineChart; | ||
import javafx.scene.chart.XYChart; | ||
import javafx.scene.chart.XYChart.Data; | ||
import javafx.scene.chart.XYChart.Series; | ||
|
||
public class ChartWindowController { | ||
|
||
@FXML | ||
private LineChart<Double, Integer> chart; | ||
|
||
/** | ||
* Called by the {@link FindOptimumController} to display the result of the cooling rate optimization. | ||
* @param seriesList | ||
* @param configs | ||
*/ | ||
void showChart(List<List<Data<Double, Integer>>> seriesList, List<GraphConfiguration> configs) { | ||
|
||
chart.setCreateSymbols(false); | ||
|
||
for (int i = 0; i < seriesList.size(); i++) { | ||
XYChart.Series<Double, Integer> xySeries = new Series<>(); | ||
xySeries.getData().addAll(seriesList.get(i)); | ||
chart.getData().add(xySeries); | ||
xySeries.setName("Fa = " + configs.get(i).getParameter().getAttractiveForce() + "; Fr = " + configs.get(i).getParameter().getRepulsiveForce()); | ||
} | ||
} | ||
} |
Oops, something went wrong.