Skip to content
Snippets Groups Projects
Select Git revision
  • b37c71b1351d502639ba20f973f3e98eb169665b
  • main default protected
  • correction_video
  • going_further
  • ImprovedMouseInteraction
  • final2023
  • template
  • ModifGUI
8 results

view.fxml

  • Forked from LABOUREL Arnaud / Game of life Template
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    view.fxml 2.94 KiB
    <?xml version="1.0" encoding="UTF-8"?>
    
    <?import javafx.geometry.Insets?>
    <?import javafx.scene.control.*?>
    <?import javafx.scene.layout.*?>
    <?import view.MatrixPane?>
    <AnchorPane maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308"
                styleClass="background" stylesheets="@style.css"
                xmlns="http://javafx.com/javafx/8.0.65" xmlns:fx="http://javafx.com/fxml/1"
                fx:controller="controller.Controller">
      <padding>
        <Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
      </padding>
      <children>
        <HBox alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="24.0"
              prefWidth="980.0" spacing="10.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0"
              AnchorPane.topAnchor="0.0">
          <children>
            <Separator maxHeight="-Infinity" maxWidth="-Infinity" orientation="VERTICAL"
                       prefHeight="24.0" prefWidth="6.0"/>
            <ToggleButton fx:id="playToggleButton" maxHeight="-Infinity" maxWidth="-Infinity"
                          mnemonicParsing="false" onAction="#playToggleButtonAction" prefHeight="24.0"
                          prefWidth="62.0" styleClass="button" text="Play"/>
            <ToggleButton fx:id="pauseToggleButton" maxHeight="-Infinity" maxWidth="-Infinity"
                          mnemonicParsing="false" onAction="#pauseToggleButtonAction" prefHeight="24.0"
                          prefWidth="71.0" styleClass="button" text="Pause"/>
            <Button fx:id="resetButton" maxHeight="-Infinity" maxWidth="-Infinity"
                    mnemonicParsing="false" onAction="#resetButtonAction" prefHeight="24.0" prefWidth="70.0"
                    text="Reset"/>
            <Button fx:id="clearButton" maxHeight="-Infinity" maxWidth="-Infinity"
                    mnemonicParsing="false" onAction="#clearButtonAction" prefHeight="24.0" prefWidth="70.0"
                    text="Clear"/>
            <Separator maxHeight="-Infinity" maxWidth="-Infinity" orientation="VERTICAL"
                       prefHeight="24.0" prefWidth="6.0"/>
            <Separator maxHeight="-Infinity" maxWidth="-Infinity" orientation="VERTICAL"
                       prefHeight="24.0" prefWidth="6.0"/>
            <Label maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="24.0" prefWidth="103.0"
                   text="Generation"/>
            <Label fx:id="generationNumberLabel" alignment="CENTER_RIGHT" contentDisplay="TEXT_ONLY"
                   maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="24.0" prefWidth="99.0"/>
            <Separator maxHeight="-Infinity" maxWidth="-Infinity" orientation="VERTICAL"
                       prefHeight="24.0" prefWidth="6.0"/>
          </children>
        </HBox>
        <MatrixPane fx:id="matrixPane" alignment="CENTER" hgap="1.0"
                    maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="600.0" prefWidth="980.0" vgap="1.0"
                    AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0"
                    AnchorPane.topAnchor="35.0"/>
      </children>
    </AnchorPane>