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
Modifier and TypeFieldDescriptionprotected long
Timestamp variable; this should be updated by implementing classes. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Timestamp 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, wait
Methods 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:ImageRenderer
Timestamp of the last change (probably in milliseconds).This can be used to identify when the status has changed.
- Specified by:
getLastChangeTimestamp
in interfaceImageRenderer
- Returns:
-
getUniqueID
Description copied from interface:ImageRenderer
Get a unique key, which will be used for caching.The only requirement is that the key is unique for the
ImageRenderer
in 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:
getUniqueID
in interfaceImageRenderer
- Returns:
-