org.objectweb.fractal.explorer.icon
Class InterfaceIconProvider
java.lang.Object
org.objectweb.fractal.explorer.icon.InterfaceIconProvider
- All Implemented Interfaces:
- org.objectweb.util.explorer.api.IconProvider
- Direct Known Subclasses:
- ClientCollectionIconProvider, ClientInterfaceIconProvider, LifeCycleComponentIconProvider, ServerCollectionIconProvider
public abstract class InterfaceIconProvider
- extends Object
- implements org.objectweb.util.explorer.api.IconProvider
- Version:
- 0.1
- Author:
- Romain Rouvoy
Field Summary |
protected Map |
icons
The different icons. |
Method Summary |
protected Map |
getIcons()
|
protected Icon |
load(String path)
Load a icon from the classpath. |
protected void |
loadFc(String name)
Load a couple of icons based on the Fc+name+(Started|Stopped) pattern. |
protected void |
setIcons(Map icons)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.util.explorer.api.IconProvider |
newIcon |
icons
protected Map icons
- The different icons.
InterfaceIconProvider
protected InterfaceIconProvider()
- Default Icon provider constructor.
getIcons
protected Map getIcons()
- Returns:
- Returns the icons.
setIcons
protected void setIcons(Map icons)
- Parameters:
icons
- The icons to set.
load
protected Icon load(String path)
- Load a icon from the classpath.
- Parameters:
path
- the path for finding the requested icon.
- Returns:
- the instance of icon found (null if not found).
loadFc
protected void loadFc(String name)
- Load a couple of icons based on the Fc+name+(Started|Stopped) pattern.
- Parameters:
name
- the pattern to retrieve.