|
3 | 3 | <?import com.jfoenix.controls.JFXButton?>
|
4 | 4 | <?import com.jfoenix.controls.JFXSlider?>
|
5 | 5 | <?import com.jfoenix.controls.JFXTextArea?>
|
| 6 | +<?import com.jfoenix.controls.JFXToggleButton?> |
| 7 | +<?import javafx.scene.Cursor?> |
6 | 8 | <?import javafx.scene.control.Label?>
|
7 | 9 | <?import javafx.scene.effect.DropShadow?>
|
8 | 10 | <?import javafx.scene.layout.AnchorPane?>
|
9 | 11 | <?import javafx.scene.text.Font?>
|
10 | 12 |
|
11 |
| -<AnchorPane id="AnchorPane" prefHeight="600.0" prefWidth="800.0" style="-fx-background-color: #1e2761;" stylesheets="@../css/custom.css" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="GA.SimpleDemoController"> |
| 13 | +<AnchorPane id="AnchorPane" prefHeight="650.0" prefWidth="800.0" style="-fx-background-color: #1e2761;" stylesheets="@../css/custom.css" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="GA.SimpleDemoController"> |
12 | 14 | <children>
|
13 | 15 | <Label layoutX="288.0" layoutY="14.0" text="Genetic Algorithm" textFill="#dddddd">
|
14 | 16 | <font>
|
15 | 17 | <Font name="Consolas Bold" size="24.0" />
|
16 | 18 | </font>
|
17 | 19 | </Label>
|
18 |
| - <JFXSlider fx:id="numberOfIndividuals" layoutX="151.0" layoutY="152.0" prefHeight="14.0" prefWidth="500.0" value="10.0" /> |
19 |
| - <Label layoutX="301.0" layoutY="120.0" text="Number of individual" textFill="#dddddd"> |
| 20 | + <JFXSlider fx:id="numberOfIndividuals" layoutX="150.0" layoutY="122.0" prefHeight="14.0" prefWidth="500.0" value="10.0"> |
| 21 | + <cursor> |
| 22 | + <Cursor fx:constant="OPEN_HAND" /> |
| 23 | + </cursor></JFXSlider> |
| 24 | + <Label alignment="CENTER" layoutX="300.0" layoutY="90.0" text="Number of individual" textFill="#dddddd"> |
20 | 25 | <font>
|
21 | 26 | <Font name="Consolas Bold" size="18.0" />
|
22 | 27 | </font>
|
23 | 28 | </Label>
|
24 |
| - <JFXSlider fx:id="numberOfGenes" layoutX="151.0" layoutY="219.0" prefHeight="14.0" prefWidth="500.0" value="5.0" /> |
25 |
| - <Label layoutX="326.0" layoutY="187.0" prefHeight="22.0" prefWidth="149.0" text="Number of genes" textFill="#dddddd"> |
| 29 | + <JFXSlider fx:id="numberOfGenes" layoutX="150.0" layoutY="189.0" prefHeight="14.0" prefWidth="500.0" value="5.0"> |
| 30 | + <cursor> |
| 31 | + <Cursor fx:constant="OPEN_HAND" /> |
| 32 | + </cursor></JFXSlider> |
| 33 | + <Label alignment="CENTER" layoutX="325.0" layoutY="157.0" prefHeight="22.0" prefWidth="149.0" text="Number of genes" textFill="#dddddd"> |
26 | 34 | <font>
|
27 | 35 | <Font name="Consolas Bold" size="18.0" />
|
28 | 36 | </font>
|
29 | 37 | </Label>
|
30 |
| - <JFXButton fx:id="generator" buttonType="RAISED" layoutX="326.0" layoutY="261.0" prefHeight="40.0" prefWidth="150.0" ripplerFill="#7a2048" style="-fx-background-color: #408ec6;" text="Generate" textFill="#dddddd"> |
| 38 | + <JFXButton fx:id="generator" buttonType="RAISED" layoutX="500.0" layoutY="297.0" prefHeight="40.0" prefWidth="150.0" ripplerFill="#7a2048" style="-fx-background-color: #408ec6;" text="Generate" textFill="#dddddd"> |
31 | 39 | <font>
|
32 | 40 | <Font name="Consolas Bold" size="18.0" />
|
33 | 41 | </font>
|
| 42 | + <cursor> |
| 43 | + <Cursor fx:constant="HAND" /> |
| 44 | + </cursor> |
34 | 45 | </JFXButton>
|
35 |
| - <JFXTextArea fx:id="result" editable="false" focusColor="#7a2048" focusTraversable="false" layoutX="51.0" layoutY="328.0" prefHeight="250.0" prefWidth="700.0" promptText="Results . . ." style="-fx-background-color: #ddd;" unFocusColor="#408ec6" AnchorPane.leftAnchor="51.0" AnchorPane.rightAnchor="49.0"> |
| 46 | + <JFXTextArea fx:id="result" editable="false" focusColor="#7a2048" focusTraversable="false" layoutX="11.0" layoutY="361.0" prefHeight="275.0" prefWidth="780.0" promptText="Results . . ." style="-fx-background-color: #ddd; -fx-padding: 10;" unFocusColor="#408ec6" AnchorPane.leftAnchor="11.0" AnchorPane.rightAnchor="9.0"> |
36 | 47 | <font>
|
37 | 48 | <Font name="Consolas" size="14.0" />
|
38 | 49 | </font>
|
|
47 | 58 | <Font name="Consolas Bold" size="14.0" />
|
48 | 59 | </font>
|
49 | 60 | </Label>
|
50 |
| - <Label fx:id="nbrGenes" alignment="CENTER" focusTraversable="false" layoutX="510.0" layoutY="117.0" prefHeight="30.0" prefWidth="50.0" textFill="#dddddd"> |
| 61 | + <Label fx:id="nbrIndividuals" alignment="CENTER" focusTraversable="false" layoutX="510.0" layoutY="86.0" prefHeight="30.0" prefWidth="50.0" textFill="#dddddd"> |
51 | 62 | <font>
|
52 | 63 | <Font name="Consolas Bold" size="14.0" />
|
53 | 64 | </font>
|
54 | 65 | </Label>
|
55 |
| - <Label fx:id="nbrIndiv" alignment="CENTER" focusTraversable="false" layoutX="485.0" layoutY="183.0" prefHeight="30.0" prefWidth="50.0" textFill="#dddddd"> |
| 66 | + <Label fx:id="nbrGenes" alignment="CENTER" focusTraversable="false" layoutX="485.0" layoutY="153.0" prefHeight="30.0" prefWidth="50.0" textFill="#dddddd"> |
| 67 | + <font> |
| 68 | + <Font name="Consolas Bold" size="14.0" /> |
| 69 | + </font> |
| 70 | + </Label> |
| 71 | + <JFXToggleButton fx:id="showPoll" alignment="CENTER_LEFT" layoutX="152.0" layoutY="288.0" prefHeight="52.0" prefWidth="190.0" size="9.0" text="Show genetic poll" textFill="#dddddd" toggleColor="#7a2048" toggleLineColor="#999999"> |
| 72 | + <font> |
| 73 | + <Font name="System Bold" size="14.0" /> |
| 74 | + </font> |
| 75 | + </JFXToggleButton> |
| 76 | + <JFXSlider fx:id="genSlider" layoutX="151.0" layoutY="258.0" max="500.0" prefHeight="14.0" prefWidth="500.0" value="100.0"> |
| 77 | + <cursor> |
| 78 | + <Cursor fx:constant="OPEN_HAND" /> |
| 79 | + </cursor> |
| 80 | + </JFXSlider> |
| 81 | + <Label alignment="CENTER" layoutX="302.0" layoutY="227.0" prefHeight="22.0" prefWidth="198.0" text="Maximum generations" textFill="#dddddd"> |
| 82 | + <font> |
| 83 | + <Font name="Consolas Bold" size="18.0" /> |
| 84 | + </font> |
| 85 | + </Label> |
| 86 | + <Label fx:id="genCount" alignment="CENTER" focusTraversable="false" layoutX="510.0" layoutY="221.0" prefHeight="30.0" prefWidth="50.0" textFill="#dddddd"> |
56 | 87 | <font>
|
57 | 88 | <Font name="Consolas Bold" size="14.0" />
|
58 | 89 | </font>
|
|
0 commit comments