Changeset 10576 in josm
- Timestamp:
- 2016-07-20T22:39:09+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r10571 r10576 200 200 @Override 201 201 public void filterChanged() { 202 redraw();202 invalidate(); 203 203 } 204 204 … … 283 283 * @see Main#map 284 284 * @see MapFrame#repaint() 285 * @see #invalidate() To trigger a repaint of all places where the layer is displayed. 285 286 */ 286 287 protected void redraw() { … … 290 291 291 292 @Override 293 public void invalidate() { 294 needRedraw = true; 295 super.invalidate(); 296 } 297 298 /** 299 * {@inheritDoc} 300 * @deprecated Use {@link TileSourceDisplaySettings#getDx()} 301 */ 302 @Override 303 @Deprecated 292 304 public double getDx() { 293 305 return getDisplaySettings().getDx(); 294 306 } 295 307 296 @Override 308 /** 309 * {@inheritDoc} 310 * @deprecated Use {@link TileSourceDisplaySettings#getDy()} 311 */ 312 @Override 313 @Deprecated 297 314 public double getDy() { 298 315 return getDisplaySettings().getDy(); 299 316 } 300 317 301 @Override 318 /** 319 * {@inheritDoc} 320 * @deprecated Use {@link TileSourceDisplaySettings} 321 */ 322 @Override 323 @Deprecated 302 324 public void displace(double dx, double dy) { 303 325 getDisplaySettings().addDisplacement(new EastNorth(dx, dy)); … … 305 327 306 328 /** 307 * Marks layer as needing redraw on offset change 308 */ 309 @Override 329 * {@inheritDoc} 330 * @deprecated Use {@link TileSourceDisplaySettings} 331 */ 332 @Override 333 @Deprecated 310 334 public void setOffset(double dx, double dy) { 311 335 getDisplaySettings().setDisplacement(new EastNorth(dx, dy)); … … 446 470 if (clickedTile != null) { 447 471 loadTile(clickedTile, true); 448 redraw();472 invalidate(); 449 473 } 450 474 } … … 528 552 public void actionPerformed(ActionEvent ae) { 529 553 loadAllTiles(true); 530 redraw();531 554 } 532 555 } … … 540 563 public void actionPerformed(ActionEvent ae) { 541 564 loadAllErrorTiles(true); 542 redraw();543 565 } 544 566 } … … 566 588 public void actionPerformed(ActionEvent ae) { 567 589 setZoomLevel(getBestZoom()); 568 redraw();569 590 } 570 591 } … … 579 600 public void actionPerformed(ActionEvent ae) { 580 601 increaseZoomLevel(); 581 redraw();582 602 } 583 603 } … … 592 612 public void actionPerformed(ActionEvent ae) { 593 613 decreaseZoomLevel(); 594 redraw();595 614 } 596 615 } … … 747 766 if (getDisplaySettings().isAutoZoom() && getBestZoom() != currentZoomLevel) { 748 767 setZoomLevel(getBestZoom()); 749 redraw();768 invalidate(); 750 769 } 751 770 break; 752 771 case TileSourceDisplaySettings.AUTO_LOAD: 753 772 if (getDisplaySettings().isAutoLoad()) { 754 redraw();773 invalidate(); 755 774 } 756 775 break; 757 776 default: 758 777 // trigger a redraw just to be sure. 759 redraw();778 invalidate(); 760 779 } 761 780 } … … 843 862 ((TMSCachedTileLoader) tileLoader).cancelOutstandingTasks(); 844 863 } 845 needRedraw = true;864 invalidate(); 846 865 } 847 866 … … 1007 1026 } 1008 1027 ts.loadAllTiles(force); 1028 invalidate(); 1009 1029 } 1010 1030 … … 1012 1032 TileSet ts = getVisibleTileSet(); 1013 1033 ts.loadAllErrorTiles(force); 1034 invalidate(); 1014 1035 } 1015 1036
Note:
See TracChangeset
for help on using the changeset viewer.