Class ElementIcon.ElementIconCache

  • All Implemented Interfaces:
    com.nomagic.magicdraw.core.project.service.DisposableService, com.nomagic.magicdraw.utils.DisableableResetableCache, com.nomagic.magicdraw.utils.ResetableCache
    Enclosing class:
    ElementIcon

    private static class ElementIcon.ElementIconCache
    extends com.nomagic.magicdraw.utils.AbstractProjectCache<ElementIcon.ElementIconCacheKey,​ResizableIcon>
    Cache that caches designated icon for an element, but not the icon itself.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static ElementIcon.ElementIconCache getInstance​(BaseElement element)
      Gets instance of this cache.
      • Methods inherited from class com.nomagic.magicdraw.utils.AbstractProjectCache

        containsKey, disableCache, enableCache, get, getCache, getOrPut, invalidateCache, put, remove, setCacheEnabled
      • Methods inherited from class com.nomagic.magicdraw.utils.ResetableProjectCache

        addValidator, disposeService, removeValidator
      • Methods inherited from class com.nomagic.magicdraw.core.project.service.AbstractProjectService

        getInternalInstance, getKey, getReferencedProject, registerInstance
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ElementIconCache

        protected ElementIconCache​(Project prj)
    • Method Detail

      • getInstance

        static ElementIcon.ElementIconCache getInstance​(BaseElement element)
        Gets instance of this cache.
        Parameters:
        element - element for which to get the cache.
        Returns:
        cache instance.