package smart_gs.swingui.toolbar.action;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import smart_gs.drawing_tool.drawing_mode.LineSegEditorSemiAutomaticMode;
import smart_gs.smleditor.swingui.LineSegEditor;

public class LineSegEditorSemiAutomaticLineSegmentationActionListener implements ActionListener {
	LineSegEditor editor;

	public LineSegEditorSemiAutomaticLineSegmentationActionListener(LineSegEditor editor) {
		this.editor = editor;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
			editor.setMode(new LineSegEditorSemiAutomaticMode(editor));
	}
}
