@Test public void getTileRelativeFilenameString() { final MapTile tile = new MapTile(1, 13, 12); doReturn(tile.getY()).when(toTest).getYinTMSFormat(anyInt(), anyInt()); final String result = toTest.getTileRelativeFilenameString(tile); assertEquals( tileName + "/" + tile.getZoomLevel() + "/" + tile.getX() + "/" + toTest.getYinTMSFormat(tile.getZoomLevel(), tile.getY()) + fileEnding, result); }
@Override public String getTileRelativeFilenameString(final MapTile tile) { final String filePath = name() + File.separator + tile.getZoomLevel() + File.separator + tile.getX() + File.separator + getYinTMSFormat(tile.getZoomLevel(), tile.getY()) + imageFilenameEnding(); return filePath; }
NicTileSource extends OnlineTileSourceBase { @Override public String getTileRelativeFilenameString(final MapTile tile) { final String filePath = name() + File.separator + tile.getZoomLevel() + File.separator + tile.getX() + File.separator + getYinTMSFormat(tile.getZoomLevel(), tile.getY()) + imageFilenameEnding(); return filePath; } }
NicTileSource extends OnlineTileSourceBase { @Override public String getTileRelativeFilenameString(final MapTile tile) { final String filePath = name() + File.separator + tile.getZoomLevel() + File.separator + tile.getX() + File.separator + getYinTMSFormat(tile.getZoomLevel(), tile.getY()) + imageFilenameEnding(); return filePath; } NicTileSource(final String name, final string resourceId, final int zoomMinLevel,
                         final int zoomMaxLevel, final int tileSizeInPixel, final String imageFilenameEnding);  NicTileSource(final String name, final string resourceId, final int zoomMinLevel, final int zoomMaxLevel,
                         final String urlSchema, final int tileSizeInPixel, final String imageFilenameEnding); }
NicTileSource extends OnlineTileSourceBase { @Override public String getTileRelativeFilenameString(final MapTile tile) { final String filePath = name() + File.separator + tile.getZoomLevel() + File.separator + tile.getX() + File.separator + getYinTMSFormat(tile.getZoomLevel(), tile.getY()) + imageFilenameEnding(); return filePath; } NicTileSource(final String name, final string resourceId, final int zoomMinLevel,
                         final int zoomMaxLevel, final int tileSizeInPixel, final String imageFilenameEnding);  NicTileSource(final String name, final string resourceId, final int zoomMinLevel, final int zoomMaxLevel,
                         final String urlSchema, final int tileSizeInPixel, final String imageFilenameEnding); @Override String getTileRelativeFilenameString(final MapTile tile); @Override String getTileURLString(final MapTile tile); }
NicTileSource extends OnlineTileSourceBase { @Override public String getTileRelativeFilenameString(final MapTile tile) { final String filePath = name() + File.separator + tile.getZoomLevel() + File.separator + tile.getX() + File.separator + getYinTMSFormat(tile.getZoomLevel(), tile.getY()) + imageFilenameEnding(); return filePath; } NicTileSource(final String name, final string resourceId, final int zoomMinLevel,
                         final int zoomMaxLevel, final int tileSizeInPixel, final String imageFilenameEnding);  NicTileSource(final String name, final string resourceId, final int zoomMinLevel, final int zoomMaxLevel,
                         final String urlSchema, final int tileSizeInPixel, final String imageFilenameEnding); @Override String getTileRelativeFilenameString(final MapTile tile); @Override String getTileURLString(final MapTile tile);  }