gvsig-raster / org.gvsig.raster / branches / org.gvsig.raster.2.4 / org.gvsig.raster / org.gvsig.fmap.mapcontext.raster / org.gvsig.fmap.mapcontext.raster.api / src / main / java / org / gvsig / fmap / mapcontext / raster / api / legend / RasterLegendEventBase.java @ 6900
History | View | Annotate | Download (2.48 KB)
1 |
/* gvSIG. Desktop Geographic Information System.
|
---|---|
2 |
*
|
3 |
* Copyright ? 2007-2017 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.fmap.mapcontext.raster.api.legend; |
24 |
|
25 |
import org.gvsig.fmap.mapcontext.raster.api.RasterLayer; |
26 |
import org.gvsig.fmap.mapcontext.rendering.legend.events.LegendEventBase; |
27 |
|
28 |
|
29 |
/**
|
30 |
* @author fdiaz
|
31 |
*
|
32 |
*/
|
33 |
public class RasterLegendEventBase extends LegendEventBase implements RasterLegendEvent{ |
34 |
|
35 |
|
36 |
/**
|
37 |
* Layer of the legend where the event was produced.
|
38 |
*/
|
39 |
private RasterLayer layer;
|
40 |
|
41 |
/**
|
42 |
* @param type
|
43 |
* @param subtype
|
44 |
*/
|
45 |
public RasterLegendEventBase(int type, int subtype) { |
46 |
super(type, subtype);
|
47 |
} |
48 |
|
49 |
/**
|
50 |
* <p>Returns the layer of the legend where the event was produced, as a classifiable and vector layer.</p>
|
51 |
*
|
52 |
* @return the layer where the event was produced.
|
53 |
*/
|
54 |
public RasterLayer getRasterLayer() {
|
55 |
return layer;
|
56 |
} |
57 |
|
58 |
/**
|
59 |
* <p>Sets the layer of the legend where the event was produced, as a classifiable and vector layer.</p>
|
60 |
*
|
61 |
* @param layer the layer where the event was produced.
|
62 |
*/
|
63 |
public void setRasterLayer(RasterLayer layer) { |
64 |
this.layer = layer;
|
65 |
} |
66 |
|
67 |
// @Override
|
68 |
// public void setEventSubtype(int eventSubtype) {
|
69 |
// super.setEventSubtype(eventSubtype);
|
70 |
// switch (eventSubtype) {
|
71 |
// case RASTER_LEGEND_COLORINTERPRETATION_CHANGED:
|
72 |
// case RASTER_LEGEND_PALETTE_CHANGED:
|
73 |
// case RASTER_LEGEND_PALETTE_BAND_CHANGED:
|
74 |
// case RASTER_LEGEND_FILTERS_CHANGED:
|
75 |
// this.setEventType(LEGEND_CHANGED);
|
76 |
// break;
|
77 |
//
|
78 |
// default:
|
79 |
// break;
|
80 |
// }
|
81 |
// }
|
82 |
} |