Revision 220 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.api/src/main/java/org/gvsig/fmap/dal/coverage/store/parameter/RemoteStoreParameters.java

View differences:

RemoteStoreParameters.java
21 21
*/
22 22
package org.gvsig.fmap.dal.coverage.store.parameter;
23 23

  
24
import java.awt.Dimension;
25
import java.awt.geom.Rectangle2D;
26
import java.util.Hashtable;
27
import java.util.Map;
28
import java.util.Vector;
29

  
30
import org.cresques.cts.IProjection;
31
import org.gvsig.compat.net.ICancellable;
32 24
import org.gvsig.fmap.dal.DataStoreParameters;
33
import org.gvsig.fmap.dal.coverage.datastruct.RemoteStyle;
34 25

  
35 26
/**
36 27
 * Parameters for the WMS provider
37 28
 * @author Nacho Brodin (nachobrodin@gmail.com)
38 29
 */
39 30
public interface RemoteStoreParameters extends DataStoreParameters {
40
	public static final String     DYNCLASS_NAME    = "RemoteStoreParameters";
41 31
	
42 32
	/**
43 33
	 * Gets the host URI
......
51 41
	 */
52 42
	public void setHost(String host);
53 43
	
54
	/**
55
	 * Devuelve el formato.
56
	 * @return Formato.
57
	 */
58
	public String getFormat();
59

  
60
	/**
61
	 * Inserta el formato.
62
	 * @param format Formato.
63
	 */
64
	public void setFormat(String format);
65
	
66
	/**
67
	 * Devuelve la consulta.
68
	 * @return String.
69
	 */
70
	public String getLayerQuery();
71

  
72
	/**
73
	 * Inserta la consulta.
74
	 * @param layerQuery consulta.
75
	 */
76
	public void setLayerQuery(String layerQuery);
77
	
78
	/**
79
	 * Devuelve la informaci?n de la consulta.
80
	 * @return String.
81
	 */
82
	public String getInfoLayerQuery();
83

  
84
	/**
85
	 * Inserta la informaci�n de la consulta.
86
	 * @param infoLayerQuery String.
87
	 */
88
	public void setInfoLayerQuery(String infoLayerQuery);
89
	
90
	/**
91
	 * Returns the projection
92
	 * @return
93
	 */
94
	public IProjection getSRS();
95
	
96
	/**
97
	 * Devuelve el SRS.
98
	 * @return SRS.
99
	 */
100
	public String getSRSCode();
101

  
102
	/**
103
	 * Inserta el SRS.
104
	 * @param m_srs SRS.
105
	 */
106
	public void setSRS(String m_srs);
107
	
108
	/**
109
	 * @return Returns the wmsTransparency.
110
	 */
111
	public boolean isWmsTransparent();
112

  
113
	/**
114
	 * @param wmsTransparency The wmsTransparency to set.
115
	 */
116
	public void setWmsTransparency(boolean wmsTransparency);
117
	
118
	/**
119
	 * @param styles
120
	 */
121
	public void setStyles(Vector<RemoteStyle> styles);
122

  
123
	/**
124
	 * @param styles
125
	 */
126
	public Vector<RemoteStyle> getStyles();
127
	
128
	/**
129
	 * Sets the dimension vector that is a list of key-value pairs containing
130
	 * the name of the dimension and the value for it
131
	 * @param dimensions
132
	 */
133
	public void setDimensions(Vector<String> dimensions);
134

  
135
	/**
136
	 * Gets the dimension vector that is a list of key-value pairs containing
137
	 * the name of the dimension and the value for it
138
	 * @return
139
	 */
140
	public Vector<String> getDimensions();
141
	
142
	/**
143
	 * Sets the set of URLs that should be accessed for each operation performed
144
	 * to the server.
145
	 *
146
	 * @param onlineResources
147
	 */
148
	public void setOnlineResources(Hashtable<String, String> onlineResources);
149
	
150
	/**
151
	 * Gets the URL that should be accessed for an operation performed
152
	 * to the server.
153
	 *
154
	 * @param onlineResources
155
	 */
156
	public String getOnlineResource(String operation);
157
	
158
	/**
159
	 * Gets the online resource map
160
	 *
161
	 * @param onlineResources
162
	 */
163
	public Map<String,String> getOnlineResource();
164
	
165
	/**
166
	 * When a server is not fully featured and it only can serve constant map
167
	 * sizes this value must be set. It expresses the size in pixels (width, height)
168
	 * that the map will be requested.
169
	 * @param Dimension sz
170
	 */
171
	public void setFixedSize(Dimension sz);
172

  
173
	/**
174
	 * Tells whether if this layer must deal with the server with the constant-size
175
	 * limitations or not.
176
	 * @return boolean.
177
	 */
178
	public boolean isSizeFixed();
179
	
180
	/**
181
	 * Gets the value of the fixed size
182
	 * @return
183
	 */
184
	public Dimension getFixedSize();
185
	
186
	/**
187
	 * If it is true, this layer accepts GetFeatureInfo operations. This WMS operations
188
	 * maps to FMap's infoByPoint(p) operation.
189
	 * @param b
190
	 */
191
	public void setQueryable(boolean b);
192
	
193
	/**
194
	 * If it is true, this layer accepts GetFeatureInfo operations. This WMS operations
195
	 * maps to FMap's infoByPoint(p) operation.
196
	 */
197
	public boolean isQueryable();
198
	
199
	public String getName();
200

  
201
	public void setName(String name);
202
	
203
	public boolean isOverridingHost();
204
	
205
	public void setOverrideHost(boolean over);
206
	
207
	public void setCancellable(ICancellable cancel);
208
	
209
	public ICancellable getCancellable();
210
	
211
	/**
212
	 * Assigns the extent. 
213
	 * When a provider is initialized this will need to know what is the extent before the request.
214
	 * 
215
	 * @param bBox
216
	 */
217
	public void setExtent(Rectangle2D bBox);
218
	
219
	/**
220
	 * Sets the width
221
	 * When a provider is initialized this will need to know what is the width before the request.
222
	 * @param w
223
	 */
224
	public void setWidth(int w);
225
	
226
	/**
227
	 * Sets the height
228
	 * When a provider is initialized this will need to know what is the height before the request.
229
	 * @param h
230
	 */
231
	public void setHeight(int h);
232
	
233
	/**
234
	 * Clones this structure
235
	 * @return
236
	 */
237
	public RemoteStoreParameters clone();
238
	
239
	/**
240
	 * Assign the object created to connect to the server
241
	 * @param connector
242
	 */
243
	//public void setConnector(Object connector);
244 44
}

Also available in: Unified diff