'STRAP:multiple sequence alignments '

charite.christo
Class ExecByRegex

java.lang.Object
  extended by charite.christo.ExecByRegex
All Implemented Interfaces:
ChRunnable, ProcessEv

public final class ExecByRegex
extends java.lang.Object
implements ProcessEv, ChRunnable

HELP This Dialog allows to apply shell commands to selected text regions and object IDs. It provides one way of linking other programs. The list of shell scripts can be customizable. The user can chose the shell script to be applied to a certain text-string from a browsable tree. This hierarchical tree contains the menu and sub-menus and shell-scripts and Web addresses.

Figure Dialog to apply shell scripts or Web addresses to selected text. Each node in the tree represents a shell script which can be started by left click. The text in the text box "Argument for shell scripts" replaces the placehoder in the script (asterisk). Users can define own scripts.
JCOMPONENT:ExecByRegex#screenshot()!


The list of shell-scripts is customizable at run-time. Alternatively, the program option "-customizeAddScriptByRegex" can be used to specify a file with shell-scripts. Example:
   demo\Example google%09.*%09http://www.google.com/search?q=*
   demo\Example: Matches starting with M%09^M.*$%09 echo starts with letter M *
   
Each line associates a shell script (3rd column) to regular expression (2nd column). The asterisk is replaced by the text. The shell script is presented to the user as a menu item. The menu item path is given in the 1st column with back-slash being the separator. If the value in the 3rd column starts with http://, then it is not taken as a shell script but as a Web address.


Field Summary
 
Fields inherited from interface charite.christo.ChRunnable
APPEND, COLUMN_TITLE, DOWNLOAD_FINISHED, GET_PANEL, ICON, INTERPRET_LINE, IS_DRAG4XY, ITEM_TEXT, MODIFY_RENDERER_COMPONENT, PROGRESS, REPAINT_CURSOR, SAY_DOWNLOADING, SET_ICON_IMAGE, SET_TREE_VALUE, SHOW_IN_FRAME, TAB_TEXT, TIP_TEXT
 
Constructor Summary
ExecByRegex()
           
 
Method Summary
static ExecByRegex getInstance(int i)
           
 javax.swing.JComponent getPanel()
           
static void main(java.lang.String[] argv)
           
 void processEv(java.awt.AWTEvent ev)
           
 java.lang.Object run(java.lang.String id, java.lang.Object arg)
           
static javax.swing.JComponent screenshot()
           
 ExecByRegex setText(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecByRegex

public ExecByRegex()
Method Detail

getInstance

public static ExecByRegex getInstance(int i)

setText

public ExecByRegex setText(java.lang.String s)

getPanel

public javax.swing.JComponent getPanel()

run

public java.lang.Object run(java.lang.String id,
                            java.lang.Object arg)
Specified by:
run in interface ChRunnable

processEv

public void processEv(java.awt.AWTEvent ev)
Specified by:
processEv in interface ProcessEv
See Also:
EvAdapter

screenshot

public static javax.swing.JComponent screenshot()

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Throws:
java.lang.Exception

'STRAP:multiple sequence alignments '

'The most important classes are StrapAlign, Protein and StrapEvent.'