Merge branch 'story_25'
# Conflicts: # src/main/java/seng302/Controllers/RaceController.java # src/main/java/seng302/Model/ResizableRaceCanvas.java # src/main/resources/scenes/racepane.fxml
This commit is contained in:
@@ -1,14 +1,15 @@
|
|||||||
package seng302.Controllers;
|
package seng302.Controllers;
|
||||||
|
|
||||||
|
|
||||||
|
import javafx.beans.property.ReadOnlyObjectWrapper;
|
||||||
import javafx.beans.value.ChangeListener;
|
import javafx.beans.value.ChangeListener;
|
||||||
import javafx.beans.value.ObservableValue;
|
import javafx.beans.value.ObservableValue;
|
||||||
|
import javafx.collections.FXCollections;
|
||||||
import javafx.collections.ObservableList;
|
import javafx.collections.ObservableList;
|
||||||
import javafx.event.ActionEvent;
|
|
||||||
import javafx.event.EventHandler;
|
|
||||||
import javafx.fxml.FXML;
|
import javafx.fxml.FXML;
|
||||||
import javafx.scene.control.*;
|
import javafx.scene.control.*;
|
||||||
import javafx.scene.layout.GridPane;
|
import javafx.scene.layout.GridPane;
|
||||||
|
import javafx.util.Callback;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import seng302.Model.*;
|
import seng302.Model.*;
|
||||||
import seng302.RaceXMLReader;
|
import seng302.RaceXMLReader;
|
||||||
@@ -26,11 +27,12 @@ public class RaceController extends Controller {
|
|||||||
@FXML
|
@FXML
|
||||||
GridPane canvasBase;
|
GridPane canvasBase;
|
||||||
|
|
||||||
//user saved data for annotation display
|
|
||||||
private ArrayList<Boolean> presetAnno;
|
|
||||||
|
|
||||||
ResizableRaceCanvas raceMap;
|
ResizableRaceCanvas raceMap;
|
||||||
@FXML SplitPane race;
|
|
||||||
|
@FXML
|
||||||
|
GridPane startScreen;
|
||||||
|
@FXML
|
||||||
|
SplitPane ongoingRacePane;
|
||||||
@FXML
|
@FXML
|
||||||
CheckBox showFPS;
|
CheckBox showFPS;
|
||||||
@FXML
|
@FXML
|
||||||
@@ -39,16 +41,6 @@ public class RaceController extends Controller {
|
|||||||
Label timer;
|
Label timer;
|
||||||
@FXML
|
@FXML
|
||||||
Label FPS;
|
Label FPS;
|
||||||
@FXML
|
|
||||||
CheckBox showName;
|
|
||||||
@FXML
|
|
||||||
CheckBox showAbbrev;
|
|
||||||
@FXML
|
|
||||||
CheckBox showSpeed;
|
|
||||||
@FXML
|
|
||||||
Button saveAnno;
|
|
||||||
@FXML
|
|
||||||
Button showSetAnno;
|
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
TableView<BoatInRace> boatInfoTable;
|
TableView<BoatInRace> boatInfoTable;
|
||||||
@@ -88,6 +80,26 @@ public class RaceController extends Controller {
|
|||||||
boatPlacingColumn.setCellValueFactory(cellData -> cellData.getValue().positionProperty());
|
boatPlacingColumn.setCellValueFactory(cellData -> cellData.getValue().positionProperty());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Begins the race with a scale factor of 15
|
||||||
|
*/
|
||||||
|
public void startRace1Min() {
|
||||||
|
startRace(15);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Begins the race with a scale factor of 3
|
||||||
|
*/
|
||||||
|
public void startRace5Min() {
|
||||||
|
startRace(3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Begins the race with a scale factor of 1
|
||||||
|
*/
|
||||||
|
public void startRaceNoScaling() {
|
||||||
|
startRace(1);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initialize(URL location, ResourceBundle resources) {
|
public void initialize(URL location, ResourceBundle resources) {
|
||||||
@@ -110,8 +122,7 @@ public class RaceController extends Controller {
|
|||||||
*
|
*
|
||||||
* @param scaleFactor scale value of race
|
* @param scaleFactor scale value of race
|
||||||
*/
|
*/
|
||||||
public void startRace(int scaleFactor) {
|
private void startRace(int scaleFactor) {
|
||||||
|
|
||||||
RaceXMLReader raceXMLReader = null;
|
RaceXMLReader raceXMLReader = null;
|
||||||
try {
|
try {
|
||||||
raceXMLReader = new RaceXMLReader("raceXML/bermuda_AC35.xml");
|
raceXMLReader = new RaceXMLReader("raceXML/bermuda_AC35.xml");
|
||||||
@@ -132,12 +143,12 @@ public class RaceController extends Controller {
|
|||||||
|
|
||||||
|
|
||||||
ArrayList<Leg> legs = raceXMLReader.getLegs();
|
ArrayList<Leg> legs = raceXMLReader.getLegs();
|
||||||
ConstantVelocityRace newRace = new ConstantVelocityRace(boats, legs, this, scaleFactor);
|
ConstantVelocityRace race = new ConstantVelocityRace(boats, legs, this, scaleFactor);
|
||||||
newRace.initialiseBoats();
|
race.initialiseBoats();
|
||||||
|
|
||||||
BoatInRace[] startingBoats = new BoatInRace[newRace.getStartingBoats().size()];
|
BoatInRace[] startingBoats = new BoatInRace[race.getStartingBoats().size()];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (BoatInRace boat : newRace.getStartingBoats()) {
|
for (BoatInRace boat : race.getStartingBoats()) {
|
||||||
startingBoats[i] = boat;
|
startingBoats[i] = boat;
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
@@ -152,13 +163,13 @@ public class RaceController extends Controller {
|
|||||||
raceMap.setVisible(true);
|
raceMap.setVisible(true);
|
||||||
|
|
||||||
canvasBase.getChildren().add(raceMap);
|
canvasBase.getChildren().add(raceMap);
|
||||||
race.setVisible(true);
|
startScreen.setVisible(false);
|
||||||
|
ongoingRacePane.setVisible(true);
|
||||||
|
|
||||||
//Initialize save annotation array, fps listener, and annotation listeners
|
|
||||||
initializeFPS();
|
initializeFPS();
|
||||||
initializeAnnotations();
|
initializeAnnotations();
|
||||||
|
|
||||||
new Thread((newRace)).start();
|
new Thread((race)).start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -201,7 +212,6 @@ public class RaceController extends Controller {
|
|||||||
* Set up boat annotations
|
* Set up boat annotations
|
||||||
*/
|
*/
|
||||||
private void initializeAnnotations() {
|
private void initializeAnnotations() {
|
||||||
presetAnno = new ArrayList<>();
|
|
||||||
//listener for annotation
|
//listener for annotation
|
||||||
showAnnotations.selectedProperty().addListener(new ChangeListener<Boolean>() {
|
showAnnotations.selectedProperty().addListener(new ChangeListener<Boolean>() {
|
||||||
public void changed(ObservableValue<? extends Boolean> ov,
|
public void changed(ObservableValue<? extends Boolean> ov,
|
||||||
@@ -210,51 +220,6 @@ public class RaceController extends Controller {
|
|||||||
raceMap.update();
|
raceMap.update();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//listener for show name in annotation
|
|
||||||
showName.selectedProperty().addListener(new ChangeListener<Boolean>() {
|
|
||||||
public void changed(ObservableValue<? extends Boolean> ov,
|
|
||||||
Boolean old_val, Boolean new_val) {
|
|
||||||
raceMap.toggleAnnoName();
|
|
||||||
raceMap.update();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
//listener for show abbreviation for annotation
|
|
||||||
showAbbrev.selectedProperty().addListener(new ChangeListener<Boolean>() {
|
|
||||||
public void changed(ObservableValue<? extends Boolean> ov,
|
|
||||||
Boolean old_val, Boolean new_val) {
|
|
||||||
raceMap.toggleAnnoAbbrev();
|
|
||||||
raceMap.update();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
//listener to show speed for annotation
|
|
||||||
showSpeed.selectedProperty().addListener(new ChangeListener<Boolean>() {
|
|
||||||
public void changed(ObservableValue<? extends Boolean> ov,
|
|
||||||
Boolean old_val, Boolean new_val) {
|
|
||||||
raceMap.toggleAnnoSpeed();
|
|
||||||
raceMap.update();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
//listener to save currently selected annotation
|
|
||||||
saveAnno.setOnAction(new EventHandler<ActionEvent>() {
|
|
||||||
@Override
|
|
||||||
public void handle(ActionEvent event) {
|
|
||||||
presetAnno.clear();
|
|
||||||
presetAnno.add(showName.isSelected());
|
|
||||||
presetAnno.add(showAbbrev.isSelected());
|
|
||||||
presetAnno.add(showSpeed.isSelected());
|
|
||||||
}
|
|
||||||
});
|
|
||||||
//listener to show saved annotation
|
|
||||||
showSetAnno.setOnAction(new EventHandler<ActionEvent>() {
|
|
||||||
@Override
|
|
||||||
public void handle(ActionEvent event) {
|
|
||||||
if (presetAnno.size() > 0) {
|
|
||||||
showName.setSelected(presetAnno.get(0));
|
|
||||||
showAbbrev.setSelected(presetAnno.get(1));
|
|
||||||
showSpeed.setSelected(presetAnno.get(2));
|
|
||||||
raceMap.update();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package seng302.Model;
|
package seng302.Model;
|
||||||
|
|
||||||
import javafx.beans.property.IntegerProperty;
|
|
||||||
import javafx.beans.property.SimpleStringProperty;
|
import javafx.beans.property.SimpleStringProperty;
|
||||||
import javafx.beans.property.StringProperty;
|
import javafx.beans.property.StringProperty;
|
||||||
import javafx.scene.paint.Color;
|
import javafx.scene.paint.Color;
|
||||||
@@ -9,6 +8,8 @@ import seng302.Constants;
|
|||||||
import seng302.GPSCoordinate;
|
import seng302.GPSCoordinate;
|
||||||
|
|
||||||
import java.awt.geom.Point2D;
|
import java.awt.geom.Point2D;
|
||||||
|
import java.util.Queue;
|
||||||
|
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Boat in the Race extends Boat.
|
* Boat in the Race extends Boat.
|
||||||
@@ -27,6 +28,12 @@ public class BoatInRace extends Boat {
|
|||||||
private boolean started = false;
|
private boolean started = false;
|
||||||
private StringProperty position;
|
private StringProperty position;
|
||||||
|
|
||||||
|
private Queue<TrackPoint> track = new ConcurrentLinkedQueue<>();
|
||||||
|
private long nextValidTime = 0;
|
||||||
|
private final int TRACK_POINT_TIME_INTERVAL = 1000; // every 1 seconds
|
||||||
|
private final int TRACK_POINT_LIMIT = 10;
|
||||||
|
private boolean trackVisible = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor method.
|
* Constructor method.
|
||||||
*
|
*
|
||||||
@@ -251,4 +258,26 @@ public class BoatInRace extends Boat {
|
|||||||
public void setPosition(String position) {
|
public void setPosition(String position) {
|
||||||
this.position.set(position);
|
this.position.set(position);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean addTrackPoint(GPSCoordinate coordinate) {
|
||||||
|
Boolean added = System.currentTimeMillis() >= nextValidTime;
|
||||||
|
long currentTime = System.currentTimeMillis();
|
||||||
|
if (added && this.started) {
|
||||||
|
nextValidTime = currentTime + TRACK_POINT_TIME_INTERVAL;
|
||||||
|
track.add(new TrackPoint(coordinate, currentTime, TRACK_POINT_LIMIT * TRACK_POINT_TIME_INTERVAL));
|
||||||
|
}
|
||||||
|
return added;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Queue<TrackPoint> getTrack() {
|
||||||
|
return track;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isTrackVisible() {
|
||||||
|
return trackVisible;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrackVisible(boolean trackVisible) {
|
||||||
|
this.trackVisible = trackVisible;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -214,20 +214,23 @@ public abstract class Race implements Runnable {
|
|||||||
|
|
||||||
for (BoatInRace boat : startingBoats) {
|
for (BoatInRace boat : startingBoats) {
|
||||||
if (boat != null && !boat.isFinished()) {
|
if (boat != null && !boat.isFinished()) {
|
||||||
|
boat.addTrackPoint(boat.getCurrentPosition());
|
||||||
updatePosition(boat, Math.round(1000 / lastFPS) > 20 ? 15 : Math.round(1000 / lastFPS));
|
updatePosition(boat, Math.round(1000 / lastFPS) > 20 ? 15 : Math.round(1000 / lastFPS));
|
||||||
checkPosition(boat, totalTimeElapsed);
|
checkPosition(boat, totalTimeElapsed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (controller != null) controller.updateMap(startingBoats);
|
// if (controller != null) controller.updateMap(startingBoats);
|
||||||
if (timerEnabled)
|
if (timerEnabled)
|
||||||
updateTime(calcTimer());
|
updateTime(calcTimer());
|
||||||
} else {
|
|
||||||
//Exit animation timer
|
|
||||||
updateTime(calcTimer());
|
|
||||||
updateFPS(0); //race ended so fps = 0
|
|
||||||
stop(); //exit animation timer
|
|
||||||
}
|
}
|
||||||
|
controller.updateMap(startingBoats);
|
||||||
|
// } else {
|
||||||
|
// //Exit animation timer
|
||||||
|
// updateTime(calcTimer());
|
||||||
|
// updateFPS(0); //race ended so fps = 0
|
||||||
|
// stop(); //exit animation timer
|
||||||
|
// }
|
||||||
fps++;
|
fps++;
|
||||||
if ((System.currentTimeMillis() - timeCurrent) > 1000) {
|
if ((System.currentTimeMillis() - timeCurrent) > 1000) {
|
||||||
updateFPS(fps);
|
updateFPS(fps);
|
||||||
|
|||||||
@@ -338,10 +338,21 @@ public class ResizableRaceCanvas extends Canvas {
|
|||||||
|
|
||||||
if (raceAnno)
|
if (raceAnno)
|
||||||
displayText(boat.toString(), boat.getAbbrev(), boat.getVelocity(), this.map.convertGPS(boat.getCurrentPosition()));
|
displayText(boat.toString(), boat.getAbbrev(), boat.getVelocity(), this.map.convertGPS(boat.getCurrentPosition()));
|
||||||
|
|
||||||
|
if(boat.isTrackVisible()) drawTrackPoint(boat);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void drawTrackPoint(BoatInRace boat) {
|
||||||
|
for (TrackPoint point : boat.getTrack()) {
|
||||||
|
GraphCoordinate scaledCoordinate = this.map.convertGPS(point.getCoordinate());
|
||||||
|
Color boatColour = boat.getColour();
|
||||||
|
gc.setFill(new Color(boatColour.getRed(), boatColour.getGreen(), boatColour.getBlue(), point.getAlpha()));
|
||||||
|
gc.fillOval(scaledCoordinate.getX(), scaledCoordinate.getY(), 5, 5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void setRaceBoundaries(ArrayList<GPSCoordinate> boundaries) {
|
public void setRaceBoundaries(ArrayList<GPSCoordinate> boundaries) {
|
||||||
this.raceBoundaries = new ArrayList<>();
|
this.raceBoundaries = new ArrayList<>();
|
||||||
for (GPSCoordinate bound : boundaries) {
|
for (GPSCoordinate bound : boundaries) {
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
package seng302.Model;
|
||||||
|
|
||||||
|
import seng302.GPSCoordinate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by cbt24 on 7/04/17.
|
||||||
|
*/
|
||||||
|
public class TrackPoint {
|
||||||
|
private GPSCoordinate coordinate;
|
||||||
|
private long timeAdded;
|
||||||
|
private long expiry;
|
||||||
|
private double minAlpha;
|
||||||
|
|
||||||
|
public TrackPoint(GPSCoordinate coordinate, long timeAdded, long expiry) {
|
||||||
|
this.coordinate = coordinate;
|
||||||
|
this.timeAdded = timeAdded;
|
||||||
|
this.expiry = expiry;
|
||||||
|
this.minAlpha = 0.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GPSCoordinate getCoordinate() {
|
||||||
|
return coordinate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getAlpha() {
|
||||||
|
return Double.max(minAlpha,1.0 - (double)(System.currentTimeMillis() - timeAdded) / expiry);
|
||||||
|
}
|
||||||
|
|
||||||
|
public long getTimeAdded() {
|
||||||
|
return timeAdded;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,113 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<?import java.lang.*?>
|
||||||
|
<?import javafx.geometry.*?>
|
||||||
|
<?import javafx.geometry.Insets?>
|
||||||
|
<?import javafx.scene.control.*?>
|
||||||
|
<?import javafx.scene.layout.*?>
|
||||||
|
<?import javafx.scene.text.*?>
|
||||||
|
|
||||||
|
<AnchorPane xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="seng302.Controllers.RaceController">
|
||||||
|
<children>
|
||||||
|
<GridPane fx:id="startScreen" prefHeight="600.0" prefWidth="780.0">
|
||||||
|
<columnConstraints>
|
||||||
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="189.0" minWidth="10.0" prefWidth="93.0" />
|
||||||
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="372.0" minWidth="10.0" prefWidth="184.0" />
|
||||||
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="394.0" minWidth="10.0" prefWidth="192.0" />
|
||||||
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="416.0" minWidth="10.0" prefWidth="273.0" />
|
||||||
|
<ColumnConstraints hgrow="SOMETIMES" maxWidth="416.0" minWidth="10.0" prefWidth="57.0" />
|
||||||
|
</columnConstraints>
|
||||||
|
<rowConstraints>
|
||||||
|
<RowConstraints maxHeight="241.0" minHeight="10.0" prefHeight="102.0" vgrow="SOMETIMES" />
|
||||||
|
<RowConstraints maxHeight="383.0" minHeight="10.0" prefHeight="227.0" vgrow="SOMETIMES" />
|
||||||
|
<RowConstraints maxHeight="369.0" minHeight="10.0" prefHeight="59.0" vgrow="SOMETIMES" />
|
||||||
|
<RowConstraints maxHeight="369.0" minHeight="10.0" prefHeight="38.0" vgrow="SOMETIMES" />
|
||||||
|
<RowConstraints maxHeight="178.0" minHeight="10.0" prefHeight="178.0" vgrow="SOMETIMES" />
|
||||||
|
</rowConstraints>
|
||||||
|
<children>
|
||||||
|
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Select Your Race Scaling:" GridPane.columnIndex="1" GridPane.rowIndex="1">
|
||||||
|
<font>
|
||||||
|
<Font size="23.0" />
|
||||||
|
</font>
|
||||||
|
</Text>
|
||||||
|
<Button mnemonicParsing="false" onAction="#startRace1Min" text="15x faster" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
||||||
|
<Button mnemonicParsing="false" onAction="#startRaceNoScaling" text="No scaling" GridPane.columnIndex="3" GridPane.rowIndex="2" />
|
||||||
|
<Button mnemonicParsing="false" onAction="#startRace5Min" text="3x faster" GridPane.columnIndex="2" GridPane.rowIndex="2" />
|
||||||
|
<Label alignment="CENTER" text="Race will take ~1 minute" GridPane.columnIndex="1" GridPane.rowIndex="3">
|
||||||
|
<opaqueInsets>
|
||||||
|
<Insets />
|
||||||
|
</opaqueInsets>
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
</Label>
|
||||||
|
<Label alignment="CENTER" layoutX="99.0" layoutY="407.0" text="Race will take ~5 minutes" GridPane.columnIndex="2" GridPane.rowIndex="3">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<opaqueInsets>
|
||||||
|
<Insets />
|
||||||
|
</opaqueInsets>
|
||||||
|
</Label>
|
||||||
|
<Label alignment="CENTER" layoutX="279.0" layoutY="407.0" text="Race will take ~15 minutes" GridPane.columnIndex="3" GridPane.rowIndex="3">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<opaqueInsets>
|
||||||
|
<Insets />
|
||||||
|
</opaqueInsets>
|
||||||
|
</Label>
|
||||||
|
</children>
|
||||||
|
</GridPane>
|
||||||
|
<SplitPane fx:id="ongoingRacePane" dividerPositions="0.7" visible="false" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||||
|
<items>
|
||||||
|
<GridPane fx:id="canvasBase">
|
||||||
|
<columnConstraints>
|
||||||
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" />
|
||||||
|
</columnConstraints>
|
||||||
|
<rowConstraints>
|
||||||
|
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
|
||||||
|
</rowConstraints>
|
||||||
|
<children>
|
||||||
|
<Pane prefHeight="200.0" prefWidth="400.0" GridPane.halignment="LEFT" GridPane.valignment="TOP">
|
||||||
|
<children>
|
||||||
|
<TitledPane fx:id="userControl" animated="false" prefHeight="128.0" prefWidth="202.0" text="User Control" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0">
|
||||||
|
<content>
|
||||||
|
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="0.0" prefWidth="200.0">
|
||||||
|
<children>
|
||||||
|
<CheckBox fx:id="showFPS" mnemonicParsing="false" selected="true" text="Show FPS" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0" />
|
||||||
|
<CheckBox fx:id="showAnnotations" mnemonicParsing="false" selected="true" text="Show Annotation" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="30.0" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
</content>
|
||||||
|
</TitledPane>
|
||||||
|
</children>
|
||||||
|
</Pane>
|
||||||
|
<Label fx:id="timer" layoutX="45.0" layoutY="146.0" text="0:0" AnchorPane.bottomAnchor="0.0" AnchorPane.rightAnchor="0.0" GridPane.halignment="RIGHT" GridPane.valignment="BOTTOM">
|
||||||
|
<font>
|
||||||
|
<Font name="System Bold" size="15.0" />
|
||||||
|
</font>
|
||||||
|
</Label>
|
||||||
|
<Label fx:id="FPS" text="FPS: 0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" GridPane.halignment="LEFT" GridPane.valignment="BOTTOM">
|
||||||
|
<font>
|
||||||
|
<Font name="System Bold" size="15.0" />
|
||||||
|
</font>
|
||||||
|
</Label>
|
||||||
|
</children>
|
||||||
|
</GridPane>
|
||||||
|
<AnchorPane layoutX="450.0" minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="200.0" GridPane.columnIndex="1">
|
||||||
|
<children>
|
||||||
|
<TableView fx:id="boatInfoTable" layoutX="-2.0" prefHeight="600.0" prefWidth="264.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="-2.0" AnchorPane.rightAnchor="-62.0" AnchorPane.topAnchor="0.0">
|
||||||
|
<columns>
|
||||||
|
<TableColumn fx:id="boatPlacingColumn" prefWidth="50.0" text="Place" />
|
||||||
|
<TableColumn fx:id="boatTeamColumn" prefWidth="100.0" text="Team" />
|
||||||
|
<TableColumn fx:id="boatMarkColumn" prefWidth="130.0" text="Mark" />
|
||||||
|
<TableColumn fx:id="boatSpeedColumn" prefWidth="75.0" text="Speed" />
|
||||||
|
</columns>
|
||||||
|
</TableView>
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
|
</items>
|
||||||
|
</SplitPane>
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
Reference in New Issue
Block a user