Changeset 6084 in josm for trunk/src/org/openstreetmap/josm/gui/SelectionManager.java
- Timestamp:
- 2013-07-26T13:38:17+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/SelectionManager.java
r6070 r6084 123 123 selectionEndedListener.addPropertyChangeListener(this); 124 124 eventSource.addPropertyChangeListener("scale", new PropertyChangeListener(){ 125 @Override 125 126 public void propertyChange(PropertyChangeEvent evt) { 126 127 if (mousePosStart != null) { … … 146 147 * If the correct button, from the "drawing rectangle" mode 147 148 */ 149 @Override 148 150 public void mousePressed(MouseEvent e) { 149 151 if (e.getButton() == MouseEvent.BUTTON1) { … … 158 160 * If the correct button is hold, draw the rectangle. 159 161 */ 162 @Override 160 163 public void mouseDragged(MouseEvent e) { 161 164 int buttonPressed = e.getModifiersEx() & (MouseEvent.BUTTON1_DOWN_MASK | MouseEvent.BUTTON3_DOWN_MASK); … … 188 191 * Check the state of the keys and buttons and set the selection accordingly. 189 192 */ 193 @Override 190 194 public void mouseReleased(MouseEvent e) { 191 195 if (e.getButton() != MouseEvent.BUTTON1) … … 273 277 * If the action goes inactive, remove the selection rectangle from screen 274 278 */ 279 @Override 275 280 public void propertyChange(PropertyChangeEvent evt) { 276 281 if (evt.getPropertyName().equals("active") && !(Boolean)evt.getNewValue() && mousePosStart != null) { … … 362 367 } 363 368 369 @Override 364 370 public void mouseClicked(MouseEvent e) {} 371 @Override 365 372 public void mouseEntered(MouseEvent e) {} 373 @Override 366 374 public void mouseExited(MouseEvent e) {} 375 @Override 367 376 public void mouseMoved(MouseEvent e) {} 368 377 }
Note:
See TracChangeset
for help on using the changeset viewer.