Class TLcdViewInvalidationEvent

java.lang.Object
java.util.EventObject
com.luciad.view.TLcdViewInvalidationEvent
All Implemented Interfaces:
Serializable

public class TLcdViewInvalidationEvent extends EventObject
Class containing information about a view invalidation.
Since:
7.2
See Also:
  • Field Details

    • PAN

      public static final int PAN
      An invalidation caused by a pan operation
      See Also:
    • SCALE

      public static final int SCALE
      An invalidation caused by change of the map scale
      See Also:
    • ROTATION

      public static final int ROTATION
      An invalidation caused by rotation
      See Also:
    • WORLD_ORIGIN

      public static final int WORLD_ORIGIN
      An invalidation caused by a change of the world origin
      See Also:
    • WORLD_REFERENCE

      public static final int WORLD_REFERENCE
      An invalidation caused by a change of the world reference
      See Also:
    • LABEL_PAINTER

      public static final int LABEL_PAINTER
      An invalidation caused by a label painter change
      See Also:
    • VIEW_ORIGIN

      public static final int VIEW_ORIGIN
      An invalidation caused by a change of the view origin
      See Also:
    • BACKGROUND

      public static final int BACKGROUND
      An invalidation caused by a change of the background
      See Also:
    • PAINTING_MODE

      public static final int PAINTING_MODE
      An invalidation caused by a painting mode change
      See Also:
    • INVALIDATION

      public static final int INVALIDATION
      An invalidation that was explicitly called for
      See Also:
    • LAYER_INVALIDATION

      public static final int LAYER_INVALIDATION
      An invalidation concerning a specific layer
      See Also:
    • REGION_INVALIDATION

      public static final int REGION_INVALIDATION
      An invalidation of a specific region
      See Also:
    • SELECTION_INVALIDATION

      public static final int SELECTION_INVALIDATION
      An invalidation of the selection only
      See Also:
    • DIMENSIONS

      public static final int DIMENSIONS
      An invalidation caused by a change of the view's dimensions
      See Also:
    • LABELS_PLACED

      public static final int LABELS_PLACED
      An invalidation caused by labels being placed
      See Also:
  • Constructor Details

    • TLcdViewInvalidationEvent

      public TLcdViewInvalidationEvent(ILcdView aSource, int aReason, String aMessage)
      Creates a new event describing an invalidation.
      Parameters:
      aSource - the view on which the invalidation happened.
      aReason - the reason for the invalidation. This class defines a number of constants that can be used.
      aMessage - the message associated with the invalidation.
      Throws:
      IllegalArgumentException - if source is null.
    • TLcdViewInvalidationEvent

      public TLcdViewInvalidationEvent(ILcdView aSource, ILcdLayer aLayer, int aReason, String aMessage)
      Creates a new event describing an invalidation.
      Parameters:
      aSource - the view on which the invalidation happened.
      aLayer - the layer that was invalidated (if any)
      aReason - the reason for the invalidation. This class defines a number of constants that can be used.
      aMessage - the message associated with the invalidation.
      Throws:
      IllegalArgumentException - if source is null.
  • Method Details

    • getView

      public ILcdView getView()
      Returns the view that has fired this invalidation event. This is the same Object as the one returned by getSource().
      Returns:
      the source view
    • getReason

      public int getReason()
      Returns the reason for the invalidation.

      This class defines a number of constants that can be used. Do not assume that these constants are exhaustive: more reason types may be added in the future.

      Returns:
      the reason for the invalidation
    • getLayer

      public ILcdLayer getLayer()
      Returns the layer that was invalidated, if any.
      Returns:
      the layer that was invalidated, or null if the entire view was invalidated.
    • getMessage

      public String getMessage()
      Returns the message associated with the invalidation.
      Returns:
      the message associated with the invalidation
    • toString

      public String toString()
      Overrides:
      toString in class EventObject