Revision 2438 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/datastruct/DefaultDataStructFactory.java

View differences:

DefaultDataStructFactory.java
54 54
		return new TransparencyRangeImpl();
55 55
	}
56 56
	
57
	public Transparency createTransparency() {
58
		return new DataStoreTransparency();
57
	public Transparency createTransparency(int nBands) {
58
		return new DataStoreTransparency(new DataStoreColorInterpretation(nBands));
59 59
	}
60 60

  
61 61
    public ColorTableLibrary getColorTableLibrary() {
......
121 121
	public ColorInterpretation createColorInterpretation(String[] colorInterp) {
122 122
		return new DataStoreColorInterpretation(colorInterp);
123 123
	}
124
	
125
	public ColorInterpretation createColorInterpretation(String colorInterpretationConstant) {
126
		return new DataStoreColorInterpretation(colorInterpretationConstant);
127
	}
124 128

  
125 129
	public ViewPortData createViewPortData(IProjection proj, Extent extent,
126 130
			Dimension2D size) {

Also available in: Unified diff