Revision 20100 branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/tools/Behavior/PointBehavior.java

View differences:

PointBehavior.java
49 49

  
50 50

  
51 51
/**
52
 * Behaviour que espera un listener de tipo PointListener.
52
 * <p>Behavior that permits user to select a point with a double click mouse action, on the associated
53
 *  <code>MapControl</code> using a {@link PointListener PointListener}.</p>
53 54
 *
54 55
 * @author Vicente Caballero Navarro
55 56
 */
56 57
public class PointBehavior extends Behavior {
58
	/**
59
	 * Tool listener used to work with the <<code>MapControl</code> object.
60
	 * 
61
	 * @see #getListener()
62
	 * @see #setListener(ToolListener)
63
	 */
57 64
	private PointListener listener;
65

  
66
	/**
67
	 * Flag that determines a double click user action.
68
	 */
58 69
	private boolean doubleClick=false;
70

  
59 71
	/**
60
	 * Crea un nuevo PointBehavior.
61
	 *
62
	 * @param l listener.
72
 	 * <p>Creates a new behavior for selecting a point.</p>
73
 	 *
74
	 * @param l listener used to permit this object to work with the associated <code>MapControl</code>
63 75
	 */
64 76
	public PointBehavior(PointListener l) {
65 77
		listener = l;
66 78
	}
67 79

  
68
	/**
69
	 * Reimplementaci?n del m?todo mousePressed de Behavior.
70
	 *
71
	 * @param e MouseEvent
80
	/*
81
	 * (non-Javadoc)
82
	 * @see com.iver.cit.gvsig.fmap.tools.Behavior.Behavior#mousePressed(java.awt.event.MouseEvent)
72 83
	 */
73 84
	public void mousePressed(MouseEvent e) {
74 85
		if (listener.cancelDrawing()) {
......
79 90
		}
80 91
	}
81 92

  
82
	/**
83
	 * Reimplementaci?n del m?todo mouseReleased de Behavior.
84
	 *
85
	 * @param e MouseEvent
86
	 *
87
	 * @throws BehaviorException Excepci?n lanzada cuando el Maptool.
93
	/*
94
	 * (non-Javadoc)
95
	 * @see com.iver.cit.gvsig.fmap.tools.Behavior.Behavior#mouseReleased(java.awt.event.MouseEvent)
88 96
	 */
89 97
	public void mouseReleased(MouseEvent e) throws BehaviorException {
90 98
		PointEvent event = new PointEvent(e.getPoint(), e);
......
96 104
	}
97 105

  
98 106
	/**
99
	 * @see com.iver.cit.gvsig.fmap.tools.Behavior.Behavior#setListener(com.iver.cit.gvsig.fmap.tools.ToolListener)
107
	 * <p>Sets a tool listener to work with the <code>MapControl</code> using this behavior.</p>
108
	 * 
109
	 * @param listener a <code>PointListener</code> object for this behavior
100 110
	 */
101 111
	public void setListener(ToolListener listener) {
102 112
		this.listener = (PointListener) listener;
103 113
	}
104 114

  
105
	/**
115
	/*
116
	 * (non-Javadoc)
106 117
	 * @see com.iver.cit.gvsig.fmap.tools.Behavior.Behavior#getListener()
107 118
	 */
108 119
	public ToolListener getListener() {

Also available in: Unified diff