Revision 16185 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/IntervalLegendEvent.java
IntervalLegendEvent.java | ||
---|---|---|
40 | 40 |
*/ |
41 | 41 |
package com.iver.cit.gvsig.fmap.rendering; |
42 | 42 |
|
43 |
import com.iver.cit.gvsig.fmap.FMapEvent; |
|
44 |
import com.iver.cit.gvsig.fmap.layers.LegendEvent; |
|
45 |
|
|
43 | 46 |
/** |
44 |
* Evento de cambio de un intervalo |
|
47 |
* |
|
48 |
* <p>The class <code>IntervalLegendEvent</code> stores all necessary information of an event |
|
49 |
* produced on a interval change.</p> |
|
50 |
* |
|
51 |
* @see FMapEvent |
|
52 |
* @author jaume dominguez faus - jaume.dominguez@iver.es |
|
45 | 53 |
*/ |
46 | 54 |
public class IntervalLegendEvent extends ClassificationLegendEvent { |
47 | 55 |
private IInterval oldInterval; |
48 | 56 |
private IInterval newInterval; |
49 | 57 |
|
50 | 58 |
/** |
51 |
* Crea un nuevo IntervalLegendEvent.
|
|
59 |
* Constructor method.Creates a new IntervalLegendEvent.
|
|
52 | 60 |
* |
53 |
* @param oldInterval Antiguo intervalo.
|
|
54 |
* @param newInterval Nuevo intervalo.
|
|
61 |
* @param oldInterval old interval.
|
|
62 |
* @param newInterval new interval.
|
|
55 | 63 |
*/ |
56 | 64 |
public IntervalLegendEvent(IInterval oldInterval, IInterval newInterval) { |
57 | 65 |
this.oldInterval = oldInterval; |
... | ... | |
59 | 67 |
} |
60 | 68 |
|
61 | 69 |
/** |
62 |
* Devuelve el intervalo anterior.
|
|
70 |
* Returns the last interval.
|
|
63 | 71 |
* |
64 |
* @return Intervalo anterior.
|
|
72 |
* @return Last interval.
|
|
65 | 73 |
*/ |
66 | 74 |
public IInterval getOldInterval() { |
67 | 75 |
return oldInterval; |
68 | 76 |
} |
69 | 77 |
|
70 | 78 |
/** |
71 |
* Devuelve el nuevo intervalo.
|
|
79 |
* Returns the new interval
|
|
72 | 80 |
* |
73 |
* @return Intervalo nuevo.
|
|
81 |
* @return New interval.
|
|
74 | 82 |
*/ |
75 | 83 |
public IInterval getNewInterval() { |
76 | 84 |
return newInterval; |
77 | 85 |
} |
78 |
} |
|
86 |
/** |
|
87 |
* Returns the type of the event. |
|
88 |
*/ |
|
89 |
public int getEventType() { |
|
90 |
return LegendEvent.LEGEND_INTERVAL_CHANGED; |
|
91 |
} |
|
92 |
|
|
93 |
} |
Also available in: Unified diff