- Timestamp:
- 2018-05-13T15:46:53+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/imagery/TileAnchor.java
r11855 r13758 40 40 } 41 41 42 /** 43 * Constructs a new {@code TileAnchor}. 44 * @param tileOrigin position of the tile origin 45 * @param nextTileOrigin position of the opposite tile corner, i.e. the 46 * origin of the tile with index (x+1,y+1), when current tile has index (x,y) 47 */ 42 48 public TileAnchor(IProjected tileOrigin, IProjected nextTileOrigin) { 43 49 this.tileOrigin = new Point2D.Double(tileOrigin.getEast(), tileOrigin.getNorth()); … … 45 51 } 46 52 53 /** 54 * Returns the position of the tile origin. 55 * @return the position of the tile origin 56 */ 47 57 public Point2D getTileOrigin() { 48 58 return tileOrigin; 49 59 } 50 60 61 /** 62 * Returns the position of the opposite tile corner. 63 * @return the position of the opposite tile corner, i.e. the 64 * origin of the tile with index (x+1,y+1), when current tile has index (x,y) 65 */ 51 66 public Point2D getNextTileOrigin() { 52 67 return nextTileOrigin; -
trunk/src/org/openstreetmap/josm/gui/layer/imagery/TilePosition.java
r11829 r13758 13 13 private final int zoom; 14 14 15 /** 16 * Constructs a new {@code TilePosition}. 17 * @param x X coordinate 18 * @param y Y coordinate 19 * @param zoom zoom level 20 */ 15 21 public TilePosition(int x, int y, int zoom) { 16 22 this.x = x; -
trunk/src/org/openstreetmap/josm/gui/layer/imagery/WMTSLayerSelection.java
r13754 r13758 28 28 29 29 /** 30 * 31 * Class for displaying WMTS layer selection panel 32 * 30 * Class for displaying WMTS layer selection panel. 31 * @since 13748 33 32 */ 34 33 public class WMTSLayerSelection extends JPanel { 35 private final staticclass AbstractTableModelExtension extends AbstractTableModel {34 private static final class AbstractTableModelExtension extends AbstractTableModel { 36 35 private final List<Entry<String, List<Layer>>> layers; 37 36 … … 160 159 } 161 160 161 /** 162 * Returns the list of layers. 163 * @return the list of layers 164 */ 162 165 public JTable getTable() { 163 166 return list; -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMTSLayerPanel.java
r13755 r13758 119 119 } 120 120 return ret; 121 122 121 } 123 122 124 123 @Override 125 124 protected boolean isImageryValid() { 126 return ((setDefaultLayer.isSelected() && layerTable != null && layerTable.getSelectedLayer() != null)125 return ((setDefaultLayer.isSelected() && layerTable != null && layerTable.getSelectedLayer() != null) 127 126 || !setDefaultLayer.isSelected() 128 ) && 127 ) && !getImageryName().isEmpty() && !getImageryRawUrl().isEmpty(); 129 128 } 130 131 129 } -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CacheContentsPanel.java
r12634 r13758 85 85 } 86 86 87 /** 88 * Returns the cache stats. 89 * @param cache imagery cache 90 * @return the cache stats 91 */ 87 92 public static String[][] getCacheStats(CacheAccess<String, BufferedImageCacheEntry> cache) { 88 93 Set<String> keySet = cache.getCacheControl().getKeySet();
Note:
See TracChangeset
for help on using the changeset viewer.