|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 |
|
| 3 | +<?import java.lang.*?> |
| 4 | +<?import javafx.geometry.*?> |
| 5 | +<?import javafx.scene.control.*?> |
| 6 | +<?import javafx.scene.layout.*?> |
| 7 | +<?import javafx.scene.text.*?> |
3 | 8 | <?import javafx.geometry.Insets?>
|
4 | 9 | <?import javafx.scene.control.Label?>
|
5 | 10 | <?import javafx.scene.control.TextField?>
|
6 | 11 | <?import javafx.scene.layout.ColumnConstraints?>
|
7 | 12 | <?import javafx.scene.layout.GridPane?>
|
8 | 13 | <?import javafx.scene.layout.RowConstraints?>
|
9 | 14 | <?import javafx.scene.layout.VBox?>
|
| 15 | +<?import javafx.scene.text.Font?> |
10 | 16 |
|
11 |
| -<GridPane alignment="CENTER" minHeight="200.0" minWidth="400.0" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="CasController"> |
12 |
| - <VBox nodeOrientation="LEFT_TO_RIGHT" spacing="10.0" GridPane.hgrow="ALWAYS"> |
13 |
| - <padding> |
14 |
| - <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> |
15 |
| - </padding> |
16 |
| - <opaqueInsets> |
17 |
| - <Insets /> |
18 |
| - </opaqueInsets> |
19 |
| - <Label text="JMC CAS Experimental" /> |
20 |
| - <TextField fx:id="input" onKeyTyped="#textFieldInput" promptText="Enter Expression"> |
21 |
| - <VBox.margin> |
22 |
| - <Insets /> |
23 |
| - </VBox.margin> |
24 |
| - </TextField> |
25 |
| - <GridPane> |
26 |
| - <columnConstraints> |
27 |
| - <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> |
28 |
| - <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> |
29 |
| - </columnConstraints> |
30 |
| - <rowConstraints> |
31 |
| - <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
32 |
| - <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
33 |
| - <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
34 |
| - <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
35 |
| - </rowConstraints> |
36 |
| - <Label fx:id="simplified" text="Simplified" visible="false" GridPane.columnIndex="1" GridPane.halignment="RIGHT" /> |
37 |
| - <Label fx:id="addition" text="Addition Form" visible="false" GridPane.columnIndex="1" GridPane.halignment="RIGHT" GridPane.rowIndex="1" /> |
38 |
| - <Label fx:id="exponential" text="Exponential Form" visible="false" GridPane.columnIndex="1" GridPane.halignment="RIGHT" GridPane.rowIndex="2" /> |
39 |
| - <Label fx:id="beautified" text="Beautified" visible="false" GridPane.columnIndex="1" GridPane.halignment="RIGHT" GridPane.rowIndex="3" /> |
40 |
| - <Label text="Simplified:" /> |
41 |
| - <Label text="Additional Only Form:" GridPane.rowIndex="1" /> |
42 |
| - <Label text="Exponential Form:" GridPane.rowIndex="2" /> |
43 |
| - <Label text="Beautified:" GridPane.rowIndex="3" /> |
44 |
| - </GridPane> |
45 |
| - </VBox> |
46 |
| - <columnConstraints> |
47 |
| - <ColumnConstraints /> |
48 |
| - </columnConstraints> |
49 |
| - <rowConstraints> |
50 |
| - <RowConstraints /> |
51 |
| - </rowConstraints> |
| 17 | +<!--<?import ui.SelectableLabel?>--> |
| 18 | + |
| 19 | +<GridPane alignment="CENTER" minHeight="400.0" minWidth="400.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="CasController"> |
| 20 | + <columnConstraints> |
| 21 | + <ColumnConstraints /> |
| 22 | + </columnConstraints> |
| 23 | + <rowConstraints> |
| 24 | + <RowConstraints /> |
| 25 | + </rowConstraints> |
| 26 | + <children> |
| 27 | + <VBox nodeOrientation="LEFT_TO_RIGHT" spacing="10.0" GridPane.hgrow="ALWAYS"> |
| 28 | + <padding> |
| 29 | + <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /> |
| 30 | + </padding> |
| 31 | + <opaqueInsets> |
| 32 | + <Insets /> |
| 33 | + </opaqueInsets> |
| 34 | + <children> |
| 35 | + <Label text="JMC CAS Experimental" /> |
| 36 | + <TextField fx:id="input" onKeyTyped="#textFieldInput" promptText="Enter Expression"> |
| 37 | + <VBox.margin> |
| 38 | + <Insets /> |
| 39 | + </VBox.margin> |
| 40 | + </TextField> |
| 41 | + <GridPane hgap="5.0"> |
| 42 | + <columnConstraints> |
| 43 | + <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> |
| 44 | + <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> |
| 45 | + </columnConstraints> |
| 46 | + <rowConstraints> |
| 47 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 48 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 49 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 50 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 51 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 52 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 53 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 54 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 55 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 56 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 57 | + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> |
| 58 | + </rowConstraints> |
| 59 | + <children> |
| 60 | + |
| 61 | + |
| 62 | + <!--<SelectableLabel text="Selectable"/>--> |
| 63 | + <Label fx:id="addition" text="Addition Form" visible="false" GridPane.columnIndex="1" GridPane.halignment="RIGHT" /> |
| 64 | + <Label fx:id="exponential" text="Exponential Form" visible="false" GridPane.columnIndex="1" GridPane.halignment="RIGHT" GridPane.rowIndex="1" /> |
| 65 | + <Label fx:id="simplified" text="Simplified" visible="false" GridPane.columnIndex="1" GridPane.halignment="RIGHT" GridPane.rowIndex="4" /> |
| 66 | + <Label fx:id="beautified" text="Beautified" textFill="#20a822" visible="false" GridPane.columnIndex="1" GridPane.halignment="RIGHT" GridPane.rowIndex="5"> |
| 67 | + <font> |
| 68 | + <Font name="System Bold" size="13.0" /> |
| 69 | + </font> |
| 70 | + </Label> |
| 71 | + <Label text="Additional Only Form:" /> |
| 72 | + <Label text="Exponential Form:" GridPane.rowIndex="1" /> |
| 73 | + <Label text="Simplified:" GridPane.rowIndex="4" /> |
| 74 | + <Label text="Beautified:" GridPane.rowIndex="5" /> |
| 75 | + <Label text="# Nodes:" GridPane.rowIndex="2" /> |
| 76 | + <Label fx:id="nodesBefore" text="# nodes" visible="false" GridPane.columnIndex="1" GridPane.halignment="RIGHT" GridPane.rowIndex="2" /> |
| 77 | + <Label text="Complexity:" GridPane.rowIndex="3" /> |
| 78 | + <Label fx:id="complexityBefore" text="complexity" visible="false" GridPane.columnIndex="1" GridPane.halignment="RIGHT" GridPane.rowIndex="3" /> |
| 79 | + <Label text="# Nodes (Simplified):" GridPane.rowIndex="6" /> |
| 80 | + <Label fx:id="nodesAfter" text="nodes (after)" visible="false" GridPane.columnIndex="1" GridPane.halignment="RIGHT" GridPane.rowIndex="6" /> |
| 81 | + <Label text="Complexity (Simplified):" GridPane.rowIndex="7" /> |
| 82 | + <Label fx:id="complexityAfter" text="complexity (after)" visible="false" GridPane.columnIndex="1" GridPane.halignment="RIGHT" GridPane.rowIndex="7" /> |
| 83 | + <Label text="Error Message:" GridPane.rowIndex="8" /> |
| 84 | + <Label fx:id="errMsg" text="""" textFill="#f80909" visible="false" GridPane.columnIndex="1" GridPane.halignment="RIGHT" GridPane.rowIndex="8" /> |
| 85 | + <Label text="Raw Value:" GridPane.rowIndex="9" /> |
| 86 | + <Label fx:id="val" text="val" textFill="#0c49ff" visible="false" GridPane.columnIndex="1" GridPane.halignment="RIGHT" GridPane.rowIndex="9" /> |
| 87 | + <Label text="Variables:" GridPane.rowIndex="10" /> |
| 88 | + <Label fx:id="vars" text="vars" visible="false" GridPane.columnIndex="1" GridPane.halignment="RIGHT" GridPane.rowIndex="10" /> |
| 89 | + </children> |
| 90 | + </GridPane> |
| 91 | + </children> |
| 92 | + </VBox> |
| 93 | + </children> |
52 | 94 | </GridPane>
|
0 commit comments