package smart_gs.swingui.toolbar.action;

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

import smart_gs.drawing_tool.drawing_mode.LineSegEditorDrawRectangleModeForMouse;
import smart_gs.drawing_tool.drawing_mode.LineSegEditorDrawRectangleModeForTouchPanel;
import smart_gs.smleditor.swingui.LineSegEditor;

public class LineSegEditorDrawRectForMouseActionListener implements ActionListener {
	LineSegEditor editor;
	
	public LineSegEditorDrawRectForMouseActionListener(LineSegEditor editor) {
		this.editor = editor;
	}

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

}
