Revision 4172 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.fmap/src/main/java/org/gvsig/raster/fmap/layers/DefaultFLyrRaster.java
DefaultFLyrRaster.java | ||
---|---|---|
1819 | 1819 |
} |
1820 | 1820 |
this.lastLegend = (ILegend)state.get("legend"); |
1821 | 1821 |
this.colorTableLoadedFromProject = (ColorTable)state.get("colortable"); |
1822 |
this.zoomLevel = state.getInt("zoomLevel"); |
|
1823 |
this.recalcLevel = state.getBoolean("recalcLevel"); |
|
1822 |
if(state.get("recalcLevel") != null){ |
|
1823 |
this.recalcLevel = state.getBoolean("recalcLevel"); |
|
1824 |
} |
|
1825 |
if(state.get("zoomLevel") != null){ |
|
1826 |
this.zoomLevel = state.getInt("zoomLevel"); |
|
1827 |
} |
|
1824 | 1828 |
loadedFromProject = true; |
1825 | 1829 |
} |
1826 | 1830 |
|
... | ... | |
1856 | 1860 |
definition.addDynFieldObject("rasterdatastore").setClassOfValue(RasterDataStore.class).setMandatory(false); |
1857 | 1861 |
definition.addDynFieldObject("legend").setClassOfValue(ILegend.class).setMandatory(false); |
1858 | 1862 |
definition.addDynFieldObject("colortable").setClassOfValue(ColorTable.class).setMandatory(false); |
1859 |
definition.addDynFieldInt("zoomlevel").setMandatory(false);
|
|
1863 |
definition.addDynFieldInt("zoomLevel").setMandatory(false);
|
|
1860 | 1864 |
definition.addDynFieldBoolean("recalcLevel").setMandatory(false); |
1861 | 1865 |
} |
1862 | 1866 |
|
Also available in: Unified diff