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


<?import cl.cromer.estructuras.TextFieldLimited?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.text.Text?>
<?import javafx.scene.canvas.Canvas?>
<VBox xmlns:fx="http://javafx.com/fxml/1" prefHeight="768.0" prefWidth="1024.0" spacing="10"
	  xmlns="http://javafx.com/javafx/8.0.92" fx:controller="cl.cromer.estructuras.GrafoController">
	<fx:include source="menu.fxml"/>
	<ScrollPane fitToHeight="true" fitToWidth="true" VBox.vgrow="ALWAYS">
		<HBox alignment="TOP_CENTER" VBox.vgrow="ALWAYS" spacing="50">
			<VBox spacing="10">
				<HBox alignment="CENTER" spacing="10">
					<Button text="%llenar" onAction="#botonLlenar"/>
					<Button text="%vaciar" onAction="#botonVaciar"/>
				</HBox>
				<HBox alignment="CENTER" spacing="10">
					<Text text="%grafoNodos"/>
					<Button text="%insertar" onAction="#botonInsertar"/>
					<Button text="%eliminar" onAction="#botonEliminar"/>
					<TextFieldLimited fx:id="valorGrafo" maxLength="3" prefWidth="50"/>
				</HBox>
				<HBox alignment="CENTER" spacing="10">
					<Text text="%grafoEdges"/>
					<Button text="%insertar" onAction="#botonInsertarEdge"/>
					<Button text="%eliminar" onAction="#botonEliminarEdge"/>
					<TextFieldLimited fx:id="valorNodo1" maxLength="3" prefWidth="50"/>
					<TextFieldLimited fx:id="valorNodo2" maxLength="3" prefWidth="50"/>
					<Text text="%grafoWeight"/>
					<TextFieldLimited fx:id="valorWeight" maxLength="3" prefWidth="50"/>
				</HBox>
				<Canvas fx:id="contenidoGrafo" width="300" height="500"/>
			</VBox>
			<StackPane alignment="TOP_LEFT" minWidth="450">
				<Text fx:id="codigoGrafo"/>
			</StackPane>
		</HBox>
	</ScrollPane>
</VBox>