Interface IconManager
-
- All Known Implementing Classes:
IconRepositoryManager
public interface IconManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IconRepository
findRepositoryByIconKey(String iconKey)
Returns the firstIconRepository
which has the providediconKey
mapping defined.List<String>
getSVGIconFiles()
Returns the list of available svg-files, e.g.String
getSVGIconId(String iconKey)
Returns the icon id assigned to the providediconKey
.String
getSVGIconId(Vertex vertex)
Returns the icon id assigned to the providedVertex
.boolean
removeIconMapping(Vertex vertex)
Removes the icon mapping for theVertex
if defined.String
setIconMapping(Vertex vertex, String newIconId)
Sets a new icon mapping from theVertex
to thenewIconId
.
-
-
-
Method Detail
-
findRepositoryByIconKey
IconRepository findRepositoryByIconKey(String iconKey)
Returns the firstIconRepository
which has the providediconKey
mapping defined.- Parameters:
iconKey
- theiconKey
to look up- Returns:
- the first
IconRepository
which has the providediconKey
mapping defined, ornull
if noIconRepository
exists 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
- theiconKey
to 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 theVertex
to thenewIconId
.- Parameters:
vertex
- the vertex to mapnewIconId
- the icon id to map the vertex to- Returns:
- the icon key of the vertex if this
IconManager
was able to save the mapping, null otherwise
-
-