Revision 6900 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.fmap.dal.file.jimi.legend/src/main/java/org/gvsig/fmap/dal/file/jimi/legend/JimiGetLegend.java
JimiGetLegend.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import org.gvsig.fmap.dal.file.jimi.JimiRasterStoreProvider; |
4 | 4 |
import org.gvsig.fmap.dal.raster.api.RasterStore; |
5 |
import org.gvsig.raster.lib.legend.api.ColorInterpretation; |
|
6 | 5 |
import org.gvsig.raster.lib.legend.api.RasterLegend; |
7 | 6 |
import org.gvsig.raster.lib.legend.api.RasterLegendLocator; |
8 | 7 |
import org.gvsig.raster.lib.legend.api.RasterLegendManager; |
8 |
import org.gvsig.raster.lib.legend.api.colorinterpretation.ColorInterpretation; |
|
9 | 9 |
import org.gvsig.raster.lib.legend.api.colortable.ColorTable; |
10 | 10 |
import org.gvsig.tools.ToolsLocator; |
11 | 11 |
import org.gvsig.tools.dynobject.DynClass; |
... | ... | |
54 | 54 |
invokeDynMethod(RasterStore.DYNMETHOD_GETCOLORINTERPRETATION_NAME, null); |
55 | 55 |
|
56 | 56 |
RasterLegend legend= legendManager.createLegend(colorInterpretation); |
57 |
if ( !( colorInterpretation.isBGR() || colorInterpretation.isRGB() || colorInterpretation.isRGBA() ) ){ |
|
58 |
ColorTable colorTable=(ColorTable)jimiProvider. |
|
59 |
invokeDynMethod(RasterStore.DYNMETHOD_GETCOLORTABLE_NAME, null); |
|
60 |
legend.setColorTable(colorTable); |
|
61 |
} |
|
57 |
// if ( !( colorInterpretation.isBGR() || colorInterpretation.isRGB() || colorInterpretation.isRGBA() ) ){
|
|
58 |
// ColorTable colorTable=(ColorTable)jimiProvider.
|
|
59 |
// invokeDynMethod(RasterStore.DYNMETHOD_GETCOLORTABLE_NAME, null);
|
|
60 |
// legend.setColorTable(colorTable);
|
|
61 |
// }
|
|
62 | 62 |
|
63 |
|
|
64 |
// ColorInterpretation colorInterpretation = |
|
65 |
// legendManager.createColorInterpretation(ColorInterpretation.RGB); |
|
66 |
// |
|
67 |
// RasterLegend legend= legendManager.createLegend(colorInterpretation); |
|
68 |
|
|
69 | 63 |
return legend; |
70 | 64 |
|
71 | 65 |
} catch (DynMethodNotSupportedException e) { |
Also available in: Unified diff