First Commit (Fobi)
121
view/edittab.fxml
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import graph.GraphPlotter?>
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.CheckBox?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.RadioButton?>
|
||||
<?import javafx.scene.control.Slider?>
|
||||
<?import javafx.scene.control.ToggleGroup?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
|
||||
<VBox maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1">
|
||||
<children>
|
||||
<HBox prefHeight="100.0" prefWidth="200.0" VBox.vgrow="ALWAYS">
|
||||
<children>
|
||||
<VBox prefHeight="200.0" prefWidth="100.0" />
|
||||
<GraphPlotter fx:id="viewer" onMousePressed="#graphClicked" HBox.hgrow="ALWAYS" />
|
||||
<VBox minHeight="-Infinity" minWidth="-Infinity">
|
||||
<children>
|
||||
<Label alignment="BOTTOM_LEFT" minHeight="-Infinity" minWidth="-Infinity" text="Kanten">
|
||||
<padding>
|
||||
<Insets bottom="5.0" top="5.0" />
|
||||
</padding>
|
||||
<font>
|
||||
<Font name="System Bold" size="12.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<CheckBox fx:id="cbGerichtet" minWidth="-Infinity" mnemonicParsing="false" text="gerichtet" />
|
||||
<CheckBox fx:id="cbGewichtet" minWidth="-Infinity" mnemonicParsing="false" text="gewichtet" />
|
||||
<Button mnemonicParsing="false" onAction="#bDistanzenBestimmen" text="Distanzen bestimmen">
|
||||
<VBox.margin>
|
||||
<Insets top="5.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
<Label alignment="BOTTOM_LEFT" layoutX="10.0" layoutY="10.0" text="Knoten">
|
||||
<padding>
|
||||
<Insets bottom="5.0" top="10.0" />
|
||||
</padding>
|
||||
<font>
|
||||
<Font name="System Bold" size="12.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<RadioButton fx:id="rLeer" mnemonicParsing="false" selected="true" text="leer">
|
||||
<toggleGroup>
|
||||
<ToggleGroup fx:id="tgKnoten" />
|
||||
</toggleGroup>
|
||||
</RadioButton>
|
||||
<RadioButton fx:id="rNummer" mnemonicParsing="false" text="Nummer" toggleGroup="$tgKnoten" />
|
||||
<RadioButton fx:id="rWert" mnemonicParsing="false" text="Wert" toggleGroup="$tgKnoten" />
|
||||
<CheckBox fx:id="cbInfotext" mnemonicParsing="false" text="Infotext">
|
||||
<VBox.margin>
|
||||
<Insets bottom="5.0" top="9.0" />
|
||||
</VBox.margin>
|
||||
</CheckBox>
|
||||
<Label text="Größe">
|
||||
<VBox.margin>
|
||||
<Insets top="5.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
<Slider fx:id="sGroesse" max="60.0" min="2.0" value="20.0">
|
||||
<VBox.margin>
|
||||
<Insets />
|
||||
</VBox.margin>
|
||||
</Slider>
|
||||
<Label alignment="BOTTOM_LEFT" layoutX="20.0" layoutY="76.0" text="Bild">
|
||||
<padding>
|
||||
<Insets bottom="5.0" top="10.0" />
|
||||
</padding>
|
||||
<font>
|
||||
<Font name="System Bold" size="12.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<Label fx:id="lBildname" minHeight="-Infinity" minWidth="-Infinity" text="kein Bild" />
|
||||
<Button maxWidth="1.7976931348623157E308" minWidth="-Infinity" mnemonicParsing="false" onAction="#bBildLaden" text="Bild laden">
|
||||
<VBox.margin>
|
||||
<Insets top="5.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
<Button layoutX="20.0" layoutY="174.0" maxWidth="1.7976931348623157E308" minWidth="-Infinity" mnemonicParsing="false" onAction="#bBildLoeschen" text="Bild löschen">
|
||||
<VBox.margin>
|
||||
<Insets top="5.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
</children>
|
||||
<opaqueInsets>
|
||||
<Insets />
|
||||
</opaqueInsets>
|
||||
<padding>
|
||||
<Insets bottom="5.0" left="10.0" right="10.0" top="5.0" />
|
||||
</padding></VBox>
|
||||
</children>
|
||||
</HBox>
|
||||
<HBox spacing="10.0" VBox.vgrow="NEVER">
|
||||
<children>
|
||||
<Label alignment="BOTTOM_LEFT" text="Speichere als ">
|
||||
<padding>
|
||||
<Insets top="5.0" />
|
||||
</padding>
|
||||
</Label>
|
||||
<RadioButton fx:id="rbMatrix" mnemonicParsing="false" selected="true" text="als Matrix">
|
||||
<padding>
|
||||
<Insets top="5.0" />
|
||||
</padding>
|
||||
<toggleGroup>
|
||||
<ToggleGroup fx:id="tgMatrixListe" />
|
||||
</toggleGroup>
|
||||
</RadioButton>
|
||||
<RadioButton fx:id="rbListe" mnemonicParsing="false" text="als Adjazenzliste" toggleGroup="$tgMatrixListe">
|
||||
<padding>
|
||||
<Insets top="5.0" />
|
||||
</padding></RadioButton>
|
||||
</children>
|
||||
<padding>
|
||||
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
||||
</padding>
|
||||
</HBox>
|
||||
</children>
|
||||
</VBox>
|
||||
BIN
view/end.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
86
view/graphenalgorithmen.fxml
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.control.CheckMenuItem?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.Menu?>
|
||||
<?import javafx.scene.control.MenuBar?>
|
||||
<?import javafx.scene.control.MenuItem?>
|
||||
<?import javafx.scene.control.SeparatorMenuItem?>
|
||||
<?import javafx.scene.control.TabPane?>
|
||||
<?import javafx.scene.input.KeyCodeCombination?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
|
||||
<VBox prefHeight="600.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1">
|
||||
<children>
|
||||
<MenuBar VBox.vgrow="NEVER">
|
||||
<menus>
|
||||
<Menu text="_Datei">
|
||||
<items>
|
||||
<MenuItem mnemonicParsing="false" onAction="#mNeuerGraph" text="Neu">
|
||||
<accelerator>
|
||||
<KeyCodeCombination alt="UP" code="N" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
|
||||
</accelerator>
|
||||
</MenuItem>
|
||||
<MenuItem mnemonicParsing="false" onAction="#mOeffnen" text="Öffnen..." />
|
||||
<MenuItem fx:id="mmSpeichern" mnemonicParsing="false" onAction="#mSpeichern" text="Speichern als ..." />
|
||||
<MenuItem mnemonicParsing="false" onAction="#mBildExportieren" text="Bild exportieren..." />
|
||||
<MenuItem mnemonicParsing="false" onAction="#mSchliessen" text="Schließen" />
|
||||
<SeparatorMenuItem mnemonicParsing="false" />
|
||||
<MenuItem mnemonicParsing="false" onAction="#mBeenden" text="Beenden" />
|
||||
</items>
|
||||
</Menu>
|
||||
<Menu fx:id="mmBearbeiten" mnemonicParsing="false">
|
||||
<graphic>
|
||||
<Label onMouseClicked="#mBearbeiten" text="Bearbeiten" />
|
||||
</graphic>
|
||||
</Menu>
|
||||
<Menu fx:id="mmSimulieren" mnemonicParsing="false">
|
||||
<graphic>
|
||||
<Label onMouseClicked="#mSimuliere" text="Simulieren" />
|
||||
</graphic>
|
||||
</Menu>
|
||||
<Menu fx:id="mmExperimentieren" text="_Experimentieren">
|
||||
<items>
|
||||
<MenuItem mnemonicParsing="false" onAction="#mExperimentiereAuswahl" text="Starte mit ausgewähltem Knoten" />
|
||||
<MenuItem mnemonicParsing="false" onAction="#mExperimentiereKnoten" text="Bearbeite alle Knoten" />
|
||||
<MenuItem mnemonicParsing="false" onAction="#mExperimentiereKanten" text="Bearbeite alle Kanten" />
|
||||
</items>
|
||||
</Menu>
|
||||
<Menu fx:id="mmZuruecksetzen" text="_Zurücksetzen">
|
||||
<items>
|
||||
<MenuItem mnemonicParsing="false" onAction="#mResetAlles" text="Alles zurücksetzen" />
|
||||
<SeparatorMenuItem mnemonicParsing="false" />
|
||||
<MenuItem mnemonicParsing="false" onAction="#mResetFarbe" text="Alle Knotenfarben auf automatisch setzen" />
|
||||
<MenuItem mnemonicParsing="false" onAction="#mResetWert" text="Alle Knotenwerte auf 0 setzen " />
|
||||
<SeparatorMenuItem mnemonicParsing="false" />
|
||||
<MenuItem mnemonicParsing="false" onAction="#mResetMarkierung" text="Alle Knotenmarkierungen entfernen" />
|
||||
<MenuItem mnemonicParsing="false" onAction="#mResetBesucht" text="Alle Knoten als nicht besucht setzen" />
|
||||
<SeparatorMenuItem mnemonicParsing="false" />
|
||||
<MenuItem mnemonicParsing="false" onAction="#mResetKantenmarkierung" text="Alle Kantenmarkierungen entfernen" />
|
||||
<MenuItem mnemonicParsing="false" onAction="#mResetGeloescht" text="Alle Kante auf nicht gelöscht setzen" />
|
||||
</items>
|
||||
</Menu>
|
||||
<Menu fx:id="mmAnsicht" text="_Ansicht">
|
||||
<items>
|
||||
<CheckMenuItem fx:id="mOptionKnotenwerte" mnemonicParsing="false" onAction="#mChangeOptionKnotenwerte" text="Knotenwerte anzeigen" />
|
||||
<CheckMenuItem fx:id="mOptionKnotenname" mnemonicParsing="false" onAction="#mChangeOptionKnotenname" text="Knotennamen anzeigen" />
|
||||
<CheckMenuItem fx:id="mOptionKnoteninfo" mnemonicParsing="false" onAction="#mChangeOptionKnoteninfo" text="Knoteninfo anzeigen" />
|
||||
<CheckMenuItem fx:id="mOptionKantengewichte" mnemonicParsing="false" onAction="#mChangeOptionKantengewichte" text="Kantengewichte anzeigen" />
|
||||
<CheckMenuItem fx:id="mOptionBild" mnemonicParsing="false" onAction="#mChangeOptionBild" text="Bild anzeigen" />
|
||||
</items>
|
||||
</Menu>
|
||||
<Menu text="_Hilfe">
|
||||
<items>
|
||||
<CheckMenuItem fx:id="mHilfefenster" mnemonicParsing="false" onAction="#mChangeHilfefenster" text="Hilfefenster anzeigen" />
|
||||
<SeparatorMenuItem mnemonicParsing="false" />
|
||||
<MenuItem mnemonicParsing="false" onAction="#mUeber" text="Über den Graphtester..." />
|
||||
</items>
|
||||
</Menu>
|
||||
</menus>
|
||||
</MenuBar>
|
||||
<TabPane fx:id="tpRekursionen" VBox.vgrow="ALWAYS">
|
||||
<tabs>
|
||||
|
||||
</tabs></TabPane>
|
||||
</children>
|
||||
</VBox>
|
||||
155
view/graphtab.fxml
Normal file
|
|
@ -0,0 +1,155 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import graph.GraphPlotter?>
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.CheckBox?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.ListView?>
|
||||
<?import javafx.scene.control.Separator?>
|
||||
<?import javafx.scene.image.Image?>
|
||||
<?import javafx.scene.image.ImageView?>
|
||||
<?import javafx.scene.layout.ColumnConstraints?>
|
||||
<?import javafx.scene.layout.GridPane?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import javafx.scene.layout.Pane?>
|
||||
<?import javafx.scene.layout.RowConstraints?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
|
||||
<VBox xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1">
|
||||
<children>
|
||||
<HBox VBox.vgrow="ALWAYS">
|
||||
<children>
|
||||
<VBox prefHeight="200.0" prefWidth="100.0">
|
||||
<children>
|
||||
<Label text="ToDo-Liste">
|
||||
<font>
|
||||
<Font name="System Bold" size="12.0" />
|
||||
</font>
|
||||
<VBox.margin>
|
||||
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
<ListView fx:id="lvAuswahl" prefHeight="200.0" VBox.vgrow="ALWAYS" />
|
||||
<HBox spacing="10.0" VBox.vgrow="NEVER">
|
||||
<children>
|
||||
<Button maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="40.0" mnemonicParsing="false" onAction="#bAnfang" prefHeight="30.0">
|
||||
<graphic>
|
||||
<ImageView fitHeight="19.0" fitWidth="19.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@start.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
</graphic></Button>
|
||||
<Button maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="40.0" mnemonicParsing="false" onAction="#bVoheriger" prefHeight="30.0">
|
||||
<graphic>
|
||||
<ImageView fitHeight="21.0" fitWidth="20.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@stepback.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
</graphic></Button>
|
||||
<Button layoutX="62.0" layoutY="10.0" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="40.0" mnemonicParsing="false" onAction="#bNaechster" prefHeight="30.0">
|
||||
<graphic>
|
||||
<ImageView fitHeight="22.0" fitWidth="23.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@stepforward.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
</graphic></Button>
|
||||
<Button layoutX="114.0" layoutY="10.0" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="40.0" mnemonicParsing="false" onAction="#bEnde" prefHeight="30.0">
|
||||
<graphic>
|
||||
<ImageView fitHeight="25.0" fitWidth="21.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@end.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
</graphic></Button>
|
||||
</children>
|
||||
<padding>
|
||||
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||
</padding>
|
||||
</HBox>
|
||||
<Button fx:id="bAnfang" maxWidth="1.7976931348623157E308" minHeight="0.0" minWidth="-Infinity" mnemonicParsing="false" onAction="#bHinzufuegenAnfang" text="Am Anfang hinzufügen">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" left="10.0" right="10.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
<Button fx:id="bEnde" maxWidth="1.7976931348623157E308" minHeight="0.0" mnemonicParsing="false" onAction="#bHinzufuegenEnde" text="Am Ende hinzufügen">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" left="10.0" right="10.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
<Button fx:id="bSortieren" maxWidth="1.7976931348623157E308" minHeight="-Infinity" mnemonicParsing="false" onAction="#bSort" text="Sortiere">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" left="10.0" right="10.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
</children>
|
||||
</VBox>
|
||||
<GraphPlotter fx:id="viewer" onMousePressed="#graphClicked" prefHeight="700.0" HBox.hgrow="ALWAYS" />
|
||||
<VBox fx:id="infoBox" prefWidth="100.0" spacing="5.0">
|
||||
<children>
|
||||
<Label fx:id="knotenname" text="Knoten: K1">
|
||||
<font>
|
||||
<Font name="System Bold" size="12.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<Label fx:id="knotenwert" text="Wert: 1.0">
|
||||
<VBox.margin>
|
||||
<Insets top="5.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
<Label fx:id="knotenMarkiert" text="markiert" />
|
||||
<Label fx:id="knotenBesucht" text="nicht besucht" />
|
||||
<Button fx:id="wertButton" maxWidth="1.7976931348623157E308" minWidth="-Infinity" mnemonicParsing="false" onAction="#bWertAendern" text="Wert ändern">
|
||||
<VBox.margin>
|
||||
<Insets top="5.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
<Button fx:id="besuchtButton" maxWidth="1.7976931348623157E308" minWidth="-Infinity" mnemonicParsing="false" onAction="#bBesucht" text="Besuchen">
|
||||
<VBox.margin>
|
||||
<Insets />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
<Button maxWidth="1.7976931348623157E308" minHeight="25.0" minWidth="-Infinity" mnemonicParsing="false" onAction="#bMarkieren" text="Markieren" />
|
||||
<GridPane fx:id="farben" gridLinesVisible="true" maxWidth="120.0">
|
||||
<columnConstraints>
|
||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="-Infinity" minWidth="-Infinity" prefWidth="30.0" />
|
||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="-Infinity" minWidth="-Infinity" prefWidth="30.0" />
|
||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="-Infinity" minWidth="-Infinity" prefWidth="30.0" />
|
||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="-Infinity" minWidth="-Infinity" prefWidth="30.0" />
|
||||
</columnConstraints>
|
||||
<rowConstraints>
|
||||
<RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||
<RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||
<RowConstraints maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||
</rowConstraints>
|
||||
<VBox.margin>
|
||||
<Insets top="20.0" />
|
||||
</VBox.margin>
|
||||
</GridPane>
|
||||
<CheckBox fx:id="cbFarbeAutomatisch" minWidth="-Infinity" mnemonicParsing="false" text="Automatisch">
|
||||
<VBox.margin>
|
||||
<Insets bottom="20.0" />
|
||||
</VBox.margin>
|
||||
</CheckBox>
|
||||
<Pane minHeight="0.0" VBox.vgrow="ALWAYS" />
|
||||
<Button fx:id="bGehezu" maxWidth="1.7976931348623157E308" mnemonicParsing="false" onAction="#bGeheZu" text="Gehe zu " />
|
||||
<Separator layoutX="20.0" layoutY="370.0" prefWidth="200.0">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" top="10.0" />
|
||||
</VBox.margin>
|
||||
</Separator>
|
||||
<Button maxWidth="1.7976931348623157E308" minHeight="25.0" minWidth="-Infinity" mnemonicParsing="false" onAction="#bStatusSave" text="Zustand sichern" />
|
||||
<Button fx:id="bStatus" disable="true" maxWidth="1.7976931348623157E308" minWidth="-Infinity" mnemonicParsing="false" onAction="#bStatusRestore" text="Zustand wiederherstellen" />
|
||||
</children>
|
||||
<padding>
|
||||
<Insets bottom="5.0" left="10.0" right="10.0" top="5.0" />
|
||||
</padding>
|
||||
</VBox>
|
||||
</children>
|
||||
</HBox>
|
||||
</children>
|
||||
</VBox>
|
||||
16
view/haupttab.fxml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import graph.GraphPlotter?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
|
||||
<VBox xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1">
|
||||
<children>
|
||||
<HBox VBox.vgrow="ALWAYS">
|
||||
<children>
|
||||
<VBox prefHeight="200.0" prefWidth="100.0" />
|
||||
<GraphPlotter fx:id="viewer" HBox.hgrow="ALWAYS" />
|
||||
</children>
|
||||
</HBox>
|
||||
</children>
|
||||
</VBox>
|
||||
31
view/hilfefenster.fxml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.TreeView?>
|
||||
<?import javafx.scene.layout.AnchorPane?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
|
||||
<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="400.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1">
|
||||
<children>
|
||||
<Label text="Ablauf des Algorithmus">
|
||||
<font>
|
||||
<Font name="System Bold" size="12.0" />
|
||||
</font>
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" top="5.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
<TreeView fx:id="tvAblauf" prefHeight="200.0" prefWidth="200.0" VBox.vgrow="ALWAYS" />
|
||||
<AnchorPane>
|
||||
<children>
|
||||
<Button mnemonicParsing="false" onAction="#bCopyClicked" text="In Zwischenablage kopieren" AnchorPane.bottomAnchor="2.0" AnchorPane.rightAnchor="2.0" AnchorPane.topAnchor="2.0" />
|
||||
</children>
|
||||
</AnchorPane>
|
||||
</children>
|
||||
<padding>
|
||||
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
||||
</padding>
|
||||
</VBox>
|
||||
BIN
view/icon.png
Normal file
|
After Width: | Height: | Size: 9.5 KiB |
BIN
view/pause.png
Normal file
|
After Width: | Height: | Size: 388 B |
BIN
view/reset.png
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
view/run.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
86
view/simulationstab.fxml
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import graph.GraphPlotter?>
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.ComboBox?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.Slider?>
|
||||
<?import javafx.scene.image.Image?>
|
||||
<?import javafx.scene.image.ImageView?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
|
||||
<VBox xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1">
|
||||
<children>
|
||||
<HBox VBox.vgrow="ALWAYS">
|
||||
<children>
|
||||
<VBox prefHeight="200.0" prefWidth="100.0" />
|
||||
<GraphPlotter fx:id="viewer" HBox.hgrow="ALWAYS" />
|
||||
<VBox prefHeight="200.0" prefWidth="100.0" spacing="5.0">
|
||||
<children>
|
||||
<Label minWidth="-Infinity" text="Algorithmen">
|
||||
<font>
|
||||
<Font name="System Bold" size="12.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<ComboBox fx:id="cbAlgorithmen" maxWidth="1.7976931348623157E308" minWidth="-Infinity" />
|
||||
<Label text="Geschwindigkeit">
|
||||
<VBox.margin>
|
||||
<Insets top="5.0" />
|
||||
</VBox.margin>
|
||||
</Label>
|
||||
<Slider fx:id="sSpeed" max="909.0" value="100.0" />
|
||||
<HBox spacing="10.0">
|
||||
<children>
|
||||
<Button fx:id="bStep" minWidth="-Infinity" mnemonicParsing="false" onAction="#mStep" HBox.hgrow="ALWAYS">
|
||||
<graphic>
|
||||
<ImageView fitHeight="20.0" fitWidth="23.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@step.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
</graphic></Button>
|
||||
<Button fx:id="bStart" minWidth="-Infinity" mnemonicParsing="false" onAction="#mStart" HBox.hgrow="ALWAYS">
|
||||
<HBox.margin>
|
||||
<Insets />
|
||||
</HBox.margin>
|
||||
<graphic>
|
||||
<ImageView fitHeight="20.0" fitWidth="26.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@run.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
</graphic>
|
||||
</Button>
|
||||
<Button fx:id="bBreak" minWidth="-Infinity" mnemonicParsing="false" onAction="#mBreak" HBox.hgrow="ALWAYS">
|
||||
<graphic>
|
||||
<ImageView fitHeight="20.0" fitWidth="67.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@pause.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
</graphic>
|
||||
</Button>
|
||||
<Button fx:id="bReset" minWidth="-Infinity" mnemonicParsing="false" onAction="#mReset" HBox.hgrow="ALWAYS">
|
||||
<graphic>
|
||||
<ImageView fitHeight="20.0" fitWidth="44.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@reset.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
</graphic></Button>
|
||||
</children>
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
</VBox.margin>
|
||||
</HBox>
|
||||
</children>
|
||||
<HBox.margin>
|
||||
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
||||
</HBox.margin></VBox>
|
||||
</children>
|
||||
</HBox>
|
||||
</children>
|
||||
</VBox>
|
||||
BIN
view/start.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
view/step.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
view/stepback.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
view/stepforward.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |