org.annotation.wordfreak
Class wordfreak

java.lang.Object
  extended byorg.annotation.wordfreak.wordfreak
All Implemented Interfaces:
EventListener

public class wordfreak
extends java.lang.Object
implements EventListener

This class processes command-line parameters, looks for plugins, sets up top level components, and launches WordFreak. The top level components consist of:


Field Summary
protected  java.lang.String[] annotators
           
static java.lang.String build_date
           
static java.lang.String build_time
           
static java.lang.String build_version
           
protected  java.lang.String defaultFormat
           
protected  java.lang.String[] formats
           
static java.lang.String HEIGHT
           
protected  java.lang.String lastfile
           
static java.lang.String MAIN_WINDOW
           
static java.lang.String PLUGIN_SUFFIX
           
protected  boolean scanDirectories
           
protected  java.lang.String[] schemes
           
protected  SplashBox splash
           
protected  java.lang.String[] tagsets
           
protected  java.lang.String[] viewers
           
static java.lang.String WIDTH
           
static java.lang.String X
           
protected  java.util.Map[] xmls
           
static java.lang.String Y
           
 
Constructor Summary
wordfreak(java.lang.String[] args)
           
 
Method Summary
 boolean eventTranspired(java.lang.String eventType, java.lang.Object source)
           
protected  java.util.List findPlugins()
           
protected  java.util.List findPluginsInDirectory(java.io.File file, int head)
           
protected  java.util.List findPluginsInJar(java.io.File file)
           
protected  java.lang.String[] getModules(java.lang.String type, java.lang.String main)
           
protected  void initMenus(java.util.List plugins)
           
protected  boolean isValidPlugin(java.lang.Class c, java.lang.Class parent)
           
static void main(java.lang.String[] args)
           
 void openFile(java.lang.String file, java.lang.String vwr, java.lang.String sch)
           
 void parseBuildInfo()
           
static void showUsageText()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_SUFFIX

public static java.lang.String PLUGIN_SUFFIX

MAIN_WINDOW

public static java.lang.String MAIN_WINDOW

X

public static java.lang.String X

Y

public static java.lang.String Y

WIDTH

public static java.lang.String WIDTH

HEIGHT

public static java.lang.String HEIGHT

viewers

protected java.lang.String[] viewers

schemes

protected java.lang.String[] schemes

annotators

protected java.lang.String[] annotators

tagsets

protected java.lang.String[] tagsets

formats

protected java.lang.String[] formats

xmls

protected java.util.Map[] xmls

splash

protected SplashBox splash

scanDirectories

protected boolean scanDirectories

build_date

public static java.lang.String build_date

build_time

public static java.lang.String build_time

build_version

public static java.lang.String build_version

lastfile

protected java.lang.String lastfile

defaultFormat

protected java.lang.String defaultFormat
Constructor Detail

wordfreak

public wordfreak(java.lang.String[] args)
Method Detail

findPluginsInDirectory

protected java.util.List findPluginsInDirectory(java.io.File file,
                                                int head)

findPluginsInJar

protected java.util.List findPluginsInJar(java.io.File file)

findPlugins

protected java.util.List findPlugins()

getModules

protected java.lang.String[] getModules(java.lang.String type,
                                        java.lang.String main)

isValidPlugin

protected boolean isValidPlugin(java.lang.Class c,
                                java.lang.Class parent)

initMenus

protected void initMenus(java.util.List plugins)

showUsageText

public static void showUsageText()

parseBuildInfo

public void parseBuildInfo()

openFile

public void openFile(java.lang.String file,
                     java.lang.String vwr,
                     java.lang.String sch)

eventTranspired

public boolean eventTranspired(java.lang.String eventType,
                               java.lang.Object source)
Specified by:
eventTranspired in interface EventListener

main

public static void main(java.lang.String[] args)


Copyright © 2004 Thomas Morton and Jeremy LaCivita. All Rights Reserved.