Skip to content
Snippets Groups Projects
Commit c17e781e authored by hiba1907's avatar hiba1907
Browse files

code de la classe Coordinate avec les methodes codees testees

parent bf768551
No related branches found
No related tags found
No related merge requests found
Pipeline #38282 failed
Showing
with 87 additions and 0 deletions
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
.root {
-fx-focus-color: transparent;
-fx-font-size: 13px;
}
.background {
-fx-background-color: #1d1d1d;
}
.separator .line {
-fx-border-color: #fff;
}
.button {
-fx-background-color: derive(#1d1d1d, 20%);
-fx-text-fill: #fff;
}
.button:hover,
.button:selected {
-fx-background-color: #fff;
-fx-background-insets: 0 0 -1px 0, 0, 1px, 2px;
-fx-background-radius: 5px, 5px, 4px, 3px;
-fx-text-fill: derive(#1d1d1d, 20%);
}
.label {
-fx-text-fill: #fff;
}
.cell-pane {
-fx-background-color: derive(#1d1d1d, 20%);
}
.alive {
-fx-background-color: #fff;
}
<?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>
File added
File added
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment