package smart_gs.swingui.toolbar.action;

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

import smart_gs.drawing_tool.drawing_mode.CloseUpRectangleMode;
import smart_gs.drawing_tool.drawing_mode.Mode;
import smart_gs.drawing_tool.state.DefaultState;
import smart_gs.swingui.AbstractGSWindow;

public class CloseupActionListener implements ActionListener {

	public CloseupActionListener(AbstractGSWindow abstractGSWindow) {
		// TODO Auto-generated constructor stub
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		Mode mode0 = CloseUpRectangleMode.getInstance();
		mode0.setTemporary(true);
		DefaultState.getInstance().setMode(mode0);
	}

}
