Package com.nomagic.magicdraw.uml
Class ElementIcon.ElementIconCache
- java.lang.Object
-
- com.nomagic.magicdraw.core.project.service.AbstractProjectService
-
- com.nomagic.magicdraw.utils.ResetableProjectCache
-
- com.nomagic.magicdraw.utils.AbstractProjectCache<ElementIcon.ElementIconCacheKey,ResizableIcon>
-
- com.nomagic.magicdraw.uml.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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ElementIconCache(Project prj)
-
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
-
-
-
-
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.
-
-