Package qupath.lib.gui.images.stores
Class AbstractImageRenderer
java.lang.Object
qupath.lib.gui.images.stores.AbstractImageRenderer
- All Implemented Interfaces:
ImageRenderer
- Direct Known Subclasses:
ImageDisplay
Abstract
ImageRenderer, which adds a timestamp variable.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longTimestamp variable; this should be updated by implementing classes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongTimestamp of the last change (probably in milliseconds).Get a unique key, which will be used for caching.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface qupath.lib.gui.images.stores.ImageRenderer
applyTransforms
-
Field Details
-
timestamp
protected long timestampTimestamp variable; this should be updated by implementing classes.
-
-
Constructor Details
-
AbstractImageRenderer
public AbstractImageRenderer()
-
-
Method Details
-
getLastChangeTimestamp
public long getLastChangeTimestamp()Description copied from interface:ImageRendererTimestamp of the last change (probably in milliseconds).This can be used to identify when the status has changed.
- Specified by:
getLastChangeTimestampin interfaceImageRenderer- Returns:
-
getUniqueID
Description copied from interface:ImageRendererGet a unique key, which will be used for caching.The only requirement is that the key is unique for the
ImageRendererin its current state. It is suggested to base it on the full class name, a counter for instances of this class, and a timestamp derived from the last change.- Specified by:
getUniqueIDin interfaceImageRenderer- Returns:
-