package org.pietschy.command.demo;

import org.pietschy.command.AbstractReflectionIconFactory;
import org.pietschy.command.demo.group.GroupIcon;

import javax.swing.*;

/**
 * Created by IntelliJ IDEA.
 * User: andrew
 * Date: Oct 3, 2005
 * Time: 9:16:11 AM
 * To change this template use File | Settings | File Templates.
 */
public class
MyAbstractReflectionIconFactory 
extends AbstractReflectionIconFactory
{
   public Icon createColoredIcon(String red, String blue, String green)
   {
      return BeanIcon.parametisedIcon(red,blue,green);
   }

   public Icon
   groupIcon(String number)
   {
      return new GroupIcon(number.charAt(0));
   }
}
