Revision 5441 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
22 22
 */
23 23
package org.gvsig.raster.lib.buffer.api;
24 24

  
25
import java.awt.image.DataBuffer;
26
import java.io.File;
25 27

  
28

  
26 29
/**
27 30
 * @author fdiaz
28 31
 *
29 32
 */
30 33
public interface BufferManager {
31 34

  
35
    public final static int TYPE_UNDEFINED                 = DataBuffer.TYPE_UNDEFINED;
36
    public final static int TYPE_BYTE                      = DataBuffer.TYPE_BYTE;
37
    public final static int TYPE_SHORT                     = DataBuffer.TYPE_SHORT;
38
    public final static int TYPE_USHORT                    = DataBuffer.TYPE_USHORT;
39
    public final static int TYPE_INT                       = DataBuffer.TYPE_INT;
40
    public final static int TYPE_FLOAT                     = DataBuffer.TYPE_FLOAT;
41
    public final static int TYPE_DOUBLE                    = DataBuffer.TYPE_DOUBLE;
42

  
32 43
    /**
33
     * Creates a Buffer from parameters
44
     * Creates a NoData object.
45
     * @param value
46
     * @param defaultValue
34 47
     *
35
     * @param bufferParams
36 48
     * @return
37 49
     */
38
    public Buffer createBuffer(BufferParams bufferParams);
50
    public NoData createNoData(Number value, Number defaultValue);
39 51

  
40 52
    /**
41
     * Creates a NoData object.
53
     * Creates a Band.
54
     * If pageManager is null, the band will be in memory,
55
     * else, the band will be paginated.
42 56
     *
43
     * @param noData
44
     * @param noDataNative
45
     * @param filename
46
     * @param bandCount
57
     * @param dataType
58
     * @param width
59
     * @param height
60
     * @param nodata
61
     * @param pageManager
62
     * @return a Band
63
     */
64
    public Band createBand(int dataType, int width, int height, NoData nodata, BandPageManager pageManager);
65

  
66
    /**
67
     * @param width
68
     * @param height
69
     * @param bandDataTypes
47 70
     * @return
48 71
     */
49
    public NoData createNoData(Number noData, Number noDataNative, String filename, int bandCount);
72
    public Buffer createMemoryBuffer(int width, int height, int[] bandDataTypes);
50 73

  
74
    /**
75
     * @param width
76
     * @param height
77
     * @param bandDataTypes
78
     * @param pageManager
79
     * @return
80
     */
81
    public Buffer createPaginatedBuffer(int width, int height, int[] bandDataTypes, BandPageManager pageManager);
51 82

  
83
    /**
84
     * @param file
85
     * @param width
86
     * @param height
87
     * @param dataType
88
     * @return
89
     */
90
    public BandPageManager createSimpleBandPageManager(File file, int width, int height, int dataType);
91

  
92

  
52 93
}

Also available in: Unified diff