Class LegacyIconRepositoryAdapter
- java.lang.Object
-
- org.opennms.netmgt.graph.provider.topology.LegacyIconRepositoryAdapter
-
- All Implemented Interfaces:
IconRepository
public class LegacyIconRepositoryAdapter extends Object implements IconRepository
-
-
Constructor Summary
Constructors Constructor Description LegacyIconRepositoryAdapter(GraphProvider delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(String iconKey)
Verifies if a mapping for the provided icon Key is defined.String
getSVGIconId(String iconKey)
Maps the providediconKey
to an SVG id element.
-
-
-
Constructor Detail
-
LegacyIconRepositoryAdapter
public LegacyIconRepositoryAdapter(GraphProvider delegate)
-
-
Method Detail
-
contains
public boolean contains(String iconKey)
Description copied from interface:IconRepository
Verifies if a mapping for the provided icon Key is defined.- Specified by:
contains
in interfaceIconRepository
- Parameters:
iconKey
- the icon key- Returns:
- true if a mapping is defined, false otherwise.
-
getSVGIconId
public String getSVGIconId(String iconKey)
Description copied from interface:IconRepository
Maps the providediconKey
to an SVG id element. If no mapping is defined,null
is returned.- Specified by:
getSVGIconId
in interfaceIconRepository
- Parameters:
iconKey
- The icon key to look up- Returns:
- The icon id, or null if no mapping is defined.
-
-