org.objectweb.fractal.explorer.icon
Class LifeCycleComponentIconProvider
java.lang.Object
org.objectweb.fractal.explorer.icon.InterfaceIconProvider
org.objectweb.fractal.explorer.icon.LifeCycleComponentIconProvider
- All Implemented Interfaces:
- org.objectweb.util.explorer.api.IconProvider
public class LifeCycleComponentIconProvider
- extends InterfaceIconProvider
Provides a specific icon depending on the status of the component.
- Version:
- 0.2
- Author:
- Jerome Moroy
Method Summary |
protected void |
loadFc(String name)
Load a couple of icons based on the Fc+name+(Started|Stopped) pattern. |
protected Icon[] |
loadIcon(Component cpt)
Provides the couple of icons for a type of component (Primitive, Composite or Shared). |
Object |
newIcon(Object object)
Provides the appropriate icon. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LifeCycleComponentIconProvider
public LifeCycleComponentIconProvider()
- Empty constructor.
loadFc
protected void loadFc(String name)
- Load a couple of icons based on the Fc+name+(Started|Stopped) pattern.
- Overrides:
loadFc
in class InterfaceIconProvider
- Parameters:
name
- the pattern to retrieve.
loadIcon
protected Icon[] loadIcon(Component cpt)
- Provides the couple of icons for a type of component (Primitive, Composite or Shared).
- Parameters:
cpt
- the component to introspect.
- Returns:
- the couple of icons associated to the component.
newIcon
public Object newIcon(Object object)
- Provides the appropriate icon.
- Parameters:
object
- the component to represent.
- Returns:
- the associated icon.