MainWindow.fxml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?import javafx.embed.swing.SwingNode?>
  3. <?import javafx.geometry.Insets?>
  4. <?import javafx.scene.control.Button?>
  5. <?import javafx.scene.control.CheckBox?>
  6. <?import javafx.scene.control.ChoiceBox?>
  7. <?import javafx.scene.control.Menu?>
  8. <?import javafx.scene.control.MenuBar?>
  9. <?import javafx.scene.control.MenuItem?>
  10. <?import javafx.scene.control.ScrollPane?>
  11. <?import javafx.scene.control.SeparatorMenuItem?>
  12. <?import javafx.scene.control.SplitPane?>
  13. <?import javafx.scene.control.TableColumn?>
  14. <?import javafx.scene.control.TableView?>
  15. <?import javafx.scene.layout.AnchorPane?>
  16. <?import javafx.scene.layout.Pane?>
  17. <?import javafx.scene.layout.StackPane?>
  18. <?import javafx.scene.layout.VBox?>
  19. <?import javafx.scene.text.Text?>
  20. <?import javafx.scene.text.TextFlow?>
  21. <VBox minHeight="768.0" minWidth="1024.0" prefHeight="768.0" prefWidth="1024.0" stylesheets="@GUITheme.css" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="de.tu_darmstadt.informatik.tk.scopviz.ui.GUIController">
  22. <children>
  23. <MenuBar VBox.vgrow="NEVER">
  24. <menus>
  25. <Menu mnemonicParsing="false" text="File">
  26. <items>
  27. <MenuItem fx:id="newItem" mnemonicParsing="false" text="New" />
  28. <MenuItem fx:id="open" mnemonicParsing="false" text="Open…" />
  29. <MenuItem fx:id="add" mnemonicParsing="false" text="Add…" />
  30. <SeparatorMenuItem mnemonicParsing="false" />
  31. <MenuItem fx:id="save" accelerator="Shortcut+S" mnemonicParsing="false" text="Save" />
  32. <MenuItem fx:id="saveAs" accelerator="Shortcut+Shift+S" mnemonicParsing="false" text="Save As…" />
  33. <SeparatorMenuItem mnemonicParsing="false" />
  34. <MenuItem fx:id="preferences" mnemonicParsing="false" text="Preferences" />
  35. <SeparatorMenuItem mnemonicParsing="false" />
  36. <MenuItem fx:id="quit" mnemonicParsing="false" text="Quit" />
  37. </items>
  38. </Menu>
  39. <Menu mnemonicParsing="false" text="Edit">
  40. <items>
  41. <SeparatorMenuItem mnemonicParsing="false" />
  42. <MenuItem fx:id="delete" accelerator="Shortcut+D" mnemonicParsing="false" text="Delete" />
  43. <MenuItem fx:id="undelete" accelerator="Shortcut+Z" mnemonicParsing="false" text="Undelete" />
  44. <SeparatorMenuItem mnemonicParsing="false" />
  45. <MenuItem fx:id="updateMetricMI" accelerator="Shortcut+R" mnemonicParsing="false" text="Update metrics" />
  46. </items>
  47. </Menu>
  48. <Menu mnemonicParsing="false" text="Help">
  49. <items>
  50. <MenuItem fx:id="about" mnemonicParsing="false" text="About scopviz" />
  51. </items>
  52. </Menu>
  53. </menus>
  54. </MenuBar>
  55. <AnchorPane maxHeight="-1.0" maxWidth="-1.0" prefHeight="-1.0" prefWidth="-1.0" VBox.vgrow="ALWAYS">
  56. <children>
  57. <SplitPane dividerPositions="0.15" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  58. <items>
  59. <AnchorPane SplitPane.resizableWithParent="false">
  60. <children>
  61. <VBox AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  62. <children>
  63. <AnchorPane fx:id="topLeftAPane" VBox.vgrow="NEVER">
  64. <children>
  65. <TableView fx:id="toolbox" maxHeight="132.0" minHeight="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  66. <columns>
  67. <TableColumn fx:id="toolboxObjectColumn" editable="false" maxWidth="30.0" minWidth="30.0" prefWidth="30.0" sortable="false" />
  68. <TableColumn fx:id="toolboxStringColumn" editable="false" maxWidth="-1.0" minWidth="90.0" prefWidth="-1.0" sortable="false" />
  69. </columns>
  70. <columnResizePolicy>
  71. <TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
  72. </columnResizePolicy>
  73. </TableView>
  74. <VBox fx:id="symbolToolVBox" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  75. <children>
  76. <CheckBox fx:id="edgesVisibleCheckbox" mnemonicParsing="false" selected="true" text="Edges">
  77. <padding>
  78. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  79. </padding>
  80. </CheckBox>
  81. <CheckBox fx:id="nodeLabelCheckbox" mnemonicParsing="false" selected="true" text="Labels">
  82. <padding>
  83. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  84. </padding>
  85. </CheckBox>
  86. <CheckBox fx:id="edgeWeightCheckbox" mnemonicParsing="false" selected="true" text="Weights">
  87. <padding>
  88. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
  89. </padding>
  90. </CheckBox>
  91. <ChoiceBox fx:id="mapViewChoiceBox" prefWidth="150.0">
  92. <VBox.margin>
  93. <Insets bottom="10.0" left="10.0" right="10.0" />
  94. </VBox.margin></ChoiceBox>
  95. </children></VBox>
  96. </children>
  97. </AnchorPane>
  98. <AnchorPane VBox.vgrow="ALWAYS">
  99. <children>
  100. <TableView fx:id="properties" editable="true" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  101. <columns>
  102. <TableColumn fx:id="propertiesStringColumn" editable="false" maxWidth="1920.0" minWidth="90.0" prefWidth="150.0" sortable="false" text="Property" />
  103. <TableColumn fx:id="propertiesObjectColumn" maxWidth="1920.0" minWidth="90.0" prefWidth="150.0" sortable="false" text="Value" />
  104. <TableColumn fx:id="propertiesTypeColumn" editable="false" maxWidth="1920.0" minWidth="90.0" prefWidth="150.0" sortable="false" text="Type" />
  105. </columns>
  106. <columnResizePolicy>
  107. <TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
  108. </columnResizePolicy>
  109. </TableView>
  110. </children>
  111. </AnchorPane>
  112. </children>
  113. </VBox>
  114. </children>
  115. </AnchorPane>
  116. <AnchorPane SplitPane.resizableWithParent="false">
  117. <children>
  118. <SplitPane dividerPositions="0.8" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  119. <items>
  120. <AnchorPane styleClass="background" SplitPane.resizableWithParent="false">
  121. <children>
  122. <StackPane fx:id="stackPane" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  123. <children>
  124. <SwingNode fx:id="swingNodeWorldView" />
  125. </children>
  126. </StackPane>
  127. <Pane fx:id="pane" focusTraversable="true" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  128. <children>
  129. <SwingNode fx:id="swingNode" />
  130. </children>
  131. </Pane>
  132. <Button fx:id="zoomIn" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="30.0" prefWidth="30.0" text="+" textAlignment="JUSTIFY" AnchorPane.bottomAnchor="45.0" AnchorPane.rightAnchor="10.0" />
  133. <Button fx:id="zoomOut" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="30.0" prefWidth="30.0" text="-" textAlignment="JUSTIFY" AnchorPane.bottomAnchor="10.0" AnchorPane.rightAnchor="10.0" />
  134. </children>
  135. </AnchorPane>
  136. <AnchorPane SplitPane.resizableWithParent="false">
  137. <children>
  138. <VBox fx:id="rightSide" prefWidth="100.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
  139. <children>
  140. <AnchorPane minWidth="170.0" VBox.vgrow="NEVER">
  141. <children>
  142. <Button fx:id="underlayButton" maxHeight="40.0" maxWidth="40.0" minHeight="40.0" minWidth="40.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="40.0" styleClass="underlayButton" AnchorPane.leftAnchor="5.0" AnchorPane.topAnchor="3.0" />
  143. <Button fx:id="operatorButton" layoutX="30.0" maxHeight="40.0" maxWidth="40.0" minHeight="40.0" minWidth="30.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="40.0" styleClass="operatorButton" AnchorPane.leftAnchor="45.0" AnchorPane.topAnchor="3.0" />
  144. <Button fx:id="mappingButton" layoutX="60.0" maxHeight="40.0" maxWidth="40.0" minHeight="40.0" minWidth="30.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="40.0" styleClass="mappingButton" AnchorPane.leftAnchor="85.0" AnchorPane.topAnchor="3.0" />
  145. <Button fx:id="symbolRepButton" layoutX="85.0" maxHeight="40.0" maxWidth="40.0" minHeight="40.0" minWidth="30.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="40.0" styleClass="symbolRepButton" AnchorPane.leftAnchor="125.0" AnchorPane.topAnchor="3.0" />
  146. </children>
  147. </AnchorPane>
  148. <AnchorPane VBox.vgrow="ALWAYS">
  149. <children>
  150. <TableView fx:id="metricbox" editable="true" prefWidth="170.0" tableMenuButtonVisible="true" visible="false" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="3.0">
  151. <columns>
  152. <TableColumn fx:id="metricBoxMetricColumn" editable="false" prefWidth="75.0" sortable="false" text="Metric" />
  153. <TableColumn fx:id="metricBoxValueColumn" editable="false" prefWidth="75.0" sortable="false" text="Value" />
  154. <TableColumn fx:id="metricBoxUpdateColumn" editable="true" maxWidth="35.0" minWidth="35.0" prefWidth="35.0" sortable="false" />
  155. </columns>
  156. <columnResizePolicy>
  157. <TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
  158. </columnResizePolicy>
  159. </TableView>
  160. </children>
  161. </AnchorPane>
  162. <ScrollPane fitToHeight="true" fitToWidth="true" hbarPolicy="NEVER" prefHeight="200.0" prefWidth="200.0" vbarPolicy="ALWAYS">
  163. <content>
  164. <TextFlow fx:id="consoleWindow" styleClass="consoleWindow">
  165. <children>
  166. <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Hi" />
  167. </children>
  168. </TextFlow>
  169. </content>
  170. </ScrollPane>
  171. <AnchorPane fx:id="updateButtonAPane" prefHeight="25.0">
  172. <children>
  173. <Button fx:id="updateMetricButton" mnemonicParsing="false" prefHeight="25.0" text="Update metrics" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
  174. </children>
  175. </AnchorPane>
  176. </children>
  177. </VBox>
  178. </children>
  179. </AnchorPane>
  180. </items>
  181. </SplitPane>
  182. </children>
  183. </AnchorPane>
  184. </items>
  185. </SplitPane>
  186. </children>
  187. </AnchorPane>
  188. </children>
  189. </VBox>