Revision 6321 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.legend/org.gvsig.raster.lib.legend.impl/src/main/java/org/gvsig/raster/lib/legend/impl/DefaultRasterLegendManager.java

View differences:

DefaultRasterLegendManager.java
24 24

  
25 25
/**
26 26
 * Default implementation of {@link RasterLegendManager}.
27
 * 
27
 *
28 28
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
29 29
 *
30 30
 */
......
62 62
            throw new IllegalArgumentException(
63 63
                "It is necessary read permissions to get files and load color tables");
64 64
        }
65
        
65

  
66 66
        List<ColorTable> colorTables = new ArrayList<ColorTable>();
67 67
        for (File file : listFilesForFolder(folder)) {
68
            
68

  
69 69
            Collection<ColorTableIOFactory> factories = this.colorTableIOFactories.values();
70 70
            for (ColorTableIOFactory colorTableIOFactory : factories) {
71
                
71

  
72 72
                if(colorTableIOFactory.accept(file)){
73 73
                    ColorTableIO colorTableIO = colorTableIOFactory.create();
74 74
                    try{
......
87 87

  
88 88
        return colorTables;
89 89
    }
90
    
90

  
91 91
    private List<File> listFilesForFolder(File folder) {
92 92
        List<File> files = new ArrayList<File>();
93 93
        for (File fileEntry : folder.listFiles()) {
......
170 170
        return new DefaultTransparency(transparency, transparencyRanges);
171 171
    }
172 172

  
173
    @Override
174
    public TransparencyRange createTransparencyRange() {
175
        return new DefaultTransparencyRange();
176
    }
177

  
178
    @Override
179
    public TransparencyRange createTransparencyRange(int[] redRange, int[] greenRange, int[] blueRange, int alpha,
180
        boolean isAnd) {
181
        return new DefaultTransparencyRange(redRange, greenRange, blueRange, alpha, isAnd);
182
    }
183

  
173 184
}

Also available in: Unified diff