Interface IconRepository
-
- All Known Subinterfaces:
ConfigurableIconRepository
- All Known Implementing Classes:
DefaultIconRepository
,GraphMLIconRepository
,LegacyIconRepositoryAdapter
public interface IconRepository
EachIconRepository
stores 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 boolean
contains(java.lang.String iconKey)
Verifies if a mapping for the provided icon Key is defined.java.lang.String
getSVGIconId(java.lang.String iconKey)
Maps the providediconKey
to 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 providediconKey
to an SVG id element. If no mapping is defined,null
is returned.- Parameters:
iconKey
- The icon key to look up- Returns:
- The icon id, or null if no mapping is defined.
-
-