pl.edu.agh.cast.figure.icons
Class NodeIconProvider

java.lang.Object
  extended by pl.edu.agh.cast.figure.icons.NodeIconProvider

public class NodeIconProvider
extends java.lang.Object

Provides uniform and centralized way of accessing NodeIcons. Manages icons provided by all extenders of pl.edu.agh.cast.nodeIcons extension point.

Author:
tmilos

Method Summary
 java.util.Collection<NodeIcon> getAllNodeIcons()
           
 NodeIcon getDefaultIcon()
           
 java.lang.String getFriendlyName(java.lang.String imageId)
           
 java.util.Map<java.lang.String,java.util.List<NodeIcon>> getGroupedNodeIcons()
          Returns a map of NodeIcons groups, with localized group names as keys.
 java.lang.String getIconId(java.lang.String nodeType)
           
static NodeIconProvider getInstance()
           
 NodeIcon getNodeIcon(java.lang.String nodeType)
           
 java.lang.String getSmallIconId(java.lang.String nodeType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static NodeIconProvider getInstance()

getNodeIcon

public NodeIcon getNodeIcon(java.lang.String nodeType)

getIconId

public java.lang.String getIconId(java.lang.String nodeType)

getSmallIconId

public java.lang.String getSmallIconId(java.lang.String nodeType)

getFriendlyName

public java.lang.String getFriendlyName(java.lang.String imageId)

getAllNodeIcons

public java.util.Collection<NodeIcon> getAllNodeIcons()

getGroupedNodeIcons

public java.util.Map<java.lang.String,java.util.List<NodeIcon>> getGroupedNodeIcons()
Returns a map of NodeIcons groups, with localized group names as keys.

Returns:
map of NodeIcons groups

getDefaultIcon

public NodeIcon getDefaultIcon()
Returns:
the default NodeIcon


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.