Class TLspLabelLocationChangedEvent

java.lang.Object
com.luciad.view.lightspeed.label.location.TLspLabelLocationChangedEvent

public class TLspLabelLocationChangedEvent extends Object

This event object contains the information about which label locations have changed.

Use getChanges to extract the individual changes out of this event.

Use addChange to populate this event.

Since:
2012.0
See Also:
  • Constructor Details

    • TLspLabelLocationChangedEvent

      public TLspLabelLocationChangedEvent(ALspLabelLocations aSource, ILspView aView)
      Creates a new TLspLabelLocationChangedEvent.
      Parameters:
      aSource - the source of this event.
      aView - the view in which the labels are painted.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getView

      public ILspView getView()
      Returns the view in which these changes were made.
      Returns:
      the view in which these changes were made.
    • getLabelLocations

      public ALspLabelLocations getLabelLocations()
      Returns the ALspLabelLocations where the information has changed.
      Returns:
      The ALspLabelLocations where the information has changed. This can never be null.
    • getChanges

      Retrieves the each individual TLspLabelLocationChangedEvent.Change part of this event.
      Returns:
      The changes part of this event.
    • addChange

      public void addChange(TLspLabelID aLabel, ALspLabelLocation aPreviousLocation, ALspLabelLocation aLocation, boolean aPreviousVisible, boolean aVisible)
      Adds a change in the state of a label to this event.
      Parameters:
      aLabel - The label to which the change applies
      aPreviousLocation - Its previous location, possibly null
      aLocation - Its new location, possibly null
      aPreviousVisible - Whether is was previously visible
      aVisible - Whether is it now visible