public class LegendChangedEvent extends LegendEvent
Event or set of events produced when changes a legend.
Modifier and Type | Field and Description |
---|---|
static int |
LEGEND_CHANGED
Identifies this event as a changed of a legend.
|
LEGEND_CLASSIFICATION_CHANGED, LEGEND_CLEARED, LEGEND_INTERVAL_CHANGED, LEGEND_SYMBOL_CHANGED, LEGEND_VALUE_CHANGED
Modifier and Type | Method and Description |
---|---|
LegendChangedEvent |
addEvent(LegendChangedEvent event) |
static LegendChangedEvent |
createLegendChangedEvent(ILegend legend,
FMapEvent event) |
static LegendChangedEvent |
createLegendChangedEvent(ILegend oldLegend,
ILegend newLegend)
Creates a new legend change event.
|
LegendChangedEvent[] |
getEvents()
Gets the events that constitute this one.
|
ILegend |
getNewLegend()
Gets the new vector legend.
|
ILegend |
getOldLegend()
Gets the previous vector legend.
|
FMapEvent |
getSourceEvent() |
void |
setEvents(LegendChangedEvent[] events)
Sets the events that constitute this one.
|
void |
setSourceEvent(FMapEvent event) |
getLayer, setLayer
getEventType, setEventType
public static final int LEGEND_CHANGED
Identifies this event as a changed of a legend.
public static LegendChangedEvent createLegendChangedEvent(ILegend oldLegend, ILegend newLegend)
Creates a new legend change event.
oldLegend
- previous vector legendnewLegend
- new vector legendpublic static LegendChangedEvent createLegendChangedEvent(ILegend legend, FMapEvent event)
public ILegend getOldLegend()
Gets the previous vector legend.
public ILegend getNewLegend()
Gets the new vector legend.
public LegendChangedEvent[] getEvents()
Gets the events that constitute this one.
public void setEvents(LegendChangedEvent[] events)
Sets the events that constitute this one.
events
- an array with the events that constitute this onepublic LegendChangedEvent addEvent(LegendChangedEvent event)
public void setSourceEvent(FMapEvent event)
public FMapEvent getSourceEvent()