Revision 13189 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/styling/EditorTool.java

View differences:

EditorTool.java
49 49
import javax.swing.JComponent;
50 50

  
51 51
/**
52
 * Abstract class that specifies the methods that are useful for the edition.
53
 * Most of them are methods in relation with mouse events in order to control its
54
 * position, what button is pressed and so on.
55
 *
52 56
 * @author jaume dominguez faus - jaume.dominguez@iver.es
53 57
 */
54 58
public abstract class EditorTool implements MouseListener, MouseMotionListener {
55 59

  
56 60
	private JComponent owner;
57

  
61
	/**
62
	 * Constructor method
63
	 *
64
	 * @param targetEditor
65
	 */
58 66
	public EditorTool(JComponent targetEditor) {
59 67
		super();
60 68
		owner = targetEditor;
61 69
	}
62
	
70
	/**
71
	 * Returns the cursor
72
	 */
63 73
	public abstract Cursor getCursor();
64 74

  
65 75
	public void mouseClicked(MouseEvent e) {}
......
73 83
	}
74 84

  
75 85
	public void mouseMoved(MouseEvent e) { }
76
	
86

  
77 87
	public abstract AbstractButton getButton();
78 88
}

Also available in: Unified diff