_canvas.setBackground(preferences.getBackgroundColor());
// Beste Tour Iteration
pE.gc.setForeground(preferences.getBestTourIterationColor());
for (int i = 0; i < result.getBestTourIteration().size() - 1; i++) {
Node node = result.getBestTourIteration().get(i);
Node otherNode = result.getBestTourIteration().get(i + 1);
pE.gc.drawLine((int) (node.getxCoordinate() * zoomFactor) + BORDER_WIDTH, (int) (node.getyCoordinate() * zoomFactor) + BORDER_WIDTH,
(int) (otherNode.getxCoordinate() * zoomFactor) + BORDER_WIDTH, (int) (otherNode.getyCoordinate() * zoomFactor)
+ BORDER_WIDTH);
}
// Beste Tour global
pE.gc.setForeground(preferences.getBestTourGlobalColor());
for (int i = 0; i < result.getBestTourGlobal().size() - 1; i++) {
Node node = result.getBestTourGlobal().get(i);
Node otherNode = result.getBestTourGlobal().get(i + 1);
pE.gc.drawLine((int) (node.getxCoordinate() * zoomFactor) + BORDER_WIDTH, (int) (node.getyCoordinate() * zoomFactor) + BORDER_WIDTH,
(int) (otherNode.getxCoordinate() * zoomFactor) + BORDER_WIDTH, (int) (otherNode.getyCoordinate() * zoomFactor)
+ BORDER_WIDTH);
}
// Nodes
pE.gc.setBackground(preferences.getNodeColor());
for (Node node : nodeList) {