Class CacheEvent

java.lang.Object
loci.formats.cache.CacheEvent

public class CacheEvent extends Object
A event indicating a cache update.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
    Relevant index to the event, if any.
    static final int
    Event type indicating an object has been removed from the cache.
    static final int
    Event type indicating an object has been added to the cache.
    static final int
    Event type indicating new planar ordering.
    static final int
    Event type indicating an updated current dimensional position.
    static final int
    Event type indicating new axis priorities.
    static final int
    Event type indicating new planar ordering.
    protected Object
    Source of the cache update.
    static final int
    Event type indicating a new cache source.
    static final int
    Event type indicating a new cache strategy.
    protected int
    Type of cache event.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CacheEvent(Object source, int type)
    Constructs a cache event.
    CacheEvent(Object source, int type, int index)
    Constructs a cache event.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the index relevant to the cache update, if any.
    Gets the source of the cache update.
    int
    Gets the type of cache update.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • SOURCE_CHANGED

      public static final int SOURCE_CHANGED
      Event type indicating a new cache source.
      See Also:
    • STRATEGY_CHANGED

      public static final int STRATEGY_CHANGED
      Event type indicating a new cache strategy.
      See Also:
    • POSITION_CHANGED

      public static final int POSITION_CHANGED
      Event type indicating an updated current dimensional position.
      See Also:
    • PRIORITIES_CHANGED

      public static final int PRIORITIES_CHANGED
      Event type indicating new axis priorities.
      See Also:
    • ORDER_CHANGED

      public static final int ORDER_CHANGED
      Event type indicating new planar ordering.
      See Also:
    • RANGE_CHANGED

      public static final int RANGE_CHANGED
      Event type indicating new planar ordering.
      See Also:
    • OBJECT_LOADED

      public static final int OBJECT_LOADED
      Event type indicating an object has been added to the cache.
      See Also:
    • OBJECT_DROPPED

      public static final int OBJECT_DROPPED
      Event type indicating an object has been removed from the cache.
      See Also:
    • source

      protected Object source
      Source of the cache update.
    • type

      protected int type
      Type of cache event.
    • index

      protected int index
      Relevant index to the event, if any.
  • Constructor Details

    • CacheEvent

      public CacheEvent(Object source, int type)
      Constructs a cache event.
    • CacheEvent

      public CacheEvent(Object source, int type, int index)
      Constructs a cache event.
  • Method Details

    • getSource

      public Object getSource()
      Gets the source of the cache update.
    • getType

      public int getType()
      Gets the type of cache update.
    • getIndex

      public int getIndex()
      Gets the index relevant to the cache update, if any. This parameter is only set for events POSITION_CHANGED, OBJECT_LOADED and OBJECT_DROPPED.
    • toString

      public String toString()
      Overrides:
      toString in class Object