package org.arakhne.neteditor.fsm ;

public class FSMEditor extends JFrame {

	private final JFigureViewer<FiniteStateMachine> figurePanel;

	private FiniteStateMachine stateMachine;

	public FSMEditor() throws IOException {
		super(Locale.getString("TITLE"));

		//...

		this.stateMachine = new FiniteStateMachine();

		this.figurePanel = new JFigureViewer<>(
				FiniteStateMachine.class,
				this.stateMachine,
				new FSMFigureFactory(),
				true);
		this.figurePanel.setAxisDrawn(true);
		add(BorderLayout.CENTER, this.figurePanel);

		//...
	}

	//...

}