Package loci.formats.cache
Class CacheEvent
java.lang.Object
loci.formats.cache.CacheEvent
A event indicating a cache update.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intRelevant index to the event, if any.static final intEvent type indicating an object has been removed from the cache.static final intEvent type indicating an object has been added to the cache.static final intEvent type indicating new planar ordering.static final intEvent type indicating an updated current dimensional position.static final intEvent type indicating new axis priorities.static final intEvent type indicating new planar ordering.protected ObjectSource of the cache update.static final intEvent type indicating a new cache source.static final intEvent type indicating a new cache strategy.protected intType of cache event. -
Constructor Summary
ConstructorsConstructorDescriptionCacheEvent(Object source, int type) Constructs a cache event.CacheEvent(Object source, int type, int index) Constructs a cache event. -
Method Summary
-
Field Details
-
SOURCE_CHANGED
public static final int SOURCE_CHANGEDEvent type indicating a new cache source.- See Also:
-
STRATEGY_CHANGED
public static final int STRATEGY_CHANGEDEvent type indicating a new cache strategy.- See Also:
-
POSITION_CHANGED
public static final int POSITION_CHANGEDEvent type indicating an updated current dimensional position.- See Also:
-
PRIORITIES_CHANGED
public static final int PRIORITIES_CHANGEDEvent type indicating new axis priorities.- See Also:
-
ORDER_CHANGED
public static final int ORDER_CHANGEDEvent type indicating new planar ordering.- See Also:
-
RANGE_CHANGED
public static final int RANGE_CHANGEDEvent type indicating new planar ordering.- See Also:
-
OBJECT_LOADED
public static final int OBJECT_LOADEDEvent type indicating an object has been added to the cache.- See Also:
-
OBJECT_DROPPED
public static final int OBJECT_DROPPEDEvent type indicating an object has been removed from the cache.- See Also:
-
source
Source of the cache update. -
type
protected int typeType of cache event. -
index
protected int indexRelevant index to the event, if any.
-
-
Constructor Details
-
CacheEvent
Constructs a cache event. -
CacheEvent
Constructs a cache event.
-
-
Method Details
-
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
-