Minor tidy.

main
fjc40 8 years ago
parent 114c18763b
commit fa26abe10c

@ -200,10 +200,10 @@ public class ResizableRaceCanvas extends ResizableCanvas {
* @param coordinate coordinate the text appears * @param coordinate coordinate the text appears
* @param timeToNextMark The time until the boat reaches the next mark. * @param timeToNextMark The time until the boat reaches the next mark.
* @param timeSinceLastMark The time since the boat passed the last mark. * @param timeSinceLastMark The time since the boat passed the last mark.
* @param paint The color of the text. * @param textPaint The color of the text.
* @param fontSize The size of the font. * @param fontSize The size of the font.
*/ */
private void drawText(String name, String abbrev, double speed, GraphCoordinate coordinate, String timeToNextMark, String timeSinceLastMark, Paint paint, double fontSize) { private void drawText(String name, String abbrev, double speed, GraphCoordinate coordinate, String timeToNextMark, String timeSinceLastMark, Paint textPaint, double fontSize) {
//The text to draw. Built during the function. //The text to draw. Built during the function.
String text = ""; String text = "";
@ -251,7 +251,8 @@ public class ResizableRaceCanvas extends ResizableCanvas {
gc.save(); gc.save();
gc.setStroke(paint); gc.setStroke(textPaint);
gc.setFill(textPaint);
gc.setFont(new Font(gc.getFont().getName(), fontSize)); gc.setFont(new Font(gc.getFont().getName(), fontSize));
//Draw text. //Draw text.

Loading…
Cancel
Save