Interface IconRepository
-
- All Known Subinterfaces:
ConfigurableIconRepository
- All Known Implementing Classes:
DefaultIconRepository,GraphMLIconRepository,LegacyIconRepositoryAdapter
public interface IconRepositoryEachIconRepositorystores a mapping from icon keys to icon ids. The icon key is Graph Provider specific and is defined by it (e.g. "sfree:group") The icon id should match with an id element in all existing SVGs (not only thisIconRepository.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(java.lang.String iconKey)Verifies if a mapping for the provided icon Key is defined.java.lang.StringgetSVGIconId(java.lang.String iconKey)Maps the providediconKeyto an SVG id element.
-
-
-
Method Detail
-
contains
boolean contains(java.lang.String iconKey)
Verifies if a mapping for the provided icon Key is defined.- Parameters:
iconKey- the icon key- Returns:
- true if a mapping is defined, false otherwise.
-
getSVGIconId
java.lang.String getSVGIconId(java.lang.String iconKey)
Maps the providediconKeyto an SVG id element. If no mapping is defined,nullis returned.- Parameters:
iconKey- The icon key to look up- Returns:
- The icon id, or null if no mapping is defined.
-
-