org.opensha.commons.util
Class IconGen

java.lang.Object
  extended by org.opensha.commons.util.IconGen

public class IconGen
extends java.lang.Object


Constructor Summary
IconGen(java.awt.Image background, java.lang.String text, java.lang.String fontName, java.awt.Color fillColor, java.awt.Color outlineColor)
           
IconGen(java.util.Map<int[],? extends java.awt.Image> backgrounds, java.lang.String text, java.lang.String fontName, java.awt.Color fillColor, java.awt.Color outlineColor)
           
 
Method Summary
 java.awt.image.BufferedImage getIcon(int width, int height)
           
static java.awt.image.BufferedImage loadLocalIcon()
           
static java.util.HashMap<int[],java.awt.image.BufferedImage> loadLogoIcon()
           
static java.awt.image.BufferedImage loadServerIcon()
           
static void main(java.lang.String[] args)
           
 void setUpperRightImage(java.awt.Image upperRight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconGen

public IconGen(java.awt.Image background,
               java.lang.String text,
               java.lang.String fontName,
               java.awt.Color fillColor,
               java.awt.Color outlineColor)

IconGen

public IconGen(java.util.Map<int[],? extends java.awt.Image> backgrounds,
               java.lang.String text,
               java.lang.String fontName,
               java.awt.Color fillColor,
               java.awt.Color outlineColor)
Method Detail

loadLocalIcon

public static java.awt.image.BufferedImage loadLocalIcon()
                                                  throws java.io.IOException
Throws:
java.io.IOException

loadServerIcon

public static java.awt.image.BufferedImage loadServerIcon()
                                                   throws java.io.IOException
Throws:
java.io.IOException

loadLogoIcon

public static java.util.HashMap<int[],java.awt.image.BufferedImage> loadLogoIcon()
                                                                          throws java.io.IOException
Throws:
java.io.IOException

setUpperRightImage

public void setUpperRightImage(java.awt.Image upperRight)

getIcon

public java.awt.image.BufferedImage getIcon(int width,
                                            int height)

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Parameters:
args -
Throws:
java.io.IOException