edu.turtlekit2.ui.utils
Class DefaultIcons

java.lang.Object
  extended by edu.turtlekit2.ui.utils.DefaultIcons

public class DefaultIcons
extends Object

Simple static class to generate Icons.

Version:
0.1 - 4/2010
Author:
G. Beurier

Constructor Summary
DefaultIcons()
           
 
Method Summary
static Icon getCrossIcon(int ICON_SIZE, Color color, Color backgroundColor)
          Returns a cross icon
static Icon getRoundIcon(int ICON_SIZE, Color color, Color backgroundColor)
          Returns a round icon
static Icon getSquareIcon(int ICON_SIZE, Color color, Color backgroundColor)
          Returns a square icon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIcons

public DefaultIcons()
Method Detail

getSquareIcon

public static final Icon getSquareIcon(int ICON_SIZE,
                                       Color color,
                                       Color backgroundColor)
Returns a square icon

Parameters:
color - - the color of the icon
Returns:
- the icon

getRoundIcon

public static final Icon getRoundIcon(int ICON_SIZE,
                                      Color color,
                                      Color backgroundColor)
Returns a round icon

Parameters:
color - - the color of the icon
Returns:
- the icon

getCrossIcon

public static final Icon getCrossIcon(int ICON_SIZE,
                                      Color color,
                                      Color backgroundColor)
Returns a cross icon

Parameters:
color - - the color of the icon
Returns:
- the icon