de.unibi.techfak.jpredictor.gui
Class MotifMaker

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Dialog
                  extended by javax.swing.JDialog
                      extended by de.unibi.techfak.jpredictor.gui.MotifMaker
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.ChangeListener, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class MotifMaker
extends javax.swing.JDialog
implements java.awt.event.ActionListener, javax.swing.event.ChangeListener

Dialog for editing motifs.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  int ACTUAL_PANE
          The actual selected tabbed pane.
(package private)  java.lang.Double[][] backData
          The background probabilities for the table in the PSSM tab.
(package private)  javax.swing.JButton bCancel
           
(package private)  javax.swing.JButton bClearAllFields
           
(package private)  javax.swing.JButton bClearMotifFields
           
(package private)  javax.swing.JButton bClearMotifList
           
(package private)  javax.swing.JButton bClearMotifSel
           
(package private)  javax.swing.JButton bDoubleBuild
           
(package private)  javax.swing.JButton bEditMotif
           
(package private)  javax.swing.JButton bMultiAddDist
           
(package private)  javax.swing.JButton bMultiClr
           
(package private)  javax.swing.JButton bMultiDel
           
(package private)  javax.swing.JButton bMultiGT
           
(package private)  javax.swing.JButton bMultiGTGT
           
(package private)  javax.swing.JButton bMultiLT
           
(package private)  javax.swing.JButton bOk
          Global buttons list.
(package private)  javax.swing.JButton bOverwriteMotif
           
(package private)  javax.swing.JButton bPastePSPM
           
(package private)  javax.swing.JButton bPastePSSM
           
(package private)  javax.swing.JButton bRecalcPSPM
           
(package private)  javax.swing.JButton bRecalcPSSM
           
(package private)  javax.swing.JButton bRegisterMotif
           
(package private)  javax.swing.JButton bRemoveMotif
           
(package private)  javax.swing.JButton bReplaceMotif
           
(package private)  java.lang.String[] buttonTexts
           
(package private)  javax.swing.JComboBox cbAddMotifsList
          Contains a list of motif lists to be added, just like 'Add PREdictor motifs'.
(package private)  java.lang.String[] cbAddMotifsListTexts
          The strings for the combo box to insert.
(package private)  javax.swing.JCheckBox cbSelf
          The checkboxes and textfields shown in the multimotif pane
(package private)  boolean generatingBackground
          If the actual PSSM was generated using a valid background, this variable is set to true.
(package private)  java.lang.String generatingSequences
          The sequences pasted for the PSPM and PSSM motif.
(package private)  MotifList initialMotifList
          The initial MotifList, this class was created with.
(package private) static int MAX_TABLE_LENGTH
          The maximal length of the PSPM or PSSM tables.
(package private)  java.awt.Window owner
          The parent of this JDialog.
(package private) static int PANE_COUNT
           
(package private) static int PANE_MULTI
           
(package private) static int PANE_PSPM
           
(package private) static int PANE_PSSM
           
(package private) static int PANE_REGE
           
(package private) static int PANE_SEQU
          Number of tabbed panes in the field
(package private)  java.lang.Double[][] rawDataProbs
          The raw data for the tables in the PSPM tab.
(package private)  java.lang.Double[][] rawDataScores
          The raw data for the tables either in the PSSM tab.
(package private)  java.lang.Integer[] rawPosProbs
          The positions in the PSPM table.
(package private)  java.lang.Integer[] rawPosScores
          The positions in the PSSM table.
(package private)  javax.swing.JRadioButton rbSDPSPMBoth
           
(package private)  javax.swing.JRadioButton rbSDPSPMMinus
           
(package private)  javax.swing.JRadioButton rbSDPSPMPlus
           
(package private)  javax.swing.JRadioButton rbSDPSSMBoth
           
(package private)  javax.swing.JRadioButton rbSDPSSMMinus
           
(package private)  javax.swing.JRadioButton rbSDPSSMPlus
           
(package private)  javax.swing.JRadioButton rbSDRegEBoth
           
(package private)  javax.swing.JRadioButton rbSDRegEMinus
           
(package private)  javax.swing.JRadioButton rbSDRegEPlus
           
(package private)  javax.swing.JRadioButton rbSDSequBoth
           
(package private)  javax.swing.JRadioButton rbSDSequMinus
           
(package private)  javax.swing.JRadioButton rbSDSequPlus
          The check boxes for the search direction
(package private)  boolean stateChangedByUser
          If the tabbed pane is selected by the user and not by the methods of this class.
(package private)  javax.swing.JTabbedPane tabbedPane
          The global tabbed pane.
(package private)  javax.swing.JTable tablePSPM
          The both tables, one for PSPM and one for PSSM
(package private)  javax.swing.JTable tablePSSM
           
(package private)  javax.swing.JTextField[] tfDesc
           
(package private)  javax.swing.JTextField tfErrorsRegE
           
(package private)  javax.swing.JTextField tfErrorsSequ
           
(package private)  javax.swing.JTextField tfMaxDist
           
(package private)  javax.swing.JTextField tfMinDist
           
(package private)  javax.swing.JTextField tfMotifRegE
           
(package private)  javax.swing.JTextField tfMotifSequ
          for SequenceMotif and RegExpMotif pane
(package private)  javax.swing.JTextField[] tfName
          For all tabbed panes: name, description, weight
(package private)  javax.swing.JTextField tfThresholdPSPM
          for PSPM motif pane and PSSM motif pane
(package private)  javax.swing.JTextField tfThresholdPSSM
           
(package private)  javax.swing.JTextField[] tfWeight
           
private  java.awt.Toolkit toolkit
          A toolkit to do something useful, like beep
(package private)  MotifTree treeView
          The tree of motifs to the left side.
(package private)  MotifDistanceTree treeViewMultiMotif
          The tree of motifs in the multi motif panel.
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MotifMaker(java.awt.Dialog owner, MotifList ml)
          Constructor, that takes a motif list, which is used to initialize the listing window.
MotifMaker(java.awt.Frame owner, MotifList ml)
          Constructor, that takes a motif list, which is used to initialize the listing window.
MotifMaker(MotifList ml)
          Simple constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Handles the events thrown when a button is pressed.
protected  void createAndShowGUI(MotifList ml)
          Creates the GUI for the MotifMaker.
 MotifList getMotifList()
          Returns the same MotifList as was given the constructor, or as was given to the setMotifList(MotifList)-method, respectively.
private  javax.swing.JPanel getPanelMultiMotif(MouseOverHintManager hints)
          Creates and returns the panel for the MultiMotif
private  javax.swing.JPanel getPanelPSPM(MouseOverHintManager hints)
          Creates and returns the panel for the PSPM-motif.
private  javax.swing.JPanel getPanelPSSM(MouseOverHintManager hints)
          Creates and returns the panel for the PSSM-motif
private  javax.swing.JPanel getPanelRegExpMotif(MouseOverHintManager hints)
          Creates and returns the panel for the regular expression motif
private  javax.swing.JPanel getPanelSequenceMotif(MouseOverHintManager hints)
          Creates and returns the panel for the sequence motif
private  void setFieldsForMultiMotif(javax.swing.JTabbedPane pane, MultiMotif motif)
          Sets the already initialized fields for the MultiMotif.
private  void setFieldsForPSPMotif(javax.swing.JTabbedPane pane, PSPMotif motif)
          Sets the already initialized fields for the PSPM motif.
private  void setFieldsForPSSMotif(javax.swing.JTabbedPane pane, PSSMotif motif)
          Sets the already initialized fields for the PSSM motif.
private  void setFieldsForRegExpMotif(javax.swing.JTabbedPane pane, RegularExpressionMotif motif)
          Sets the already initialized fields for the regular expression motif.
private  void setFieldsForSequenceMotif(javax.swing.JTabbedPane pane, SequenceMotif motif)
          Sets the already initialized fields for the sequence motif.
 void setMotifList(MotifList ml)
          Clears the tree view and adds the motifs to the tree.
 void stateChanged(javax.swing.event.ChangeEvent e)
          Handles the events thrown when a tabbed pane is changed.
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

toolkit

private java.awt.Toolkit toolkit
A toolkit to do something useful, like beep


owner

java.awt.Window owner
The parent of this JDialog.


buttonTexts

java.lang.String[] buttonTexts

bOk

javax.swing.JButton bOk
Global buttons list.


bCancel

javax.swing.JButton bCancel

bEditMotif

javax.swing.JButton bEditMotif

bRemoveMotif

javax.swing.JButton bRemoveMotif

bClearMotifList

javax.swing.JButton bClearMotifList

bClearMotifSel

javax.swing.JButton bClearMotifSel

bReplaceMotif

javax.swing.JButton bReplaceMotif

bRegisterMotif

javax.swing.JButton bRegisterMotif

bOverwriteMotif

javax.swing.JButton bOverwriteMotif

bClearMotifFields

javax.swing.JButton bClearMotifFields

bClearAllFields

javax.swing.JButton bClearAllFields

bRecalcPSPM

javax.swing.JButton bRecalcPSPM

bRecalcPSSM

javax.swing.JButton bRecalcPSSM

bPastePSPM

javax.swing.JButton bPastePSPM

bPastePSSM

javax.swing.JButton bPastePSSM

bMultiGT

javax.swing.JButton bMultiGT

bMultiGTGT

javax.swing.JButton bMultiGTGT

bMultiLT

javax.swing.JButton bMultiLT

bMultiDel

javax.swing.JButton bMultiDel

bMultiClr

javax.swing.JButton bMultiClr

bDoubleBuild

javax.swing.JButton bDoubleBuild

bMultiAddDist

javax.swing.JButton bMultiAddDist

rbSDSequPlus

javax.swing.JRadioButton rbSDSequPlus
The check boxes for the search direction


rbSDRegEPlus

javax.swing.JRadioButton rbSDRegEPlus

rbSDPSPMPlus

javax.swing.JRadioButton rbSDPSPMPlus

rbSDPSSMPlus

javax.swing.JRadioButton rbSDPSSMPlus

rbSDSequMinus

javax.swing.JRadioButton rbSDSequMinus

rbSDRegEMinus

javax.swing.JRadioButton rbSDRegEMinus

rbSDPSPMMinus

javax.swing.JRadioButton rbSDPSPMMinus

rbSDPSSMMinus

javax.swing.JRadioButton rbSDPSSMMinus

rbSDSequBoth

javax.swing.JRadioButton rbSDSequBoth

rbSDRegEBoth

javax.swing.JRadioButton rbSDRegEBoth

rbSDPSPMBoth

javax.swing.JRadioButton rbSDPSPMBoth

rbSDPSSMBoth

javax.swing.JRadioButton rbSDPSSMBoth

tablePSPM

javax.swing.JTable tablePSPM
The both tables, one for PSPM and one for PSSM


tablePSSM

javax.swing.JTable tablePSSM

PANE_SEQU

static final int PANE_SEQU
Number of tabbed panes in the field

See Also:
Constant Field Values

PANE_REGE

static final int PANE_REGE
See Also:
Constant Field Values

PANE_PSPM

static final int PANE_PSPM
See Also:
Constant Field Values

PANE_PSSM

static final int PANE_PSSM
See Also:
Constant Field Values

PANE_MULTI

static final int PANE_MULTI
See Also:
Constant Field Values

PANE_COUNT

static final int PANE_COUNT
See Also:
Constant Field Values

ACTUAL_PANE

private int ACTUAL_PANE
The actual selected tabbed pane.


tfName

javax.swing.JTextField[] tfName
For all tabbed panes: name, description, weight


tfDesc

javax.swing.JTextField[] tfDesc

tfWeight

javax.swing.JTextField[] tfWeight

tfMotifSequ

javax.swing.JTextField tfMotifSequ
for SequenceMotif and RegExpMotif pane


tfMotifRegE

javax.swing.JTextField tfMotifRegE

tfErrorsSequ

javax.swing.JTextField tfErrorsSequ

tfErrorsRegE

javax.swing.JTextField tfErrorsRegE

tfThresholdPSPM

javax.swing.JTextField tfThresholdPSPM
for PSPM motif pane and PSSM motif pane


tfThresholdPSSM

javax.swing.JTextField tfThresholdPSSM

cbSelf

javax.swing.JCheckBox cbSelf
The checkboxes and textfields shown in the multimotif pane


tfMinDist

javax.swing.JTextField tfMinDist

tfMaxDist

javax.swing.JTextField tfMaxDist

tabbedPane

javax.swing.JTabbedPane tabbedPane
The global tabbed pane.


treeView

MotifTree treeView
The tree of motifs to the left side.


treeViewMultiMotif

MotifDistanceTree treeViewMultiMotif
The tree of motifs in the multi motif panel.


cbAddMotifsListTexts

java.lang.String[] cbAddMotifsListTexts
The strings for the combo box to insert.


cbAddMotifsList

javax.swing.JComboBox cbAddMotifsList
Contains a list of motif lists to be added, just like 'Add PREdictor motifs'.


MAX_TABLE_LENGTH

static final int MAX_TABLE_LENGTH
The maximal length of the PSPM or PSSM tables.

See Also:
Constant Field Values

rawPosProbs

java.lang.Integer[] rawPosProbs
The positions in the PSPM table.


rawPosScores

java.lang.Integer[] rawPosScores
The positions in the PSSM table.


rawDataScores

java.lang.Double[][] rawDataScores
The raw data for the tables either in the PSSM tab. All positions are scores.


rawDataProbs

java.lang.Double[][] rawDataProbs
The raw data for the tables in the PSPM tab. All positions are probabilities.


backData

java.lang.Double[][] backData
The background probabilities for the table in the PSSM tab.


initialMotifList

MotifList initialMotifList
The initial MotifList, this class was created with. Set in the constructor. This list is only changed, if the user clicks on the exit/ok-button.


generatingSequences

java.lang.String generatingSequences
The sequences pasted for the PSPM and PSSM motif. If the tables are edited, this sequences are set to null again.


generatingBackground

boolean generatingBackground
If the actual PSSM was generated using a valid background, this variable is set to true. When registering the motif, the background can be saved together with the motif. It is used only together with the generatingSequences.


stateChangedByUser

boolean stateChangedByUser
If the tabbed pane is selected by the user and not by the methods of this class.

Constructor Detail

MotifMaker

public MotifMaker(MotifList ml)
Simple constructor. This dialog will have no owner.

Parameters:
ml - The initial MotifList.

MotifMaker

public MotifMaker(java.awt.Frame owner,
                  MotifList ml)
Constructor, that takes a motif list, which is used to initialize the listing window.

Parameters:
owner - The parent frame.
ml - The initial MotifList.

MotifMaker

public MotifMaker(java.awt.Dialog owner,
                  MotifList ml)
Constructor, that takes a motif list, which is used to initialize the listing window.

Parameters:
owner - The parent dialog.
ml - The initial MotifList.
Method Detail

createAndShowGUI

protected void createAndShowGUI(MotifList ml)
Creates the GUI for the MotifMaker.

Parameters:
ml - The initial MotifList.

getPanelSequenceMotif

private javax.swing.JPanel getPanelSequenceMotif(MouseOverHintManager hints)
Creates and returns the panel for the sequence motif

Parameters:
hints - The hint manager to register components and texthints.
Returns:
The panel to show all componentes for the sequence motif.

getPanelRegExpMotif

private javax.swing.JPanel getPanelRegExpMotif(MouseOverHintManager hints)
Creates and returns the panel for the regular expression motif

Parameters:
hints - The hint manager to register components and texthints.
Returns:
The panel to show all componentes for the regexp motif.

getPanelPSPM

private javax.swing.JPanel getPanelPSPM(MouseOverHintManager hints)
Creates and returns the panel for the PSPM-motif.

Parameters:
hints - The hint manager to register components and texthints.
Returns:
The panel to show all componentes for the PSPM motif.

getPanelPSSM

private javax.swing.JPanel getPanelPSSM(MouseOverHintManager hints)
Creates and returns the panel for the PSSM-motif

Parameters:
hints - The hint manager to register components and texthints.
Returns:
The panel to show all componentes for the PSSM motif.

getPanelMultiMotif

private javax.swing.JPanel getPanelMultiMotif(MouseOverHintManager hints)
Creates and returns the panel for the MultiMotif

Parameters:
hints - The hint manager to register components and texthints.
Returns:
The panel to show all componentes for the multi motif.

setFieldsForSequenceMotif

private void setFieldsForSequenceMotif(javax.swing.JTabbedPane pane,
                                       SequenceMotif motif)
Sets the already initialized fields for the sequence motif.

Parameters:
pane - The JTabbedPane, which holds the fields.
motif - The sequence motif.

setFieldsForRegExpMotif

private void setFieldsForRegExpMotif(javax.swing.JTabbedPane pane,
                                     RegularExpressionMotif motif)
Sets the already initialized fields for the regular expression motif.

Parameters:
pane - The JTabbedPane, which holds the fields.
motif - The regular expression motif.

setFieldsForPSPMotif

private void setFieldsForPSPMotif(javax.swing.JTabbedPane pane,
                                  PSPMotif motif)
Sets the already initialized fields for the PSPM motif.

Parameters:
pane - The JTabbedPane, which holds the fields.
motif - The PSPM motif.

setFieldsForPSSMotif

private void setFieldsForPSSMotif(javax.swing.JTabbedPane pane,
                                  PSSMotif motif)
Sets the already initialized fields for the PSSM motif.

Parameters:
pane - The JTabbedPane, which holds the fields.
motif - The PSSM motif.

setFieldsForMultiMotif

private void setFieldsForMultiMotif(javax.swing.JTabbedPane pane,
                                    MultiMotif motif)
Sets the already initialized fields for the MultiMotif.

Parameters:
pane - The JTabbedPane, which holds the fields.
motif - The MultiMotif.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Handles the events thrown when a button is pressed. Must not be called from others than the event dispatching thread due to unintended behaviour.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - The event description.

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Handles the events thrown when a tabbed pane is changed. Must not be called from others than the event dispatching thread due to unintended behaviour.

Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
e - The event description.

setMotifList

public void setMotifList(MotifList ml)
Clears the tree view and adds the motifs to the tree. Note, that the given MotifList is not changed unless the user clicks the ok-Button. In case a null-value is given, the final list of motifs can be obtained by calling the getMotifList()-method.

Parameters:
ml - The list of motifs to add to the tree. If it is null, a new, empty list is created and used as initial list.
See Also:
getMotifList()

getMotifList

public MotifList getMotifList()
Returns the same MotifList as was given the constructor, or as was given to the setMotifList(MotifList)-method, respectively. Internally this class works with a separate MotifList, and thus the given list of motifs is only updated from the separate one, if the user clicked the 'ok'-button. This also means, that you cannot obtain a so-far changed MotifList while this dialog is shown, rather you have to wait until this dialog was disposed.
Furthermore, this method should only be called, if the constructor was called with MotifList = null, because the given list of motifs is anyway updated, as soon as the user clicked 'ok'.

Returns:
The initial motif list.
See Also:
setMotifList(MotifList)