|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object view.DataView
public class DataView
Title: Bioinformatics Project
Description: Genomes Comparacent
Copyright: Copyright (c) 2005-2006
DataView is the Viewer of the system. loads the main window of the application, sets it with the initial values, updates buttom/view accordingly.
Field Summary | |
---|---|
private org.eclipse.swt.widgets.Group |
ActionGroup
Group containing the combo boxes and the main tab buttons. |
private org.eclipse.swt.widgets.Button |
AddGenomeButton
Add new genome button. |
private org.eclipse.swt.widgets.Combo |
comboGene1
First genome combo box. |
private org.eclipse.swt.widgets.Combo |
comboGene2
Second genome combo box. |
private IDataHandler |
controller_
The controller of magic. |
(package private) org.eclipse.swt.widgets.Display |
display
The display of magic. |
private org.eclipse.swt.widgets.Button |
HistoryButton
History button, opens a new tab. |
private java.lang.String |
inputDirectory
Input directory path, default is Magic root/Data. |
private org.eclipse.swt.widgets.Group |
Instructions
Instructions groups, meanwhile conatining a label. |
private Magic |
magic
An object holding magic default settings/or settings set by the user. |
private org.eclipse.swt.widgets.Group |
mainGroup
The main group, mean while holding only the action group. |
private org.eclipse.swt.custom.CTabItem |
mainitem
Main tab item, contains the main tab components. |
private org.eclipse.swt.widgets.Composite |
maintab
The composite of the main tab item. |
private org.eclipse.swt.custom.CTabFolder |
MainTab
The main tab viewed when running MAGIC. |
private org.eclipse.swt.widgets.MessageBox |
messageBox
A default message box. |
private java.util.ResourceBundle |
messages
A resource bundle set to enable internationalization. |
private java.lang.String |
outputDirectory
Output directory path, default is Magic root/Data. |
private org.eclipse.swt.custom.CTabItem |
paraitem
Parameters tab item. |
protected PaintChart |
PChart
An object building and viewing the chart canvas. |
protected ParametersFrame |
PFrame
Parameters tab object. |
private org.eclipse.swt.widgets.Button |
RemoveGenomeButton
Remove genome button, DISABLED. |
private org.eclipse.swt.widgets.Button |
RunGenomeButton
Run new button, opens a new tab. |
(package private) org.eclipse.swt.widgets.Shell |
shell
The display shell(SWT properties). |
Constructor Summary | |
---|---|
DataView(java.lang.String[] args,
IDataHandler handler)
C'tor, sets the main menu and the main tab, initialize the system according to the settings file. |
Method Summary | |
---|---|
org.eclipse.swt.widgets.Display |
getDisplay()
Returns DataView main display. |
java.lang.String |
getInputDirectory()
Retruns input directory as imported from the magic object. |
int |
getMagicLang()
Returns language index from "magic" as initiated, used by controller. |
java.lang.String |
getOutDirectory()
Retruns output directory as imported from the magic object. |
org.eclipse.swt.widgets.Shell |
getShell()
Returns DataView main shell. |
private void |
initComponents()
Inits the main tab and menu and components that will be use as containters. |
void |
initFrame()
Inits the main tab item component with buttons, sets menu details and listeners, "creat and shows GUI". |
void |
setGenomes()
Imports genome names by the controller, and sets combo boxes with the received set of names. |
void |
setLanguage(java.lang.String string)
Sets the language index, used by controller. |
private void |
setWorkplace(boolean writeToFile)
Sets the parameters as read from the settings file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private IDataHandler controller_
org.eclipse.swt.widgets.Display display
org.eclipse.swt.widgets.Shell shell
protected ParametersFrame PFrame
private org.eclipse.swt.custom.CTabFolder MainTab
protected PaintChart PChart
private org.eclipse.swt.custom.CTabItem mainitem
private org.eclipse.swt.custom.CTabItem paraitem
private org.eclipse.swt.widgets.Composite maintab
private org.eclipse.swt.widgets.MessageBox messageBox
private org.eclipse.swt.widgets.Group mainGroup
private org.eclipse.swt.widgets.Group ActionGroup
private org.eclipse.swt.widgets.Combo comboGene1
private org.eclipse.swt.widgets.Combo comboGene2
private org.eclipse.swt.widgets.Button AddGenomeButton
private org.eclipse.swt.widgets.Button RemoveGenomeButton
private org.eclipse.swt.widgets.Button HistoryButton
private org.eclipse.swt.widgets.Button RunGenomeButton
private org.eclipse.swt.widgets.Group Instructions
private java.lang.String inputDirectory
private java.lang.String outputDirectory
private Magic magic
private java.util.ResourceBundle messages
Constructor Detail |
---|
public DataView(java.lang.String[] args, IDataHandler handler)
args
- Strings[]: not used, only for extending option.handler
- IDataHandler: the controller of MAGIC.Method Detail |
---|
private void initComponents()
private void setWorkplace(boolean writeToFile)
writeToFile
- boolean: true if the settings file is messing.public void initFrame()
public java.lang.String getInputDirectory()
public java.lang.String getOutDirectory()
public int getMagicLang()
public void setLanguage(java.lang.String string)
string
- String: the langauage index.public org.eclipse.swt.widgets.Shell getShell()
public org.eclipse.swt.widgets.Display getDisplay()
public void setGenomes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |