org.opensha.commons.util
Class IconGen

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

public class IconGen
extends Object


Constructor Summary
IconGen(Image background, String text, String fontName, Color fillColor, Color outlineColor)
           
IconGen(Map<int[],? extends Image> backgrounds, String text, String fontName, Color fillColor, Color outlineColor)
           
 
Method Summary
 BufferedImage getIcon(int width, int height)
           
static BufferedImage loadLocalIcon()
           
static HashMap<int[],BufferedImage> loadLogoIcon()
           
static BufferedImage loadServerIcon()
           
static void main(String[] args)
           
 void setUpperRightImage(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(Image background,
               String text,
               String fontName,
               Color fillColor,
               Color outlineColor)

IconGen

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

loadLocalIcon

public static BufferedImage loadLocalIcon()
                                   throws IOException
Throws:
IOException

loadServerIcon

public static BufferedImage loadServerIcon()
                                    throws IOException
Throws:
IOException

loadLogoIcon

public static HashMap<int[],BufferedImage> loadLogoIcon()
                                                 throws IOException
Throws:
IOException

setUpperRightImage

public void setUpperRightImage(Image upperRight)

getIcon

public BufferedImage getIcon(int width,
                             int height)

main

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