Changeset 13758 in josm for trunk


Ignore:
Timestamp:
2018-05-13T15:46:53+02:00 (7 years ago)
Author:
Don-vip
Message:

checkstyle, javadoc

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  
    4040    }
    4141
     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     */
    4248    public TileAnchor(IProjected tileOrigin, IProjected nextTileOrigin) {
    4349        this.tileOrigin = new Point2D.Double(tileOrigin.getEast(), tileOrigin.getNorth());
     
    4551    }
    4652
     53    /**
     54     * Returns the position of the tile origin.
     55     * @return the position of the tile origin
     56     */
    4757    public Point2D getTileOrigin() {
    4858        return tileOrigin;
    4959    }
    5060
     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     */
    5166    public Point2D getNextTileOrigin() {
    5267        return nextTileOrigin;
  • trunk/src/org/openstreetmap/josm/gui/layer/imagery/TilePosition.java

    r11829 r13758  
    1313    private final int zoom;
    1414
     15    /**
     16     * Constructs a new {@code TilePosition}.
     17     * @param x X coordinate
     18     * @param y Y coordinate
     19     * @param zoom zoom level
     20     */
    1521    public TilePosition(int x, int y, int zoom) {
    1622        this.x = x;
  • trunk/src/org/openstreetmap/josm/gui/layer/imagery/WMTSLayerSelection.java

    r13754 r13758  
    2828
    2929/**
    30  *
    31  * Class for displaying WMTS layer selection panel
    32  *
     30 * Class for displaying WMTS layer selection panel.
     31 * @since 13748
    3332 */
    3433public class WMTSLayerSelection extends JPanel {
    35     private final static class AbstractTableModelExtension extends AbstractTableModel {
     34    private static final class AbstractTableModelExtension extends AbstractTableModel {
    3635        private final List<Entry<String, List<Layer>>> layers;
    3736
     
    160159    }
    161160
     161    /**
     162     * Returns the list of layers.
     163     * @return the list of layers
     164     */
    162165    public JTable getTable() {
    163166        return list;
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMTSLayerPanel.java

    r13755 r13758  
    119119        }
    120120        return ret;
    121 
    122121    }
    123122
    124123    @Override
    125124    protected boolean isImageryValid() {
    126         return ((setDefaultLayer.isSelected() && layerTable !=null && layerTable.getSelectedLayer() != null)
     125        return ((setDefaultLayer.isSelected() && layerTable != null && layerTable.getSelectedLayer() != null)
    127126                || !setDefaultLayer.isSelected()
    128                 ) &&  !getImageryName().isEmpty() && !getImageryRawUrl().isEmpty();
     127                ) && !getImageryName().isEmpty() && !getImageryRawUrl().isEmpty();
    129128    }
    130 
    131129}
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CacheContentsPanel.java

    r12634 r13758  
    8585    }
    8686
     87    /**
     88     * Returns the cache stats.
     89     * @param cache imagery cache
     90     * @return the cache stats
     91     */
    8792    public static String[][] getCacheStats(CacheAccess<String, BufferedImageCacheEntry> cache) {
    8893        Set<String> keySet = cache.getCacheControl().getKeySet();
Note: See TracChangeset for help on using the changeset viewer.