Class AbstractImageRenderer

java.lang.Object
qupath.lib.gui.images.stores.AbstractImageRenderer
All Implemented Interfaces:
ImageRenderer
Direct Known Subclasses:
ImageDisplay

public abstract class AbstractImageRenderer extends Object implements ImageRenderer
Abstract ImageRenderer, which adds a timestamp variable.
  • Field Details

    • timestamp

      protected long timestamp
      Timestamp 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 interface ImageRenderer
      Returns:
    • getUniqueID

      public String 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 interface ImageRenderer
      Returns: