package automatvgi.edit;

import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import automatvgi.components.AutomatonStyle;

public class FrameEdit extends JFrame {

	private static final long serialVersionUID = 1L;

	public FrameEdit(AutomatonStyle fraut){
		AutomatonStyle.EdgeSetter es=fraut.getEdgeSetter();
		AutomatonStyle.StateSetter ss=fraut.getStateSetter();
		JPanel jp=new JPanel();
		jp.setLayout(new GridLayout(8,0));
		jp.add(new JLabel("Edges:"));
		jp.add(new LabelColorChooser(es));
		jp.add(new LineColorChooser(es));
		jp.add(new JLabel("States:"));
		jp.add(new LabelColorChooser(ss));
		jp.add(new LineColorChooser(ss));
		jp.add(new FillColorChooser(ss));
		setContentPane(jp);
		pack();
		setVisible(true);
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
	}
	
	
}
