'STRAP:multiple sequence alignments '

charite.christo
Class Customize

java.lang.Object
  extended by charite.christo.Customize
All Implemented Interfaces:
ChRunnable, HasModiCount, HasPanel, java.awt.event.ActionListener, java.util.EventListener

public final class Customize
extends java.lang.Object
implements java.awt.event.ActionListener, HasPanel, ChRunnable, HasModiCount

HELP The customize-dialogs are used to set program options.
Data-types:



The settings are saved in text files in the directory ~/.StrapAlign.

Windows: The %PATH%-variable does not contain all WIKI:Executable files and therefore full file paths are often needed. Adding START at the beginning of a command line may avoid the need to enter absolute paths.


Using a new shell For using complicated shell commands with pipes, redirection, loops etc. the expression should be started with "SH " ("CYGWINSH " on Windows).

White space in file names: According to the WIKI:Url_encoding, white space in directory and file names must be encoded by "%20". Nevertheless, on standard computer systems, white space is generally avoided in file names, and this will only be the case on MS-Windows.

Setting values from file: With specific command-line options, further lines can be added. These lines are added to the default settings or if changed by the user to the text entered by the user. The command line option is formed by appending the name of the customize dialog to the prefix "customizeAdd". For example to add script lines you add the command line parameters -customizeAddScriptByRegex file. File is either a file or an URL. If the program is started from an URL, then "&customizeAddScriptByRegex=file" is added to the URL. Note that URL-encoding needs to be applied to file.
JCOMPONENT:Customize#docuView()


Field Summary
static int C_compiler
           
static int CLASS_Example
           
static int CLASS_ExecPath
           
static int CLASS_InitCommands
           
static int CLASS_LateCommands
           
static int CLASSPATH
           
static int CplusPlus_compiler
           
static int cssAlignBrowser
           
static int databases
           
static int dviPsConverter
           
static int dviViewer
           
static int ecClassLinks
           
static int error
           
static int execAminoSeq
           
static int execResidueSelection
           
static int EXECUTABLE
           
static int EXECUTABLES
           
static int FILE
           
static int fileBrowsers
           
static int FILES
           
static int FLAG_INTERN
           
static int FLAG_NOTIFY_IMMEDIATELY
           
static int FLAG_REPLACE
           
static int FLAG_SKIP_COMMENTS
           
static int fortran_compiler
           
static int htmlEditors
           
static int javaSourceEditor
           
static int keggOrganisms
           
static int laf
           
static int latex
           
static int LATEX
           
static int latexEditors
           
static int LIST
           
static int LIST_OF_CLASSES
           
static int LIST_OF_DIRECTORIES
           
static int MAP_TO_1_FROM_N
           
static int MAX_ID
           
static int MAX_VARIABLE
           
static Customize[] NONE
           
static int openFileWith
           
static int pdbLinks
           
static int pdbSite
           
static int pdflatex
           
static int pdfViewer
           
static int proteinDatabases
           
static int proteinFileExtensions
           
static int psPoster
           
static int psViewer
           
static int refuseExe
           
static int scriptByRegex
           
static int seqFeatureColors
           
static int SHELL_SCRIPT
           
static int speciesIcons
           
static int testProxySelector
           
static int TEXT_LINES
           
static int textEditors
           
static int trustExe
           
static int uniprotLinks
           
static int URL
           
static int watchLogFile
           
static int webBrowser
           
static int webLinks
           
static int webSearches
           
 
Fields inherited from interface charite.christo.HasPanel
NEW_PANEL, NO_NEW_PANEL
 
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
Customize(java.lang.String name, java.lang.String[] defaultSetting, java.lang.String help, int type)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ev)
           
static void addDialog(Customize... cc)
           
 void addHiddenEntries(boolean uniq, java.lang.String... ss)
           
 void addLine(java.lang.String s)
           
static void afterDL(java.lang.String name)
           
static Customize[] cc(java.lang.Object o)
           
static Customize customize(int id)
           
static javax.swing.JComponent docuView()
           
static void downloadFiles(java.lang.String[] namesOfCustomize)
           
static Customize getCustomizableForClass(java.lang.Class c, int id)
           
static Customize getCustomizableForClass(java.lang.Class clazz, java.lang.String id, java.lang.String help, int type)
           
 javax.swing.JComponent getPanel(int options)
           
 java.lang.String getSetting()
           
 java.lang.String[] getSettings()
           
 java.util.List<java.lang.String> getSettingsV()
           
 int modificationCount()
           
 ChButton newButton()
           
static ChButton newButton(Customize... cc)
           
static ChButton newButton(int... IDs)
           
static ChButton newButtonAll(java.lang.String id)
           
 ChCombo newComboBox()
           
 java.lang.Object run(java.lang.String id, java.lang.Object arg)
           
 void save(boolean always)
           
static void setParent(ChTabPane tp, java.awt.event.ActionListener li)
           
static java.lang.String toCommandLineOption(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

databases

public static final int databases
See Also:
Constant Field Values

proteinDatabases

public static final int proteinDatabases
See Also:
Constant Field Values

webLinks

public static final int webLinks
See Also:
Constant Field Values

C_compiler

public static final int C_compiler
See Also:
Constant Field Values

CplusPlus_compiler

public static final int CplusPlus_compiler
See Also:
Constant Field Values

latexEditors

public static final int latexEditors
See Also:
Constant Field Values

dviPsConverter

public static final int dviPsConverter
See Also:
Constant Field Values

dviViewer

public static final int dviViewer
See Also:
Constant Field Values

fileBrowsers

public static final int fileBrowsers
See Also:
Constant Field Values

fortran_compiler

public static final int fortran_compiler
See Also:
Constant Field Values

htmlEditors

public static final int htmlEditors
See Also:
Constant Field Values

javaSourceEditor

public static final int javaSourceEditor
See Also:
Constant Field Values

laf

public static final int laf
See Also:
Constant Field Values

pdfViewer

public static final int pdfViewer
See Also:
Constant Field Values

proteinFileExtensions

public static final int proteinFileExtensions
See Also:
Constant Field Values

psPoster

public static final int psPoster
See Also:
Constant Field Values

psViewer

public static final int psViewer
See Also:
Constant Field Values

textEditors

public static final int textEditors
See Also:
Constant Field Values

watchLogFile

public static final int watchLogFile
See Also:
Constant Field Values

webBrowser

public static final int webBrowser
See Also:
Constant Field Values

error

public static final int error
See Also:
Constant Field Values

pdbSite

public static final int pdbSite
See Also:
Constant Field Values

pdflatex

public static final int pdflatex
See Also:
Constant Field Values

latex

public static final int latex
See Also:
Constant Field Values

openFileWith

public static final int openFileWith
See Also:
Constant Field Values

scriptByRegex

public static final int scriptByRegex
See Also:
Constant Field Values

execAminoSeq

public static final int execAminoSeq
See Also:
Constant Field Values

execResidueSelection

public static final int execResidueSelection
See Also:
Constant Field Values

ecClassLinks

public static final int ecClassLinks
See Also:
Constant Field Values

webSearches

public static final int webSearches
See Also:
Constant Field Values

pdbLinks

public static final int pdbLinks
See Also:
Constant Field Values

uniprotLinks

public static final int uniprotLinks
See Also:
Constant Field Values

testProxySelector

public static final int testProxySelector
See Also:
Constant Field Values

keggOrganisms

public static final int keggOrganisms
See Also:
Constant Field Values

speciesIcons

public static final int speciesIcons
See Also:
Constant Field Values

cssAlignBrowser

public static final int cssAlignBrowser
See Also:
Constant Field Values

seqFeatureColors

public static final int seqFeatureColors
See Also:
Constant Field Values

trustExe

public static final int trustExe
See Also:
Constant Field Values

refuseExe

public static final int refuseExe
See Also:
Constant Field Values

MAX_ID

public static final int MAX_ID
See Also:
Constant Field Values

EXECUTABLE

public static final int EXECUTABLE
See Also:
Constant Field Values

EXECUTABLES

public static final int EXECUTABLES
See Also:
Constant Field Values

LATEX

public static final int LATEX
See Also:
Constant Field Values

LIST

public static final int LIST
See Also:
Constant Field Values

LIST_OF_CLASSES

public static final int LIST_OF_CLASSES
See Also:
Constant Field Values

FILE

public static final int FILE
See Also:
Constant Field Values

FILES

public static final int FILES
See Also:
Constant Field Values

TEXT_LINES

public static final int TEXT_LINES
See Also:
Constant Field Values

LIST_OF_DIRECTORIES

public static final int LIST_OF_DIRECTORIES
See Also:
Constant Field Values

SHELL_SCRIPT

public static final int SHELL_SCRIPT
See Also:
Constant Field Values

CLASSPATH

public static final int CLASSPATH
See Also:
Constant Field Values

MAP_TO_1_FROM_N

public static final int MAP_TO_1_FROM_N
See Also:
Constant Field Values

URL

public static final int URL
See Also:
Constant Field Values

MAX_VARIABLE

public static final int MAX_VARIABLE
See Also:
Constant Field Values

FLAG_SKIP_COMMENTS

public static final int FLAG_SKIP_COMMENTS
See Also:
Constant Field Values

FLAG_INTERN

public static final int FLAG_INTERN
See Also:
Constant Field Values

FLAG_REPLACE

public static final int FLAG_REPLACE
See Also:
Constant Field Values

FLAG_NOTIFY_IMMEDIATELY

public static final int FLAG_NOTIFY_IMMEDIATELY
See Also:
Constant Field Values

NONE

public static final Customize[] NONE

CLASS_Example

public static final int CLASS_Example
See Also:
Constant Field Values

CLASS_ExecPath

public static final int CLASS_ExecPath
See Also:
Constant Field Values

CLASS_InitCommands

public static final int CLASS_InitCommands
See Also:
Constant Field Values

CLASS_LateCommands

public static final int CLASS_LateCommands
See Also:
Constant Field Values
Constructor Detail

Customize

public Customize(java.lang.String name,
                 java.lang.String[] defaultSetting,
                 java.lang.String help,
                 int type)
Method Detail

docuView

public static javax.swing.JComponent docuView()

modificationCount

public int modificationCount()
Specified by:
modificationCount in interface HasModiCount

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toCommandLineOption

public static java.lang.String toCommandLineOption(java.lang.String name)

downloadFiles

public static void downloadFiles(java.lang.String[] namesOfCustomize)

afterDL

public static void afterDL(java.lang.String name)

getSettingsV

public java.util.List<java.lang.String> getSettingsV()

addHiddenEntries

public void addHiddenEntries(boolean uniq,
                             java.lang.String... ss)

getSettings

public java.lang.String[] getSettings()

getSetting

public java.lang.String getSetting()

getPanel

public javax.swing.JComponent getPanel(int options)
Specified by:
getPanel in interface HasPanel

newButtonAll

public static ChButton newButtonAll(java.lang.String id)

newButton

public static ChButton newButton(int... IDs)

newButton

public ChButton newButton()

newButton

public static ChButton newButton(Customize... cc)

newComboBox

public ChCombo newComboBox()

setParent

public static void setParent(ChTabPane tp,
                             java.awt.event.ActionListener li)

addDialog

public static void addDialog(Customize... cc)

cc

public static Customize[] cc(java.lang.Object o)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ev)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

save

public void save(boolean always)

addLine

public void addLine(java.lang.String s)

customize

public static Customize customize(int id)

run

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

getCustomizableForClass

public static Customize getCustomizableForClass(java.lang.Class clazz,
                                                java.lang.String id,
                                                java.lang.String help,
                                                int type)

getCustomizableForClass

public static Customize getCustomizableForClass(java.lang.Class c,
                                                int id)

'STRAP:multiple sequence alignments '

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