Revision 5981

View differences:

org.gvsig.raster.tilecache/trunk/org.gvsig.raster.tilecache/org.gvsig.raster.tilecache.io/src/main/java/org/gvsig/raster/tilecache/io/TileProvider.java
100 100
	private MathUtils                   math                     = RasterLocator.getManager().getMathUtils();
101 101
	private TileServer                  secondLevelTileServer    = null;
102 102

  
103
	/**
104
	 * Register in data manager
105
	 */
103 106
	public static void register() {
104 107
		DataManagerProviderServices dataman = (DataManagerProviderServices) DALLocator.getDataManager();
105 108
		if (dataman != null && !dataman.getStoreProviders().contains(NAME)) {
......
172 175
	}
173 176

  
174 177
	/**
175
	 * Gets the internal provider used to feed the TileProvider
176
	 * @return
178
	 * @return the internal provider used to feed the TileProvider
177 179
	 */
178 180
	public RasterProvider getInternalProvider() {
179 181
		return provider;
......
230 232
		return new File(path);
231 233
	}
232 234

  
235
	/**
236
	 * @throws NotSupportedExtensionException
237
	 */
233 238
	public TileProvider() throws NotSupportedExtensionException {
234 239
		super();
235 240
	}
236 241

  
242
	/**
243
	 * @param c
244
	 */
237 245
	public void registerTileProviderFormats(Class<RasterProvider> c) {
238 246

  
239 247
	}
......
241 249
	/**
242 250
	 * Assigns the provider associated to this tile server
243 251
	 * @param prov
252
	 * @throws InitializeException
244 253
	 * @throws NotSupportedExtensionException
245 254
	 */
246 255
	public void setProvider(RasterProvider prov) throws InitializeException  {
......
248 257
		init(getDataStoreParameters(), getStoreServices());
249 258
	}
250 259

  
260
	/**
261
	 * @param params
262
	 * @param storeServices
263
	 * @throws InitializeException
264
	 */
251 265
	public TileProvider(TileDataParametersImpl params,
252 266
			DataStoreProviderServices storeServices) throws InitializeException {
253 267
		super(params, storeServices, ToolsLocator.getDynObjectManager()
......
308 322
	/**
309 323
	 * Crea las referencias al fichero y carga
310 324
	 * las estructuras con la informaci?n y los metadatos.
311
	 * @param proj Proyecci?n
312
	 * @param param Parametros de carga
325
	 * @param params
326
	 * @param storeServices
327
	 * @throws InitializeException
313 328
	 * @throws NotSupportedExtensionException
314 329
	 */
315 330
	public void init (DataStoreParameters params,
......
347 362

  
348 363
	/**
349 364
	 * Calculates the data type of this provider
350
	 * @return
351 365
	 */
352 366
	public void calculateDataType() {
353 367
		int[] datatype = null;
......
400 414
	}
401 415

  
402 416

  
417
	/**
418
     * Calculates the transparency
419
	 */
403 420
	public void calculateTransparency() {
404 421
		if(provider.getTransparency() != null)
405 422
			transparency = provider.getTransparency().cloneTransparency();
......
453 470
	}
454 471

  
455 472
	/**
456
	 * Returns a list of pixel sizes by level
457
	 * @return
473
	 * @return a list of pixel sizes by level
458 474
	 */
459 475
	public double[] getPixelSizeByLevel() {
460 476
		double[] list = new double[getZoomLevels()];
......
563 579
		return provider.getHeight();
564 580
	}
565 581

  
582
	/**
583
	 * @param line
584
	 * @param band
585
	 * @return a complete line
586
	 * @throws InvalidSetViewException
587
	 * @throws FileNotOpenException
588
	 * @throws RasterDriverException
589
	 */
566 590
	public Object readCompleteLine(int line, int band)
567 591
		throws InvalidSetViewException, FileNotOpenException, RasterDriverException {
568 592
		return null;
569 593
	}
570 594

  
595
	/**
596
	 * @return the file
597
	 * @throws RasterDriverException
598
	 */
571 599
	public File getFileLayer() throws RasterDriverException {
572 600
		return null;
573 601
	}
......
639 667
	 * @param uly
640 668
	 * @param lrx
641 669
	 * @param lry
642
	 * @return
670
	 * @return the buffer
643 671
	 * @throws RasterDriverException
644 672
	 * @throws ProcessInterruptedException
645 673
	 */
......
651 679
	/**
652 680
	 * Calculates the extent of a zoom level using other extent as a reference. The new extent is
653 681
	 * calculated with the same coordinate at the center.
682
	 *
654 683
	 * @param level
655 684
	 * @param extent
656 685
	 * @param w
657 686
	 * @param h
658
	 * @return
687
	 * @return the calculated extent
659 688
	 */
660 689
	public Extent getZoomLevelCoordinates(int level, Extent extent, int w, int h) {
661 690
		double centerX = extent.getCenterX();
......
920 949
		return secondLevelTileServer;
921 950
	}
922 951

  
952
	/**
953
	 * @param tileServer
954
	 */
923 955
	public void setSecondLevelTileServer(TileServer tileServer) {
924 956
		this.secondLevelTileServer = tileServer;
925 957
	}
org.gvsig.raster.tilecache/trunk/org.gvsig.raster.tilecache/org.gvsig.raster.tilecache.io/src/main/java/org/gvsig/raster/tilecache/io/TileDataParametersImpl.java
49 49
	private DelegatedDynObject       delegatedDynObject    = null;
50 50
	private TileServer               tileServer            = null;
51 51

  
52
	/**
53
	 *
54
	 */
52 55
	public TileDataParametersImpl() {
53 56
		super();
54 57
		initialize();
......
60 63
						registerDynClass());
61 64
	}
62 65

  
66
	/**
67
	 * @return The DynStruct
68
	 */
63 69
	public static DynStruct registerDynClass() {
64 70
		PersistenceManager manager = ToolsLocator.getPersistenceManager();
65 71
		DynStruct definition = manager.getDefinition("TileDataParameters_Persistent");
......
96 102

  
97 103
	/**
98 104
	 * Sets the <code>DataParameters</code>
99
	 * @param params
105
	 * @param params DataParameters
100 106
	 */
101 107
	public void setDataParameters(DataParameters params) {
102 108
		this.setDynValue(FIELD_PARAMETERS, params);
......
108 114

  
109 115
	/**
110 116
	 * Sets the <code>TileServer</code>
111
	 * @param tileServer
117
	 * @param tileServer TileServer
112 118
	 */
113 119
	public void setTileServer(TileServer tileServer) {
114 120
		this.tileServer = tileServer;
......
116 122

  
117 123
	/**
118 124
	 * Gets the <code>TileServer</code>
119
	 * @return
125
	 * @return the TileServer
120 126
	 */
121 127
	public TileServer getTileServer() {
122 128
		return tileServer;
123 129
	}
124 130

  
125 131
	/**
126
	 * Returns true if this provider is for the second level of cach?
127
	 * @return
132
	 * @return true if this provider is for the second level of cach?
128 133
	 */
129 134
	public boolean isSecondLevelCache() {
130 135
		Object obj = this.getDynValue(FIELD_SECONDLEVEL);
......
135 140

  
136 141
	/**
137 142
	 * Sets the flag to inform to the provider that is a second level provider
138
	 * @param secondLevel
143
	 * @param secondLevel boolean
139 144
	 */
140 145
	public void setSecondLevelCache(boolean secondLevel) {
141 146
		this.setDynValue(FIELD_SECONDLEVEL, new Boolean(secondLevel));
142 147
	}
143 148

  
144 149
	/**
145
	 * Gets the name
146
	 * @return
150
	 * @return the name
147 151
	 */
148 152
	public String getName() {
149 153
		DataParameters p = getDataParameters();
......
183 187
		return TileProvider.DESCRIPTION;
184 188
	}
185 189

  
190
	/**
191
	 * @return the explorer name
192
	 */
186 193
	public String getExplorerName() {
187 194
		return TileServerExplorer.NAME;
188 195
	}
......
197 204

  
198 205
	/**
199 206
	 * Sets the flag to delete the cache
200
	 * @param deleteCache
207
	 * @param deleteCache boolean
201 208
	 */
202 209
	public void deleteCache(boolean deleteCache) {
203 210
		this.setDynValue(FIELD_DELETECACHE, new Boolean(deleteCache));
204 211
	}
205 212

  
206 213
	/**
207
	 * Returns true if the cache is going to be deleted
208
	 * @return
214
	 * @return true if the cache is going to be deleted
209 215
	 */
210 216
	public boolean isDeletingCache() {
211 217
		Boolean b = (Boolean)getDynValue(FIELD_DELETECACHE);
org.gvsig.raster.tilecache/trunk/org.gvsig.raster.tilecache/org.gvsig.raster.tilecache.io/src/main/java/org/gvsig/raster/tilecache/io/tff/TileFileFormatProvider.java
70 70
	protected static String[]           formatList               = null;
71 71
	private boolean                     open                     = false;
72 72

  
73
	/**
74
	 *
75
	 */
73 76
	public static void register() {
74 77
		ExtensionPointManager extensionPoints = ToolsLocator.getExtensionPointManager();
75 78
		registerFormats();
......
101 104
		return formatList;
102 105
	}
103 106

  
107
	/**
108
	 * @param ext
109
	 * @return true if the extension is supported
110
	 */
104 111
	public boolean isExtensionSupported(String ext) {
105 112
		if(ext.indexOf(".") != -1)
106 113
			ext = ext.substring(ext.lastIndexOf(".") + 1, ext.length());
......
111 118
		return false;
112 119
	}
113 120

  
121
	/**
122
	 * @throws NotSupportedExtensionException
123
	 */
114 124
	public TileFileFormatProvider() throws NotSupportedExtensionException {
115 125
		super();
116 126
	}
117 127

  
128
	/**
129
	 * @param params
130
	 * @param storeServices
131
	 * @throws InitializeException
132
	 */
118 133
	public TileFileFormatProvider(TileFileFormatDataParameters params,
119 134
			DataStoreProviderServices storeServices) throws InitializeException {
120 135
		super(params, storeServices, ToolsLocator.getDynObjectManager()
......
132 147

  
133 148
	/**
134 149
	 * Build file references
135
	 * @param proj Projection
136
	 * @param param Load parameters
150
	 * @param params
151
	 * @param storeServices
137 152
	 * @throws NotSupportedExtensionException
153
	 * @throws OpenException
138 154
	 */
139 155
	public void init(TileFileFormatDataParameters params,
140 156
			DataStoreProviderServices storeServices) throws NotSupportedExtensionException, OpenException {
......
163 179

  
164 180
	}
165 181

  
182
	/**
183
	 * @return the TileFileFormatDataParameters
184
	 */
166 185
	public TileFileFormatDataParameters getParameters() {
167 186
		try {
168 187
			return (TileFileFormatDataParameters)parameters;
org.gvsig.raster.tilecache/trunk/org.gvsig.raster.tilecache/org.gvsig.raster.tilecache.app/src/main/java/org/gvsig/raster/tilecache/app/TileCachePreferences.java
2 2
*
3 3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4 4
* of the Valencian Government (CIT)
5
* 
5
*
6 6
* This program is free software; you can redistribute it and/or
7 7
* modify it under the terms of the GNU General Public License
8 8
* as published by the Free Software Foundation; either version 2
9 9
* of the License, or (at your option) any later version.
10
* 
10
*
11 11
* This program is distributed in the hope that it will be useful,
12 12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13 13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 14
* GNU General Public License for more details.
15
* 
15
*
16 16
* You should have received a copy of the GNU General Public License
17 17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 19
* MA  02110-1301, USA.
20
* 
20
*
21 21
*/
22 22
package org.gvsig.raster.tilecache.app;
23 23

  
......
47 47
	private ImageIcon                 icon;
48 48

  
49 49
	private TileCachePreferencesPanel tilecache = null;
50
	
50

  
51 51
	private I18nManager i18n = ToolsLocator.getI18nManager();
52 52

  
53 53
	/**
......
98 98

  
99 99
	/**
100 100
	 * Gets a tile cache configuration panel
101
	 * @return
101
	 * @return tile cache configuration panel
102 102
	 */
103 103
	private TileCachePreferencesPanel getPreferenceTileCache() {
104 104
		if (tilecache == null) {

Also available in: Unified diff