Class TLspStyleChangeEvent

java.lang.Object
java.util.EventObject
com.luciad.view.lightspeed.style.styler.TLspStyleChangeEvent
All Implemented Interfaces:
Serializable

public class TLspStyleChangeEvent extends EventObject
Describes a style change that occurred in a styler.

This event can list the domain objects whose style has changed, as well as indicate which particular styles are no longer valid.

Note that all properties of this event are optional, i.e., if none of the properties are set, a painter should assume that all styles it had been using up until this event are no longer valid.

Setting only some of the properties is also possible, but it is recommended to be as specific as possible for efficiency reasons.

Since:
2012.0
See Also:
  • Constructor Details

    • TLspStyleChangeEvent

      public TLspStyleChangeEvent(ILspStyler aSource, ILcdModel aAffectedModel, Collection<Object> aAffectedObjects, Collection<ALspStyle> aAffectedStyles)
      Constructs a style change event object.
      Parameters:
      aSource - the source styler of the event
      aAffectedModel - the model that is affected. Can be null.
      aAffectedObjects - the objects in the model that are affected. Can be null.
      aAffectedStyles - the styles that are affected. Can be null.
  • Method Details

    • getStyler

      public ILspStyler getStyler()
      The styler for which the styles are changed.
      Returns:
      the styler for which the styles are changed
    • getAffectedModel

      public ILcdModel getAffectedModel()
      Returns the model the affected objects belong to. If this method returns null, the client should assume that all styles have changed.
      Returns:
      the model the affected objects belong to, can be null
    • getAffectedObjects

      public Collection<Object> getAffectedObjects()
      Returns a collection of objects whose style has changed. If this method returns null, the client should assume that all styles have changed.
      Returns:
      the collection of affected objects, can be null
    • getAffectedStyles

      public Collection<ALspStyle> getAffectedStyles()
      Returns a collection of styles which are no longer in use. If this method returns null, the client should assume that all styles have changed.
      Returns:
      the affected styles, can be null