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 / ChangePaletteBandEvent.java @ 6900
History | View | Annotate | Download (840 Bytes)
1 | 6900 | fdiaz | package org.gvsig.fmap.mapcontext.raster.api.legend; |
---|---|---|---|
2 | |||
3 | |||
4 | |||
5 | |||
6 | /**
|
||
7 | * @author fdiaz
|
||
8 | *
|
||
9 | */
|
||
10 | public final class ChangePaletteBandEvent extends RasterLegendEventBase { |
||
11 | |||
12 | private int oldPaletteBand; |
||
13 | private int newPaletteBand; |
||
14 | |||
15 | /**
|
||
16 | * @param oldColorInterpretation
|
||
17 | * @param newColorInterpretation
|
||
18 | */
|
||
19 | public ChangePaletteBandEvent(int oldPaletteBand, int newPaletteBand) { |
||
20 | super(LEGEND_CHANGED, RASTER_LEGEND_PALETTE_BAND_CHANGED);
|
||
21 | this.oldPaletteBand = oldPaletteBand;
|
||
22 | this.newPaletteBand = newPaletteBand;
|
||
23 | } |
||
24 | |||
25 | /**
|
||
26 | * @return the oldColorInterpretation
|
||
27 | */
|
||
28 | public int getOldColorInterpretation() { |
||
29 | return oldPaletteBand;
|
||
30 | } |
||
31 | |||
32 | /**
|
||
33 | * @return the newColorInterpretation
|
||
34 | */
|
||
35 | public int getNewColorInterpretation() { |
||
36 | return newPaletteBand;
|
||
37 | } |
||
38 | } |