mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Quick change to stop adding course markers as they are dynamic and add them in the previous way
This commit is contained in:
@@ -100,24 +100,7 @@ public class CanvasController {
|
||||
gc.setFill(Color.SKYBLUE);
|
||||
gc.fillRect(0,0, CANVAS_WIDTH, CANVAS_HEIGHT);
|
||||
gc.restore();
|
||||
// fitMarksToCanvas();
|
||||
|
||||
//Wait until wer have received the XML
|
||||
while(StreamParser.getXmlObject().getRaceXML() == null) {
|
||||
try {
|
||||
Thread.sleep(1);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
findMinMaxPoint();
|
||||
double minLonToMaxLon = scaleRaceExtremities();
|
||||
calculateReferencePointLocation(minLonToMaxLon);
|
||||
addRaceBorder();
|
||||
addCourseMarks();
|
||||
findMetersToPixels();
|
||||
|
||||
fitMarksToCanvas();
|
||||
|
||||
|
||||
// TODO: 1/05/17 wmu16 - Change this call to now draw the marks as from the xml
|
||||
@@ -357,6 +340,7 @@ public class CanvasController {
|
||||
double minLonToMaxLon = scaleRaceExtremities();
|
||||
calculateReferencePointLocation(minLonToMaxLon);
|
||||
givePointsXY();
|
||||
addRaceBorder();
|
||||
findMetersToPixels();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user