svn-gvsig-desktop / branches / org.gvsig.desktop-2018a / org.gvsig.desktop.library / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.buffer.impl / src / main / java / org / gvsig / raster / lib / buffer / impl / DefaultBandInfo.java @ 43803
History | View | Annotate | Download (2.34 KB)
1 |
/* gvSIG. Desktop Geographic Information System.
|
---|---|
2 |
*
|
3 |
* Copyright ? 2007-2016 gvSIG Association
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
18 |
* MA 02110-1301, USA.
|
19 |
*
|
20 |
* For any additional information, do not hesitate to contact us
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
22 |
*/
|
23 |
|
24 |
package org.gvsig.raster.lib.buffer.impl; |
25 |
|
26 |
import java.util.Collections; |
27 |
import java.util.List; |
28 |
import java.util.Map; |
29 |
import java.util.Map.Entry; |
30 |
|
31 |
import org.gvsig.raster.lib.buffer.api.BandInfo; |
32 |
|
33 |
/**
|
34 |
* Default implementation of {@link BandInfo}
|
35 |
*
|
36 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
|
37 |
*/
|
38 |
public class DefaultBandInfo implements BandInfo { |
39 |
|
40 |
private int band; |
41 |
private String name; |
42 |
private String description; |
43 |
private List<Map.Entry<Object, Object>> values; |
44 |
private int dataType; |
45 |
|
46 |
/**
|
47 |
*
|
48 |
* @param band
|
49 |
* @param name
|
50 |
* @param description
|
51 |
* @param dataType
|
52 |
* @param values
|
53 |
*/
|
54 |
public DefaultBandInfo(int band, String name, String description, int dataType, |
55 |
List<Entry<Object, Object>> values) { |
56 |
super();
|
57 |
this.band = band;
|
58 |
this.name = name;
|
59 |
this.description = description;
|
60 |
this.dataType = dataType;
|
61 |
this.values = values;
|
62 |
} |
63 |
|
64 |
@Override
|
65 |
public String getName() { |
66 |
return this.name; |
67 |
} |
68 |
|
69 |
@Override
|
70 |
public String getDescription() { |
71 |
return this.description; |
72 |
} |
73 |
|
74 |
@Override
|
75 |
public List<Entry<Object, Object>> getValues() { |
76 |
return Collections.unmodifiableList(this.values); |
77 |
} |
78 |
|
79 |
@Override
|
80 |
public int getBand() { |
81 |
return this.band; |
82 |
} |
83 |
|
84 |
@Override
|
85 |
public int getDataType() { |
86 |
return this.dataType; |
87 |
} |
88 |
} |