Class MultiResolutionCachedImage

All Implemented Interfaces:
MultiResolutionImage

public abstract class MultiResolutionCachedImage extends BaseMultiResolutionImage
A MultiResolutionImage that caches resolution variants as they get produced.
Implementation Note:
Caches at most 4 variants. This should possibly cover the most common scenario of displaying the same image (f.e. an icon) on two monitors with different scaling factors (GraphicsConfigurations).
  • Constructor Details

    • MultiResolutionCachedImage

      public MultiResolutionCachedImage(int baseWidth, int baseHeight)
      Constructs a new MultiResolutionCachedImage of the given base width and height, and resolution variant producer function.
      Parameters:
      baseWidth - the user-space logical with of the image
      baseHeight - the user-space logical height of the image
  • Method Details