Statistics
| Revision:

gvsig-raster / 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 / NoData.java @ 8781

History | View | Annotate | Download (2.13 KB)

1 5439 fdiaz
/* 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
package org.gvsig.raster.lib.buffer.api;
24
25 5441 fdiaz
import org.gvsig.tools.lang.Cloneable;
26 5439 fdiaz
27 5441 fdiaz
28 5439 fdiaz
/**
29
 * @author fdiaz
30
 *
31
 */
32 5441 fdiaz
public interface NoData extends Cloneable, Comparable<NoData>{
33 5439 fdiaz
34
    /**
35 5447 fdiaz
     * Gets the for nodata.
36
     *
37 5439 fdiaz
     * @return the noData
38
     */
39
    public Number getValue();
40
41
    /**
42 5449 fdiaz
     * Sets the value for NoData.
43 5447 fdiaz
     *
44 5449 fdiaz
     * @param value the noData to set
45 5439 fdiaz
     */
46 5449 fdiaz
    public void setValue(Number value);
47 5439 fdiaz
48
    /**
49
     * Returns true if getValue is defined and false if is null
50
     * @return true if getValue is defined and false if is null
51
     */
52
    public boolean isDefined();
53
54
    /**
55 5441 fdiaz
     * Clear the nodata value.
56 5439 fdiaz
     */
57 5441 fdiaz
    public void clear();
58 5439 fdiaz
59
    /**
60 5449 fdiaz
     * Restores default value. This value
61 5439 fdiaz
     * has to be assign when NoData object is initialize.
62
     */
63
    public void restore();
64
65
    /**
66 5449 fdiaz
     * Gets the default value. This value
67
     * has to be assign when NoData object is initialize.
68 5439 fdiaz
     * @return the noData
69
     */
70 5441 fdiaz
    public Number getDefaultValue();
71 5439 fdiaz
72
    /**
73
     * Gets the NoData data type
74
     * @return the data type
75
     */
76
    public int getDataType();
77
78 5441 fdiaz
    /**
79
     * Copy from noData parameter
80
     *
81
     * @param noData
82
     */
83
    public void copyFrom(NoData noData);
84 5439 fdiaz
85
}