org.objectweb.fractal.explorer.icon
Class LifeCycleComponentIconProvider

java.lang.Object
  extended by org.objectweb.fractal.explorer.icon.InterfaceIconProvider
      extended by 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

Field Summary
 
Fields inherited from class org.objectweb.fractal.explorer.icon.InterfaceIconProvider
icons
 
Constructor Summary
LifeCycleComponentIconProvider()
          Empty constructor.
 
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 org.objectweb.fractal.explorer.icon.InterfaceIconProvider
getIcons, load, setIcons
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifeCycleComponentIconProvider

public LifeCycleComponentIconProvider()
Empty constructor.

Method Detail

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.