|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MJAbase | +--MJAeval
MAExplorer Open Java API class to access MJAeval command interpreter methods and data structures. Access lists of properties
List of methods available to Plugin-writers
getListOfMenuActionLabels() - get list of current menu action commands labels getListOfMenuActionCmds() - get list of current menu action short-form commands getListOfMenuCheckboxLabels() - get list of current menu checkbox label commands. invokeMenuEntryByName() - invoke and process a menu command by name. evalCommands() - invoke and process a MAExplorer command.
This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file. This notice must be included with the code. The MAExplorer Mozilla and Legal files are available on http://maexplorer.sourceforge.net/.
Method Summary | |
boolean |
evalCommands(java.lang.String cmd,
java.lang.String arg)
evalCommands() - invoke and process a MAExplorer command. |
java.lang.String[] |
getListOfMenuActionCmds()
getListOfMenuActionCmds() - get list of current menu action short-form commands |
java.lang.String[] |
getListOfMenuActionLabels()
getListOfMenuActionLabels() - get list of current menu action commands labels |
java.lang.String[] |
getListOfMenuCheckboxLabels()
getListOfMenuCheckboxLabels() - get list of current menu checkbox label commands. |
boolean |
invokeMenuEntryByName(java.lang.String cmd,
int forceStateFlag)
invokeMenuEntryByName() - invoke and process a menu command by name. |
Methods inherited from class MJAbase |
cvtHashtable2SimpleTable, cvtTable2Hashtable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public final java.lang.String[] getListOfMenuActionLabels()
public final java.lang.String[] getListOfMenuActionCmds()
public final java.lang.String[] getListOfMenuCheckboxLabels()
public final boolean invokeMenuEntryByName(java.lang.String cmd, int forceStateFlag)
cmd
- to be evaluated (exact spelling)forceStateFlag
- (optional) is set to 1 for true, 0 for false if force a
checkbox state otherwise the checkbox state is toggled.public final boolean evalCommands(java.lang.String cmd, java.lang.String arg)
The commands are of several types: 1. a menu command to execute the menu command. 2. a menu checkbox toggle command. If the arg is "true" or "false" it will force the checkbox state to that value otherwise the checkbox state is toggled. 3. command to set current gene various ways "dm.setCurrentGene.'type'" taking a appropriate gene arg "dm.setCurrentGene.MID" taking an arg gene 'MID' number, e.g. "37" "dm.setCurrentGene.GID" taking an arg gene 'GID' number, e.g. "18674" "dm.setCurrentGene.Master_ID" taking an arg gene 'Master_ID' number, e.g. "IMAGE:12345" "dm.setCurrentGene.GeneName" taking an arg gene name, e.g. "Carbonic Anhydrase-III" "dm.setCurrentGene.GeneBankAcc" taking an arg 'GeneBankAcc' "dm.setCurrentGene.UniGeneID" taking an arg 'UniGeneID' "dm.setCurrentGene.LocusID" taking an arg 'LocusID' "dm.setCurrentGene.OMIM" taking an arg 'OMIM' "dm.setCurrentGene.RefseqID" taking an arg 'RefseqID' 4. command to set a slider threshold "dm.sliderThreshold.'slider-name'" 'numeric-value' Current 'slider-name's are: "Spot SI1", "Spot SI2", "I1", "I2", "Ratio R1", "Ratio R2", "Zdiff Z1", "Zdiff Z2", "Ratio CR1", "Ratio CR2", "Zdiff CZ1", "Zdiff CZ2", "p-Value", "Spot CV", "Spot Radius", "Cluster Distance", "# of Clusters", "Diff HP-XY", "Percent SI OK", "Spot Quality"}; 5. command to specify a arglist that may be used by other commands "dm.argList.cmd" 'tab-delimited arg list' This then calls 'cmd' with the tab-delimited arglist converted to a string array.The menu commands may be obtained from the @see #getListOfMenuActionLabels() and
cmd
- to be evaluated (exact spelling)arg
- is optional argument that may be required for special commands.methods.
The menu checkbox toggle commands may be obtained from the
,
This method is designed to drive event processing from either client-server,
scripts or MAEPlugins.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |