Class LegendChangedEvent

All Implemented Interfaces:
FMapEvent, LegendEvent

public class LegendChangedEvent extends LegendEventBase

Event or set of events produced when changes a legend.

  • Method Details

    • createLegendChangedEvent

      public static LegendChangedEvent createLegendChangedEvent(ILegend oldLegend, ILegend newLegend)

      Creates a new legend change event.

      Parameters:
      oldLegend - previous vector legend
      newLegend - new vector legend
      Returns:
      a new legend change event
    • createLegendChangedEvent

      public static LegendChangedEvent createLegendChangedEvent(ILegend legend, FMapEvent event)
    • getOldLegend

      public ILegend getOldLegend()

      Gets the previous vector legend.

      Returns:
      the previous vector legend
    • getNewLegend

      public ILegend getNewLegend()

      Gets the new vector legend.

      Returns:
      the new vector legend
    • getEvents

      public LegendChangedEvent[] getEvents()

      Gets the events that constitute this one.

      Returns:
      an array with the events that constitute this one
    • setEvents

      public void setEvents(LegendChangedEvent[] events)

      Sets the events that constitute this one.

      Parameters:
      events - an array with the events that constitute this one
    • addEvent

      public LegendChangedEvent addEvent(LegendChangedEvent event)
    • setSourceEvent

      public void setSourceEvent(FMapEvent event)
    • getSourceEvent

      public FMapEvent getSourceEvent()