1 /*
2 * Copyright (c) 2005, the JUNG Project and the Regents of the University of
3 * California All rights reserved.
4 *
5 * This software is open-source under the BSD license; see either "license.txt"
6 * or http://jung.sourceforge.net/license.txt for a description.
7 *
8 * Created on Aug 26, 2005
9 */
10
11 package edu.uci.ics.jung.visualization.control;
12
13 import java.awt.event.ItemListener;
14
15 import edu.uci.ics.jung.visualization.VisualizationViewer.GraphMouse;
16
17 /**
18 * Interface for a GraphMouse that supports modality.
19 *
20 * @author Tom Nelson
21 *
22 */
23 public interface ModalGraphMouse extends GraphMouse {
24
25 void setMode(Mode mode);
26
27 /**
28 * @return Returns the modeListener.
29 */
30 ItemListener getModeListener();
31
32 /**
33 */
34 enum Mode { TRANSFORMING, PICKING, ANNOTATING, EDITING }
35
36 }