<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.scene.canvas.Canvas?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.RadioMenuItem?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>

<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="780.0" prefWidth="720.0" xmlns="http://javafx.com/javafx/8.0.181" xmlns:fx="http://javafx.com/fxml/1" fx:controller="barnestr.Dot2DotController">
    <children>
        <MenuBar>
            <menus>
                <Menu mnemonicParsing="false" text="File">
                    <items>
                        <MenuItem mnemonicParsing="false" onAction="#load" text="Open" />
                        <MenuItem mnemonicParsing="false" onAction="#save" text="Save" />
                        <MenuItem mnemonicParsing="false" onAction="#close" text="Close" />
                    </items>
                </Menu>
                <Menu mnemonicParsing="false" text="Draw">
                    <items>
                        <MenuItem fx:id="linesMenuItem" disable="true" mnemonicParsing="false" onAction="#linesOnly" text="Lines Only" />
                        <MenuItem fx:id="dotsMenuItem" disable="true" mnemonicParsing="false" onAction="#dotsOnly" text="Dots Only" />
                    </items>
                </Menu>
            <Menu mnemonicParsing="false" text="List">
              <items>
                  <RadioMenuItem fx:id="radioArrayList" mnemonicParsing="false" selected="true" text="ArrayList">
                     <toggleGroup>
                        <ToggleGroup fx:id="toggleList" />
                     </toggleGroup></RadioMenuItem>
                  <RadioMenuItem fx:id="radioLinkedList" mnemonicParsing="false" text="LinkedList" toggleGroup="$toggleList" />
              </items>
            </Menu>
            <Menu mnemonicParsing="false" text="Remove">
               <items>
                  <RadioMenuItem fx:id="radioIndexOnly" mnemonicParsing="false" selected="true" text="Index Only">
                     <toggleGroup>
                        <ToggleGroup fx:id="toggleRemove" />
                     </toggleGroup></RadioMenuItem>
                  <RadioMenuItem fx:id="radioIteratorOnly" mnemonicParsing="false" text="Iterator Only" toggleGroup="$toggleRemove" />
               </items>
            </Menu>
            </menus>
        </MenuBar>
        <HBox alignment="CENTER" minHeight="35.0" minWidth="720.0" prefHeight="35.0" prefWidth="720.0">
            <children>
                <Label text="Number of Dots:">
                    <HBox.margin>
                        <Insets />
                    </HBox.margin>
                </Label>
                <TextField fx:id="numDotsField" onAction="#changeDotAmount">
                    <HBox.margin>
                        <Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
                    </HBox.margin>
                </TextField>
            <Button fx:id="buttonChange" disable="true" mnemonicParsing="false" onAction="#changeDotAmount" text="Change Dots" />
            <Label fx:id="labelTime" alignment="CENTER_RIGHT" text="Run Time:" textAlignment="CENTER">
               <padding>
                  <Insets left="5.0" />
               </padding>
            </Label>
            </children>
         <VBox.margin>
            <Insets />
         </VBox.margin>
        </HBox>
        <Canvas fx:id="canvas" height="720.0" width="720.0" />
    </children>
</VBox>
