|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
de.unibi.techfak.jpredictor.gui.MotifMaker
public class MotifMaker
Dialog for editing motifs.
| 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 |
|---|
private java.awt.Toolkit toolkit
java.awt.Window owner
java.lang.String[] buttonTexts
javax.swing.JButton bOk
javax.swing.JButton bCancel
javax.swing.JButton bEditMotif
javax.swing.JButton bRemoveMotif
javax.swing.JButton bClearMotifList
javax.swing.JButton bClearMotifSel
javax.swing.JButton bReplaceMotif
javax.swing.JButton bRegisterMotif
javax.swing.JButton bOverwriteMotif
javax.swing.JButton bClearMotifFields
javax.swing.JButton bClearAllFields
javax.swing.JButton bRecalcPSPM
javax.swing.JButton bRecalcPSSM
javax.swing.JButton bPastePSPM
javax.swing.JButton bPastePSSM
javax.swing.JButton bMultiGT
javax.swing.JButton bMultiGTGT
javax.swing.JButton bMultiLT
javax.swing.JButton bMultiDel
javax.swing.JButton bMultiClr
javax.swing.JButton bDoubleBuild
javax.swing.JButton bMultiAddDist
javax.swing.JRadioButton rbSDSequPlus
javax.swing.JRadioButton rbSDRegEPlus
javax.swing.JRadioButton rbSDPSPMPlus
javax.swing.JRadioButton rbSDPSSMPlus
javax.swing.JRadioButton rbSDSequMinus
javax.swing.JRadioButton rbSDRegEMinus
javax.swing.JRadioButton rbSDPSPMMinus
javax.swing.JRadioButton rbSDPSSMMinus
javax.swing.JRadioButton rbSDSequBoth
javax.swing.JRadioButton rbSDRegEBoth
javax.swing.JRadioButton rbSDPSPMBoth
javax.swing.JRadioButton rbSDPSSMBoth
javax.swing.JTable tablePSPM
javax.swing.JTable tablePSSM
static final int PANE_SEQU
static final int PANE_REGE
static final int PANE_PSPM
static final int PANE_PSSM
static final int PANE_MULTI
static final int PANE_COUNT
private int ACTUAL_PANE
javax.swing.JTextField[] tfName
javax.swing.JTextField[] tfDesc
javax.swing.JTextField[] tfWeight
javax.swing.JTextField tfMotifSequ
javax.swing.JTextField tfMotifRegE
javax.swing.JTextField tfErrorsSequ
javax.swing.JTextField tfErrorsRegE
javax.swing.JTextField tfThresholdPSPM
javax.swing.JTextField tfThresholdPSSM
javax.swing.JCheckBox cbSelf
javax.swing.JTextField tfMinDist
javax.swing.JTextField tfMaxDist
javax.swing.JTabbedPane tabbedPane
MotifTree treeView
MotifDistanceTree treeViewMultiMotif
java.lang.String[] cbAddMotifsListTexts
javax.swing.JComboBox cbAddMotifsList
static final int MAX_TABLE_LENGTH
java.lang.Integer[] rawPosProbs
java.lang.Integer[] rawPosScores
java.lang.Double[][] rawDataScores
java.lang.Double[][] rawDataProbs
java.lang.Double[][] backData
MotifList initialMotifList
MotifList, this class was created with.
Set in the constructor. This list is only changed, if the user
clicks on the exit/ok-button.
java.lang.String generatingSequences
null again.
boolean generatingBackground
boolean stateChangedByUser
| Constructor Detail |
|---|
public MotifMaker(MotifList ml)
ml - The initial MotifList.
public MotifMaker(java.awt.Frame owner,
MotifList ml)
owner - The parent frame.ml - The initial MotifList.
public MotifMaker(java.awt.Dialog owner,
MotifList ml)
owner - The parent dialog.ml - The initial MotifList.| Method Detail |
|---|
protected void createAndShowGUI(MotifList ml)
ml - The initial MotifList.private javax.swing.JPanel getPanelSequenceMotif(MouseOverHintManager hints)
hints - The hint manager to register components and texthints.
private javax.swing.JPanel getPanelRegExpMotif(MouseOverHintManager hints)
hints - The hint manager to register components and texthints.
private javax.swing.JPanel getPanelPSPM(MouseOverHintManager hints)
hints - The hint manager to register components and texthints.
private javax.swing.JPanel getPanelPSSM(MouseOverHintManager hints)
hints - The hint manager to register components and texthints.
private javax.swing.JPanel getPanelMultiMotif(MouseOverHintManager hints)
hints - The hint manager to register components and texthints.
private void setFieldsForSequenceMotif(javax.swing.JTabbedPane pane,
SequenceMotif motif)
pane - The JTabbedPane, which holds the fields.motif - The sequence motif.
private void setFieldsForRegExpMotif(javax.swing.JTabbedPane pane,
RegularExpressionMotif motif)
pane - The JTabbedPane, which holds the fields.motif - The regular expression motif.
private void setFieldsForPSPMotif(javax.swing.JTabbedPane pane,
PSPMotif motif)
pane - The JTabbedPane, which holds the fields.motif - The PSPM motif.
private void setFieldsForPSSMotif(javax.swing.JTabbedPane pane,
PSSMotif motif)
pane - The JTabbedPane, which holds the fields.motif - The PSSM motif.
private void setFieldsForMultiMotif(javax.swing.JTabbedPane pane,
MultiMotif motif)
pane - The JTabbedPane, which holds the fields.motif - The MultiMotif.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - The event description.public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged in interface javax.swing.event.ChangeListenere - The event description.public void setMotifList(MotifList ml)
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.
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.getMotifList()public MotifList getMotifList()
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. MotifList = null, because the given
list of motifs is anyway updated, as soon as the user clicked 'ok'.
setMotifList(MotifList)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||