Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <?import javafx.scene.canvas.Canvas?>
- <?import javafx.scene.control.Button?>
- <?import javafx.scene.control.Menu?>
- <?import javafx.scene.control.MenuBar?>
- <?import javafx.scene.control.MenuItem?>
- <?import javafx.scene.control.ScrollPane?>
- <?import javafx.scene.control.Spinner?>
- <?import javafx.scene.control.SplitPane?>
- <?import javafx.scene.layout.AnchorPane?>
- <?import javafx.scene.layout.ColumnConstraints?>
- <?import javafx.scene.layout.GridPane?>
- <?import javafx.scene.layout.HBox?>
- <?import javafx.scene.layout.RowConstraints?>
- <?import javafx.scene.layout.VBox?>
- <?import javafx.scene.text.Font?>
- <?import javafx.scene.text.Text?>
- <AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="900.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="console.MainController">
- <children>
- <VBox prefHeight="400.0" prefWidth="600.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
- <children>
- <MenuBar fx:id="menuBar">
- <menus>
- <Menu fx:id="menuFile" mnemonicParsing="false" text="Load">
- <items>
- <MenuItem fx:id="menuItemLW" mnemonicParsing="false" onAction="#onLoadWorldClick" text="Load World" />
- <MenuItem fx:id="menuItemLAC" mnemonicParsing="false" onAction="#onLoadACritterClick" text="Load A Critter" />
- <MenuItem fx:id="menuItemLMC" mnemonicParsing="false" onAction="#onLoadMultipleCrittersClick" text="Load Multiple Critters" />
- </items>
- </Menu>
- <Menu mnemonicParsing="false" text="Help">
- <items>
- <MenuItem fx:id="menuItemHelp" mnemonicParsing="false" onAction="#onMenuHelpClick" text="About" />
- </items></Menu>
- </menus>
- </MenuBar>
- <SplitPane fx:id="splitPane" dividerPositions="0.3" prefHeight="452.0" prefWidth="900.0" VBox.vgrow="ALWAYS">
- <items>
- <AnchorPane fx:id="leftAnchorPane" minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0">
- <children>
- <VBox AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
- <children>
- <GridPane style="-fx-background-color: linear-gradient(from 25% 25% to 100% 100%, #E0EAFC, #eef2f3);" VBox.vgrow="ALWAYS">
- <columnConstraints>
- <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" />
- </columnConstraints>
- <rowConstraints>
- <RowConstraints minHeight="10.0" percentHeight="93.0" vgrow="SOMETIMES" />
- <RowConstraints minHeight="10.0" percentHeight="7.0" vgrow="SOMETIMES" />
- </rowConstraints>
- <children>
- <AnchorPane GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS">
- <children>
- <ScrollPane fx:id="scrollPane" hbarPolicy="ALWAYS" prefHeight="405.0" prefWidth="249.0" vbarPolicy="ALWAYS" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
- </children>
- </AnchorPane>
- <AnchorPane GridPane.hgrow="ALWAYS" GridPane.rowIndex="1" GridPane.vgrow="ALWAYS">
- <children>
- <Button fx:id="critterInfoHide" mnemonicParsing="false" onAction="#onCritterInfoHideClick" prefHeight="37.0" prefWidth="274.0" text="Hide" visible="false" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
- </children>
- </AnchorPane>
- </children>
- </GridPane>
- </children>
- </VBox>
- </children></AnchorPane>
- <AnchorPane fx:id="canvasAP" minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="622.0" style="-fx-background-color: linear-gradient(from 25% 25% to 100% 100%, #f7fafe, #eef2f3);">
- <children>
- <Canvas fx:id="canvas" height="452.0" layoutX="-2.0" layoutY="-3.0" width="622.0" />
- </children></AnchorPane>
- </items>
- </SplitPane>
- <HBox prefHeight="119.0" prefWidth="800.0">
- <children>
- <GridPane style="-fx-background-color: linear-gradient(from 25% 25% to 100% 100%, #E0EAFC, #eef2f3);" HBox.hgrow="ALWAYS">
- <columnConstraints>
- <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" percentWidth="30.0" />
- <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" percentWidth="70.0" />
- </columnConstraints>
- <rowConstraints>
- <RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
- </rowConstraints>
- <children>
- <AnchorPane prefHeight="126.0" prefWidth="118.0">
- <children>
- <Button fx:id="startButton" layoutX="5.0" layoutY="8.0" mnemonicParsing="false" onAction="#onStartClick" prefHeight="57.0" prefWidth="112.0" text="Start" AnchorPane.leftAnchor="5.0" AnchorPane.topAnchor="8.0">
- <font>
- <Font name="FreeMono Bold" size="13.0" />
- </font></Button>
- <Text layoutX="128.0" layoutY="16.600000381469727" strokeType="OUTSIDE" strokeWidth="0.0" text="Sim Rate (steps/sec)" AnchorPane.leftAnchor="128.0" AnchorPane.topAnchor="7.0">
- <font>
- <Font name="FreeMono Bold" size="12.0" />
- </font></Text>
- <Spinner fx:id="simRateSpinner" layoutX="129.0" layoutY="26.0" prefHeight="26.0" prefWidth="84.0" AnchorPane.leftAnchor="129.0" AnchorPane.topAnchor="26.0" />
- <Button fx:id="advanceOnce" layoutX="5.0" layoutY="73.0" mnemonicParsing="false" onAction="#onAdvanceOnceClick" prefHeight="38.0" prefWidth="112.0" text="Advance Once" AnchorPane.leftAnchor="5.0" AnchorPane.topAnchor="73.0">
- <font>
- <Font name="FreeMono Bold" size="13.0" />
- </font></Button>
- </children>
- </AnchorPane>
- <AnchorPane prefHeight="119.0" prefWidth="635.0" GridPane.columnIndex="1">
- <children>
- <Text fx:id="numTimeSteps" layoutX="14.0" layoutY="26.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Total Number of Time Steps: 0" wrappingWidth="622.0" AnchorPane.leftAnchor="10.0" AnchorPane.topAnchor="10.0">
- <font>
- <Font name="FreeMono Bold" size="17.0" />
- </font></Text>
- <Text fx:id="numCritterAlive" layoutX="10.0" layoutY="65.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Total Number of Critters Alive: 0" wrappingWidth="622.0" AnchorPane.leftAnchor="10.0" AnchorPane.topAnchor="40.0">
- <font>
- <Font name="FreeMono Bold" size="17.0" />
- </font></Text>
- </children>
- </AnchorPane>
- </children>
- </GridPane>
- </children>
- </HBox>
- </children>
- </VBox>
- </children>
- </AnchorPane>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement