public class LegendChangedEvent extends LegendEventBase
Event or set of events produced when changes a legend.
LEGEND_CHANGED, 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) |
getEventSubtype, getLayer, setEventSubtype, setLayer
getEventType, setEventType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventType, setEventType
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()