Revision 3325 org.gvsig.raster.wms/trunk/org.gvsig.raster.wms/org.gvsig.raster.wms.io/src/main/java/org/gvsig/raster/wms/io/WMSDataParametersImpl.java
WMSDataParametersImpl.java | ||
---|---|---|
62 | 62 |
private static final String FIELD_WIDTH = "width"; |
63 | 63 |
private static final String FIELD_HEIGHT = "height"; |
64 | 64 |
private static final String FIELD_DELETECACHE = "deletecache"; |
65 |
private static final String FIELD_ASSUMEXYAXISORDER = "assumeXY"; |
|
65 | 66 |
|
66 | 67 |
private DelegatedDynObject delegatedDynObject = null; |
67 | 68 |
protected static DynClass DYNCLASS = null; |
... | ... | |
165 | 166 |
.setDescription("Flag to delete cache the next request") |
166 | 167 |
.setMandatory(false); |
167 | 168 |
|
169 |
definition.addDynFieldBoolean(FIELD_ASSUMEXYAXISORDER) |
|
170 |
.setDescription("Flag to decide the axis order behaviour") |
|
171 |
.setMandatory(false); |
|
172 |
|
|
168 | 173 |
return definition; |
169 | 174 |
} |
170 | 175 |
|
171 |
|
|
172 |
/*@SuppressWarnings("unchecked") |
|
173 |
@Override |
|
174 |
public void loadFromState(PersistentState state) |
|
175 |
throws PersistenceException { |
|
176 |
super.loadFromState(state); |
|
177 |
|
|
178 |
if (state.hasValue(FIELD_STYLES)) { |
|
179 |
List<RemoteWMSStyle> styleList = state.getList(FIELD_STYLES); |
|
180 |
if(styleList != null) { |
|
181 |
Vector<RemoteWMSStyle> v = new Vector<RemoteWMSStyle>(); |
|
182 |
v.addAll(styleList); |
|
183 |
setStyles(v); |
|
184 |
} |
|
185 |
} |
|
186 |
if (state.hasValue(FIELD_DIMENSIONS)) { |
|
187 |
List<String> dimList = state.getList(FIELD_DIMENSIONS); |
|
188 |
if(dimList != null) { |
|
189 |
Vector<String> v = new Vector<String>(); |
|
190 |
v.addAll(dimList); |
|
191 |
setDimensions(v); |
|
192 |
} |
|
193 |
} |
|
194 |
|
|
195 |
if(state.getMap(FIELD_ONLINERESOURC) != null) |
|
196 |
setOnlineResources(new Hashtable<String, String>(state.getMap(FIELD_ONLINERESOURC))); |
|
197 |
|
|
198 |
if (state.hasValue(FIELD_FIXEDSIZE)) { |
|
199 |
setFixedSize((Dimension) state.get(FIELD_FIXEDSIZE)); |
|
200 |
} else { |
|
201 |
setFixedSize(null); |
|
202 |
} |
|
203 |
setExtent((Rectangle2D)state.get(FIELD_EXTENT)); |
|
204 |
}*/ |
|
205 |
|
|
206 | 176 |
/** |
207 | 177 |
* Gets the format |
208 | 178 |
* @return |
... | ... | |
504 | 474 |
p.setWmsTransparency(isWmsTransparent()); |
505 | 475 |
p.setDimensions(getDimensions()); |
506 | 476 |
p.setCancellable(getCancellable()); |
477 |
p.setXyAxisOrder(isXyAxisOrder()); |
|
507 | 478 |
return p; |
508 | 479 |
} |
509 | 480 |
|
... | ... | |
531 | 502 |
setWmsTransparency(p.isWmsTransparent()); |
532 | 503 |
setDimensions(p.getDimensions()); |
533 | 504 |
setCancellable(p.getCancellable()); |
505 |
setXyAxisOrder(p.isXyAxisOrder()); |
|
534 | 506 |
} |
507 |
|
|
508 |
public boolean isXyAxisOrder() { |
|
509 |
Boolean b = (Boolean)getDynValue(FIELD_ASSUMEXYAXISORDER); |
|
510 |
if(b != null) |
|
511 |
return b.booleanValue(); |
|
512 |
return false; |
|
513 |
} |
|
514 |
|
|
515 |
public void setXyAxisOrder(boolean assumeXY) { |
|
516 |
setDynValue(FIELD_ASSUMEXYAXISORDER, assumeXY); |
|
517 |
} |
|
535 | 518 |
} |
Also available in: Unified diff