package smart_gs.swingui.toolbar.action;

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

import smart_gs.drawing_tool.drawing_mode.LineSegEditorDefaultMode;
import smart_gs.drawing_tool.drawing_mode.LineSegEditorDrawMode;
import smart_gs.smleditor.swingui.LineSegEditor;

public class LineSegEditorDefaultActionListener implements ActionListener {
	LineSegEditor editor;

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

	@Override
	public void actionPerformed(ActionEvent e) {
		editor.setMode(LineSegEditorDefaultMode.getInstance());
	}
}
