Revision 6302 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.api/src/main/java/org/gvsig/raster/lib/buffer/api/BufferManager.java

View differences:

BufferManager.java
26 26
import java.io.File;
27 27
import java.io.IOException;
28 28
import java.util.List;
29
import java.util.Map;
29 30

  
30 31
import org.cresques.cts.IProjection;
31

  
32 32
import org.gvsig.fmap.geom.primitive.Envelope;
33 33
import org.gvsig.raster.lib.buffer.api.exceptions.BandException;
34 34
import org.gvsig.raster.lib.buffer.api.exceptions.BufferException;
......
56 56
     * @return NoData
57 57
     */
58 58
    public NoData createNoData(Number value, Number defaultValue);
59
    
60
    /**
61
     * Creates {@link BandInfo} with information about one band.
62
     * @param band 
63
     *            Band of this {@link BandInfo}
64
     * @param name
65
     *            Band name
66
     * @param description
67
     *            Description of band
68
     * @param values
69
     *            A key-value map with information properties about band
70
     * @return BandInfo
71
     */
72
    public BandInfo createBandInfo(int band, String name, String description,
73
        List<Map.Entry<Object, Object>> values);
59 74

  
60 75
    /**
61
     * Creates a Band.
62
     * If pageManager is null, the band will be in memory,
63
     * else, the band will be paginated.
76
     * Creates a {@link Band}. If {@link PageManager} is null, the band will be
77
     * in
78
     * memory, otherwise, the band will be paginated using page manager.
64 79
     *
65 80
     * @param dataType
81
     *            Type of band. Check {@link BufferManager} to see what types
82
     *            are available
66 83
     * @param rows
84
     *            Band rows
67 85
     * @param columns
86
     *            Band columns
68 87
     * @param noData
88
     *            {@link NoData} of band. If It is null, a undefined NoData will
89
     *            be set.
69 90
     * @param pageManager
70
     * @return Band
91
     *            Page manager to paginate band. It page manager is null, band
92
     *            will be in memory.
93
     * @return Band A empty band.
71 94
     * @throws BandException
95
     *             If there are problems creating the band.
96
     * @see BufferManager#createNoData(Number, Number)
97
     * @see BufferManager#createBandInfo(String, String, List)
98
     * @see BufferManager#createSimpleBandPageManager(File, int, int, int)
72 99
     */
73
    public Band createBand(int dataType, int rows, int columns, NoData noData, PageManager pageManager)
74
        throws BandException;
100
    public Band createBand(int dataType, int rows, int columns, NoData noData, PageManager pageManager) throws BandException;
75 101

  
76 102
    /**
77 103
     * Creates a memory buffer.
......
143 169
     */
144 170
    Buffer createBuffer(int rows, int columns, int[] bandDataTypes, NoData[] bandNodata, IProjection projection,
145 171
        Envelope envelope) throws BufferException;
146

  
172
    
147 173
    /**
148 174
     * Creates a buffer. Buffer bands will be paginated using
149 175
     * {@link BandPageManager}.
......
157 183
     * @param bandDataTypes
158 184
     *            Types of buffer bands, see {@link BufferManager} to get types.
159 185
     *            The length of array indicates number of buffer bands.
160
     * @param bandNodata
186
     * @param bandNoData
161 187
     *            {@link NoData} of each band. If there are bands without NoData
162 188
     *            object, a undefined NoData will be set. It can be
163 189
     *            <code>null</code>.
......
173 199
     * @throws BufferException
174 200
     *             If there is any problem creating buffer.
175 201
     */
176
    public Buffer createBuffer(int rows, int columns, int[] bandDataTypes, NoData[] bandNodata, IProjection projection,
177
        Envelope envelope, List<PageManager> pageManagers) throws BufferException;
202
    public Buffer createBuffer(int rows, int columns, int[] bandDataTypes, NoData[] bandNoData,
203
        IProjection projection, Envelope envelope, List<PageManager> pageManagers)
204
        throws BufferException;
178 205

  
179 206
    /**
180 207
     * Creates a clipping of a buffer. The returned clipping will be like a view

Also available in: Unified diff