|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.edu.agh.cast.backward.figure.icons.NodeIconProvider
public final class NodeIconProvider
Provides uniform and centralized way of accessing NodeIcons.
Manages icons provided by all extenders of pl.edu.agh.cast.nodeIcons extension point.
| Method Summary | |
|---|---|
Collection<NodeIcon> |
getAllNodeIcons()
|
NodeIcon |
getDefaultIcon()
Returns the default NodeIcon. |
String |
getFriendlyName(String imageId)
Returns localized display name for given icon image. |
Map<String,List<NodeIcon>> |
getGroupedNodeIcons()
Returns a map of NodeIcons groups, with localized group names as keys. |
String |
getIconId(String nodeType)
Returns Id of the icon image for given node type. |
static NodeIconProvider |
getInstance()
Returns single, shared instance of NodeIconProvider. |
NodeIcon |
getNodeIcon(String nodeType)
Returns NodeIcon for given node type. |
String |
getSmallIconId(String nodeType)
Returns Id of the small icon image for given node type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NodeIconProvider getInstance()
NodeIconProvider.
NodeIconProviderpublic NodeIcon getNodeIcon(String nodeType)
NodeIcon for given node type.
nodeType - type of the node
public String getIconId(String nodeType)
nodeType - type of the node
public String getSmallIconId(String nodeType)
nodeType - type of the node
public String getFriendlyName(String imageId)
imageId - id of the icon image
public Collection<NodeIcon> getAllNodeIcons()
public Map<String,List<NodeIcon>> getGroupedNodeIcons()
NodeIcons groups, with localized group names as keys.
NodeIcons groupspublic NodeIcon getDefaultIcon()
NodeIcon.
NodeIcon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||