Interface IconManager
-
- All Known Implementing Classes:
IconRepositoryManager
public interface IconManager
-
-
Method Summary
All 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
-
findRepositoryByIconKey
IconRepository findRepositoryByIconKey(String iconKey)
Returns the firstIconRepositorywhich has the providediconKeymapping defined.- Parameters:
iconKey- theiconKeyto look up- Returns:
- the first
IconRepositorywhich has the providediconKeymapping defined, ornullif noIconRepositoryexists with the providediconKey
-
getSVGIconFiles
List<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'
-
getSVGIconId
String getSVGIconId(String iconKey)
Returns the icon id assigned to the providediconKey.- Parameters:
iconKey- theiconKeyto look up- Returns:
- the icon id assigned to the provided
iconKey
-
getSVGIconId
String 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
-
setIconMapping
String setIconMapping(Vertex vertex, String newIconId)
Sets a new icon mapping from theVertexto thenewIconId.- Parameters:
vertex- the vertex to mapnewIconId- 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
-
-