-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- improved results and graph details UI so reader directs eye to most relevant data - improved graph formatting - tiny refactorings - fixed README typos, updated screenshots due to UI update - added master experiment results used in the master document for storage - added multiple experiments test to verify the software effectiveness
- Loading branch information
Showing
60 changed files
with
207,026 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 Marjan Tanevski | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ public InformationAlert(String title, String header, String content) { | |
this.setContentText(content); | ||
} | ||
} | ||
|
34 changes: 34 additions & 0 deletions
34
caa-experimentation-gui/src/main/java/com/mtanevski/master/caa/gui/alerts/TextAlert.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.mtanevski.master.caa.gui.alerts; | ||
|
||
import javafx.scene.control.Alert; | ||
import javafx.scene.control.TextArea; | ||
import javafx.scene.layout.GridPane; | ||
import javafx.scene.layout.Priority; | ||
|
||
public class TextAlert extends Alert { | ||
public TextAlert(String title, String header, String content) { | ||
super(AlertType.INFORMATION); | ||
|
||
this.setTitle(title); | ||
this.setHeaderText(header); | ||
|
||
Alert alert = new Alert(AlertType.INFORMATION); | ||
alert.setTitle(title); | ||
|
||
TextArea textArea = new TextArea(content); | ||
textArea.setEditable(false); | ||
textArea.setWrapText(true); | ||
|
||
textArea.setMaxWidth(Double.MAX_VALUE); | ||
textArea.setMaxHeight(Double.MAX_VALUE); | ||
GridPane.setVgrow(textArea, Priority.ALWAYS); | ||
GridPane.setHgrow(textArea, Priority.ALWAYS); | ||
|
||
GridPane expContent = new GridPane(); | ||
expContent.setMaxWidth(Double.MAX_VALUE); | ||
expContent.add(textArea, 0, 0); | ||
|
||
this.getDialogPane().setContent(expContent); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 22 additions & 18 deletions
40
caa-experimentation-gui/src/main/resources/fxml/graph-details.fxml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
|
||
<?import javafx.geometry.Insets?> | ||
<?import javafx.scene.chart.PieChart?> | ||
<?import javafx.scene.control.Label?> | ||
<?import javafx.scene.control.TextField?> | ||
<?import javafx.scene.layout.HBox?> | ||
<?import javafx.scene.layout.VBox?> | ||
<HBox xmlns:fx="http://javafx.com/fxml/1" prefHeight="647.0" prefWidth="875.0" xmlns="http://javafx.com/javafx/11.0.1" | ||
<?import javafx.scene.text.Font?> | ||
<HBox xmlns:fx="http://javafx.com/fxml/1" prefHeight="972.0" prefWidth="526.0" xmlns="http://javafx.com/javafx/11.0.1" | ||
fx:controller="com.mtanevski.master.caa.gui.controllers.GraphDetailsController"> | ||
<VBox alignment="CENTER_LEFT" prefHeight="410.0" prefWidth="500.0" spacing="20.0" HBox.hgrow="ALWAYS"> | ||
<VBox alignment="CENTER" prefHeight="942.0" prefWidth="513.0" spacing="20.0" HBox.hgrow="ALWAYS"> | ||
<HBox.margin> | ||
<Insets bottom="10.0" left="20.0" right="10.0" top="20.0"/> | ||
</HBox.margin> | ||
<Label text="%graph.details.starting.vertex"/> | ||
<TextField fx:id="startingVertexText" editable="false"/> | ||
<Label text="%graph.details.happy.vertices"/> | ||
<TextField fx:id="happyVerticesText" editable="false"/> | ||
<Label text="%graph.details.sad.vertices"/> | ||
<TextField fx:id="sadVerticesText" editable="false"/> | ||
<Label text="%graph.details.all.vertices"/> | ||
<TextField fx:id="verticesText" editable="false"/> | ||
<Label text="%graph.details.all.edges"/> | ||
<fx:include fx:id="edgesTableView" source="edges-table.fxml"/> | ||
<Label text="%graph.details.title" VBox.vgrow="NEVER"> | ||
<font> | ||
<Font size="18.0"/> | ||
</font> | ||
<VBox.margin> | ||
<Insets bottom="10.0"/> | ||
</VBox.margin> | ||
</Label> | ||
<PieChart fx:id="verticesTypesChart" VBox.vgrow="ALWAYS"/> | ||
<Label text="%graph.details.starting.vertex" VBox.vgrow="NEVER"/> | ||
<TextField fx:id="startingVertexText" editable="false" VBox.vgrow="NEVER"/> | ||
<Label text="%graph.details.happy.vertices" VBox.vgrow="NEVER"/> | ||
<TextField fx:id="happyVerticesText" editable="false" VBox.vgrow="NEVER"/> | ||
<Label text="%graph.details.sad.vertices" VBox.vgrow="NEVER"/> | ||
<TextField fx:id="sadVerticesText" editable="false" VBox.vgrow="NEVER"/> | ||
<Label text="%graph.details.all.vertices" VBox.vgrow="NEVER"/> | ||
<TextField fx:id="verticesText" editable="false" VBox.vgrow="NEVER"/> | ||
<Label text="%graph.details.all.edges" VBox.vgrow="NEVER"/> | ||
<fx:include fx:id="edgesTableView" source="edges-table.fxml" VBox.vgrow="ALWAYS"/> | ||
</VBox> | ||
<PieChart fx:id="verticesTypesChart" HBox.hgrow="ALWAYS"> | ||
<HBox.margin> | ||
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0"/> | ||
</HBox.margin> | ||
</PieChart> | ||
</HBox> |
Oops, something went wrong.