org.getopt.luke.plugins
Class VocabAnalysisPlugin

java.lang.Object
  extended by org.getopt.luke.LukePlugin
      extended by org.getopt.luke.plugins.VocabAnalysisPlugin

public class VocabAnalysisPlugin
extends LukePlugin


Field Summary
 
Fields inherited from class org.getopt.luke.LukePlugin
app, dir, ir, myUi
 
Constructor Summary
VocabAnalysisPlugin()
          Default constructor.
 
Method Summary
 void analyze()
           
 void cleanChart()
           
 java.lang.String getPluginHome()
          Return URL to plugin home page or author's e-mail.
 java.lang.String getPluginInfo()
          Return short one-line info about the plugin.
 java.lang.String getPluginName()
          Returns a plugin name.
 java.lang.String getSelectedField()
           
 java.lang.String getXULName()
          This method should return a fully qualified name/path of the XUL resource used to build the UI for the plugin.
 boolean init()
          Initialize this component.
 void setMyUi(java.lang.Object ui)
          Overriden to populate the drop down even if no index is open.
 void setSelectedField(java.lang.String selectedField)
           
 
Methods inherited from class org.getopt.luke.LukePlugin
getApplication, getDirectory, getIndexReader, getMyUi, setApplication, setDirectory, setIndexReader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VocabAnalysisPlugin

public VocabAnalysisPlugin()
                    throws java.lang.Exception
Default constructor. Initialize analyzers list.

Throws:
java.lang.Exception
Method Detail

getXULName

public java.lang.String getXULName()
Description copied from class: LukePlugin
This method should return a fully qualified name/path of the XUL resource used to build the UI for the plugin. The path should follow the rules specified in the ClassLoader documentation fo finding resources.
The top level element for the UI should always be a panel. The size of this panel must NOT be specified, but its "halign", "valign" attributes should be set to "fill", and "weightx", "weighty" attributes set to "1" - then the size of the panel will be determined at runtime and will always fill available space for the plugin UI.

Specified by:
getXULName in class LukePlugin
Returns:
full path to the XUL resource (filename or URL)

getPluginName

public java.lang.String getPluginName()
Description copied from class: LukePlugin
Returns a plugin name. NOTE: this should be a short (preferably one word) String, because it's length affects the amount of available screen space.

Specified by:
getPluginName in class LukePlugin
Returns:
short plugin name

getPluginInfo

public java.lang.String getPluginInfo()
Description copied from class: LukePlugin
Return short one-line info about the plugin.

Specified by:
getPluginInfo in class LukePlugin

getPluginHome

public java.lang.String getPluginHome()
Description copied from class: LukePlugin
Return URL to plugin home page or author's e-mail. NOTE: this MUST be a fully qualified URL, i.e. including the protocol part.

Specified by:
getPluginHome in class LukePlugin

setMyUi

public void setMyUi(java.lang.Object ui)
Overriden to populate the drop down even if no index is open.

Overrides:
setMyUi in class LukePlugin
Parameters:
ui - this plugin's UI object

init

public boolean init()
             throws java.lang.Exception
Description copied from class: LukePlugin
Initialize this component. Parent view, this view, directory and index reader should already be initialized.
This method will be called repeatedly, whenever new index is loaded into Luke.

Specified by:
init in class LukePlugin
Returns:
true on success, false on non-catastrophic failure
Throws:
java.lang.Exception - when an unrecoverable error occurs

cleanChart

public void cleanChart()

analyze

public void analyze()

getSelectedField

public java.lang.String getSelectedField()

setSelectedField

public void setSelectedField(java.lang.String selectedField)