Interface IconManager
- 
- All Known Implementing Classes:
- IconRepositoryManager
 
 public interface IconManager
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description IconRepositoryfindRepositoryByIconKey(String iconKey)Returns the firstIconRepositorywhich has the providediconKeymapping defined.List<String>getSVGIconFiles()Returns the list of available svg-files, e.g.StringgetSVGIconId(String iconKey)Returns the icon id assigned to the providediconKey.StringgetSVGIconId(Vertex vertex)Returns the icon id assigned to the providedVertex.booleanremoveIconMapping(Vertex vertex)Removes the icon mapping for theVertexif defined.StringsetIconMapping(Vertex vertex, String newIconId)Sets a new icon mapping from theVertexto thenewIconId.
 
- 
- 
- 
Method Detail- 
findRepositoryByIconKeyIconRepository findRepositoryByIconKey(String iconKey) Returns the firstIconRepositorywhich has the providediconKeymapping defined.- Parameters:
- iconKey- the- iconKeyto look up
- Returns:
- the first IconRepositorywhich has the providediconKeymapping defined, ornullif noIconRepositoryexists with the providediconKey
 
 - 
getSVGIconFilesList<String> getSVGIconFiles() Returns the list of available svg-files, e.g. 'theme://svg/file.svg'.- Returns:
- the list of available svg-files, e.g. 'theme://svg/file.svg'
 
 - 
getSVGIconIdString getSVGIconId(String iconKey) Returns the icon id assigned to the providediconKey.- Parameters:
- iconKey- the- iconKeyto look up
- Returns:
- the icon id assigned to the provided iconKey
 
 - 
getSVGIconIdString getSVGIconId(Vertex vertex) Returns the icon id assigned to the providedVertex.- Parameters:
- vertex- the vertex to get the icon id for
- Returns:
- the icon id assigned to the provided Vertex
 
 - 
setIconMappingString setIconMapping(Vertex vertex, String newIconId) Sets a new icon mapping from theVertexto thenewIconId.- Parameters:
- vertex- the vertex to map
- newIconId- the icon id to map the vertex to
- Returns:
- the icon key of the vertex if this IconManagerwas able to save the mapping, null otherwise
 
 
- 
 
-