org.opensha.sha.gui.util
Class JNLPGen

java.lang.Object
  extended by org.opensha.sha.gui.util.JNLPGen

public class JNLPGen
extends Object


Field Summary
protected static int[] icon_sizes
           
static String jnlpDir
           
protected static String webRoot
           
 
Constructor Summary
JNLPGen(Class<?> theClass, String shortName, String title, String iconText, boolean allowOffline)
           
 
Method Summary
 Document createDocument()
           
 void generateAppIcons(String baseDir, HashMap<int[],BufferedImage> logoIcon)
           
protected static String getIconName(String shortName, int size)
           
static void main(String[] args)
           
 void setAllowOffline(boolean allowOffline)
           
 void setServerPrefs(ServerPrefs prefs)
           
 void writeJNLPFile()
           
 void writeJNLPFile(String dir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jnlpDir

public static final String jnlpDir

webRoot

protected static final String webRoot
See Also:
Constant Field Values

icon_sizes

protected static final int[] icon_sizes
Constructor Detail

JNLPGen

public JNLPGen(Class<?> theClass,
               String shortName,
               String title,
               String iconText,
               boolean allowOffline)
Method Detail

generateAppIcons

public void generateAppIcons(String baseDir,
                             HashMap<int[],BufferedImage> logoIcon)
                      throws IOException
Throws:
IOException

getIconName

protected static String getIconName(String shortName,
                                    int size)

setServerPrefs

public void setServerPrefs(ServerPrefs prefs)

setAllowOffline

public void setAllowOffline(boolean allowOffline)

writeJNLPFile

public void writeJNLPFile()
                   throws IOException
Throws:
IOException

writeJNLPFile

public void writeJNLPFile(String dir)
                   throws IOException
Throws:
IOException

createDocument

public Document createDocument()

main

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