gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.fmap / src / main / java / org / gvsig / raster / fmap / layers / ROILayerRaster.java @ 1738
History | View | Annotate | Download (2.19 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
package org.gvsig.raster.fmap.layers; |
23 |
|
24 |
import java.awt.Color; |
25 |
|
26 |
import org.gvsig.fmap.dal.coverage.grid.ROI; |
27 |
|
28 |
/**
|
29 |
* Clase que representa una regi?n de inter?s tal y como se asocia a una
|
30 |
* capa raster, es decir, incluyendo un nombre y el color con el que se
|
31 |
* representa.
|
32 |
*
|
33 |
* @author Diego Guerrero Sevilla (diego.guerrero@uclm.es)
|
34 |
*
|
35 |
*/
|
36 |
public class ROILayerRaster { |
37 |
|
38 |
private ROI roi = null; |
39 |
private Color color = null; |
40 |
private String name = null; |
41 |
|
42 |
/**
|
43 |
* Constructor.
|
44 |
*
|
45 |
* @param roi
|
46 |
* @param color
|
47 |
* @param name
|
48 |
*/
|
49 |
public ROILayerRaster(ROI roi, Color color, String name) { |
50 |
this.roi = roi;
|
51 |
this.color = color;
|
52 |
this.name = name;
|
53 |
} |
54 |
|
55 |
/**
|
56 |
*
|
57 |
* @return Color con el que la ROI se representa en la vista.
|
58 |
*/
|
59 |
public Color getColor() { |
60 |
return color;
|
61 |
} |
62 |
|
63 |
/**
|
64 |
*
|
65 |
* @param color Color con el que la ROI se representa en la vista.
|
66 |
*/
|
67 |
public void setColor(Color color) { |
68 |
this.color = color;
|
69 |
} |
70 |
|
71 |
/**
|
72 |
*
|
73 |
* @return Nombre asociado a la ROI.
|
74 |
*/
|
75 |
public String getName() { |
76 |
return name;
|
77 |
} |
78 |
|
79 |
/**
|
80 |
*
|
81 |
* @param name Nombre asociado a la ROI.
|
82 |
*/
|
83 |
public void setName(String name) { |
84 |
this.name = name;
|
85 |
} |
86 |
|
87 |
/**
|
88 |
*
|
89 |
* @return Regi?n de Inter?s.
|
90 |
*/
|
91 |
public ROI getRoi() {
|
92 |
return roi;
|
93 |
} |
94 |
|
95 |
/**
|
96 |
*
|
97 |
* @param roi Regi?n de inter?s.
|
98 |
*/
|
99 |
public void setRoi(ROI roi) { |
100 |
this.roi = roi;
|
101 |
} |
102 |
} |