Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.38 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?import javafx.scene.canvas.Canvas?>
  4. <?import javafx.scene.control.Button?>
  5. <?import javafx.scene.control.Menu?>
  6. <?import javafx.scene.control.MenuBar?>
  7. <?import javafx.scene.control.MenuItem?>
  8. <?import javafx.scene.control.ScrollPane?>
  9. <?import javafx.scene.control.Spinner?>
  10. <?import javafx.scene.control.SplitPane?>
  11. <?import javafx.scene.layout.AnchorPane?>
  12. <?import javafx.scene.layout.ColumnConstraints?>
  13. <?import javafx.scene.layout.GridPane?>
  14. <?import javafx.scene.layout.HBox?>
  15. <?import javafx.scene.layout.RowConstraints?>
  16. <?import javafx.scene.layout.VBox?>
  17. <?import javafx.scene.text.Font?>
  18. <?import javafx.scene.text.Text?>
  19.  
  20. <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">
  21. <children>
  22. <VBox prefHeight="400.0" prefWidth="600.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  23. <children>
  24. <MenuBar fx:id="menuBar">
  25. <menus>
  26. <Menu fx:id="menuFile" mnemonicParsing="false" text="Load">
  27. <items>
  28. <MenuItem fx:id="menuItemLW" mnemonicParsing="false" onAction="#onLoadWorldClick" text="Load World" />
  29. <MenuItem fx:id="menuItemLAC" mnemonicParsing="false" onAction="#onLoadACritterClick" text="Load A Critter" />
  30. <MenuItem fx:id="menuItemLMC" mnemonicParsing="false" onAction="#onLoadMultipleCrittersClick" text="Load Multiple Critters" />
  31. </items>
  32. </Menu>
  33. <Menu mnemonicParsing="false" text="Help">
  34. <items>
  35. <MenuItem fx:id="menuItemHelp" mnemonicParsing="false" onAction="#onMenuHelpClick" text="About" />
  36. </items></Menu>
  37. </menus>
  38. </MenuBar>
  39. <SplitPane fx:id="splitPane" dividerPositions="0.3" prefHeight="452.0" prefWidth="900.0" VBox.vgrow="ALWAYS">
  40. <items>
  41. <AnchorPane fx:id="leftAnchorPane" minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0">
  42. <children>
  43. <VBox AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  44. <children>
  45. <GridPane style="-fx-background-color: linear-gradient(from 25% 25% to 100% 100%, #E0EAFC, #eef2f3);" VBox.vgrow="ALWAYS">
  46. <columnConstraints>
  47. <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" />
  48. </columnConstraints>
  49. <rowConstraints>
  50. <RowConstraints minHeight="10.0" percentHeight="93.0" vgrow="SOMETIMES" />
  51. <RowConstraints minHeight="10.0" percentHeight="7.0" vgrow="SOMETIMES" />
  52. </rowConstraints>
  53. <children>
  54. <AnchorPane GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS">
  55. <children>
  56. <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" />
  57. </children>
  58. </AnchorPane>
  59. <AnchorPane GridPane.hgrow="ALWAYS" GridPane.rowIndex="1" GridPane.vgrow="ALWAYS">
  60. <children>
  61. <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" />
  62. </children>
  63. </AnchorPane>
  64. </children>
  65. </GridPane>
  66. </children>
  67. </VBox>
  68. </children></AnchorPane>
  69. <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);">
  70. <children>
  71. <Canvas fx:id="canvas" height="452.0" layoutX="-2.0" layoutY="-3.0" width="622.0" />
  72. </children></AnchorPane>
  73. </items>
  74. </SplitPane>
  75. <HBox prefHeight="119.0" prefWidth="800.0">
  76. <children>
  77. <GridPane style="-fx-background-color: linear-gradient(from 25% 25% to 100% 100%, #E0EAFC, #eef2f3);" HBox.hgrow="ALWAYS">
  78. <columnConstraints>
  79. <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" percentWidth="30.0" />
  80. <ColumnConstraints hgrow="ALWAYS" minWidth="10.0" percentWidth="70.0" />
  81. </columnConstraints>
  82. <rowConstraints>
  83. <RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
  84. </rowConstraints>
  85. <children>
  86. <AnchorPane prefHeight="126.0" prefWidth="118.0">
  87. <children>
  88. <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">
  89. <font>
  90. <Font name="FreeMono Bold" size="13.0" />
  91. </font></Button>
  92. <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">
  93. <font>
  94. <Font name="FreeMono Bold" size="12.0" />
  95. </font></Text>
  96. <Spinner fx:id="simRateSpinner" layoutX="129.0" layoutY="26.0" prefHeight="26.0" prefWidth="84.0" AnchorPane.leftAnchor="129.0" AnchorPane.topAnchor="26.0" />
  97. <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">
  98. <font>
  99. <Font name="FreeMono Bold" size="13.0" />
  100. </font></Button>
  101. </children>
  102. </AnchorPane>
  103. <AnchorPane prefHeight="119.0" prefWidth="635.0" GridPane.columnIndex="1">
  104. <children>
  105. <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">
  106. <font>
  107. <Font name="FreeMono Bold" size="17.0" />
  108. </font></Text>
  109. <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">
  110. <font>
  111. <Font name="FreeMono Bold" size="17.0" />
  112. </font></Text>
  113. </children>
  114. </AnchorPane>
  115. </children>
  116. </GridPane>
  117. </children>
  118. </HBox>
  119. </children>
  120. </VBox>
  121. </children>
  122. </AnchorPane>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement