/* $Id: DrawArrowAction.java 125 2011-03-09 09:49:51Z ohura $ */
package smart_gs.drawing_tool.action;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;

import smart_gs.drawing_tool.ImageLabel;
import smart_gs.drawing_tool.SpreadCanvas;
import smart_gs.drawing_tool.state.UniSelectedState;
import smart_gs.drawing_tool.view.View;
import smart_gs.logical.Region;
import smart_gs.drawing_tool.view.MemoPadView;
import javax.swing.JOptionPane;

public class DrawArrowAction implements ActionListener {
	
	//private static final long serialVersionUID = 1L;
	private View view;
	private SpreadCanvas canvas;
	
	public DrawArrowAction(Region region, SpreadCanvas canvas) {
		this.view = region.getView();
		this.canvas = canvas;
	}
	

	@Override
	public void actionPerformed(ActionEvent e) {
		((UniSelectedState)canvas.getImageLabel().getState()).setCreateArrowPointMode(true);
	}

}
