aloneinterfaces
Class Interface1

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by aloneinterfaces.Interface
                      extended by aloneinterfaces.Interface1
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.ListSelectionListener

public class Interface1
extends Interface
implements java.awt.event.ActionListener, javax.swing.event.ListSelectionListener

The most complex interface in graphic implementation. Mainly useful to make prediction computing more precisely and permit sequences choice into searching palindromes.
Progression Bar.
Launching prediction.

Author:
Stéfan Engelen (2006), Gabriel Chandesris (2008)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
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.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  javax.swing.JLabel aide
           
private  javax.swing.JRadioButton arnMessager
           
private  javax.swing.JRadioButton arnStructural
           
private  SequenceListe autresSequences
          List of tother sequences.
private  Sequence cible
          Identification of elements, which algorithm will work on.
private  javax.swing.JLabel cibleChoice
           
private  javax.swing.JTextField dec
           
private  javax.swing.JLabel GCeffect
           
private  javax.swing.JLabel GUeffect
           
private  javax.swing.JLabel GUGCeffect
           
private  javax.swing.JLabel homologCharac
           
private  javax.swing.JLabel homologChoice
           
private  javax.swing.JLabel homology
           
private  javax.swing.JTextField incert
           
private  javax.swing.JLabel indels
           
private  javax.swing.JLabel l10
          private JLabel l9 = new JLabel("Nombre de predictions");
private  javax.swing.JLabel l10_aide
           
private  javax.swing.JLabel l11
           
private  javax.swing.JLabel l12
           
private  javax.swing.JLabel l13
           
private  javax.swing.JLabel l14
           
private  javax.swing.JLabel l15
           
private  javax.swing.JLabel label_critere
           
private  javax.swing.JLabel label_decalage
           
private  javax.swing.JLabel label_incertitude
           
private  javax.swing.JLabel label_lg
           
private  javax.swing.JLabel label_lg_boucle
           
private  javax.swing.JLabel label_lg_pal
           
private  javax.swing.JLabel label_type_arn
           
private  javax.swing.JList listeCible
          Graphical list of possible choice of cible sequences.
private  javax.swing.JList[] listeTest
          Tab of graphical lists of homologuous sequences.
private  javax.swing.DefaultListModel listModelCible
           
private  javax.swing.DefaultListModel listModelTest
           
private  javax.swing.JRadioButton longMutation
           
private  javax.swing.JTextField nbPred
           
private  javax.swing.JRadioButton plusieursStructures
           
private  javax.swing.JRadioButton pseudoNoeud
           
private  javax.swing.JTextArea[] scoreArea
           
private  javax.swing.JScrollPane[] scoreScroll
           
private  javax.swing.JScrollPane scrollListeCible
          Zone où s'affiche la liste des séquances cibles potentielles.
private  javax.swing.JScrollPane[] scrollListeTest
          Ensemble des listes où s'effectue la sélection des séquences tests.
private  BooleanListe selectionBool
          Test bool's selection (was a Vector of booleans (selected predictions)).
private  IntegerListe[] selectionInt
          Test int's selection (was a Vector of table of ints (selected items in prediction)).
private static long serialVersionUID
          Interface Serial Number (1).
private  javax.swing.JTextField tailleBoucle
           
private  javax.swing.JTextField taillePal
           
private  javax.swing.JRadioButton tauxMutation
           
private  javax.swing.ButtonGroup typeARN
           
private  javax.swing.ButtonGroup typeCritere
           
private  javax.swing.JRadioButton[] unePrediction
          Tab of selection buttons to mae prediction with selection.
 
Fields inherited from class aloneinterfaces.Interface
fenetre, monlayout
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Interface1(AloneProcessus processParent)
          Constructeur.
 
Method Summary
private  boolean actionHelper()
          This function to rationalize and to factor some items.
 void actionPerformed(java.awt.event.ActionEvent e)
          Action which depends of item selected in selection menu.
 void ajouteProgressBar(javax.swing.JProgressBar progressBar)
          To add and vizualise progression bar on this interface.
 void effacer()
          To remove what interface's items contain.
 int getArnType()
           
 SequenceListe getAutreSequence()
           
 int getCritereType()
           
 int getNumberPredictionMax()
           
 BooleanListe getSelectionBool()
           
 IntegerListe[] getSelectionInt()
           
 Sequence getSequence()
          One part of the compexty of this class comes from that data is on different objects.
 int getTypeRecherche()
           
 void initialiser()
          To initialize interface's items.
 void initialiserToolTipText()
          To initalize contextual help messages.
 boolean isPlusieursPredictions()
           
 boolean isRecherchePseudonoeud()
           
 void retireProgressBar(javax.swing.JProgressBar progressBar)
          To remove the progression bar.
 void setAutreSequence(SequenceListe autresSequences)
           
 void setInterface()
          Not active here.
 void setListModelCible(SequenceListe tabAdnTest)
          To compute a JList containing only the names of Sequence's.
 void setListModelTest(Sequence cible, SequenceListe selection, int longueur)
          Visualization of homologuous sequences selection.
 void setSequence(Sequence sequence)
           
 void setSequence(java.lang.String nom, java.lang.String sequence)
           
 void valueChanged(javax.swing.event.ListSelectionEvent e)
           
 
Methods inherited from class aloneinterfaces.Interface
getDacodac, getFenetre, getMenu, getMonlayout, getProcessusParent, setDacodac, setFenetre, setMenu, setMonlayout, setProcessusParent
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Interface Serial Number (1).

See Also:
Constant Field Values

cible

private Sequence cible
Identification of elements, which algorithm will work on.
Paramter. Other elements have to be getted in graphical interface or when execution.

See Also:
Sequence

autresSequences

private SequenceListe autresSequences
List of tother sequences.

See Also:
SequenceListe

selectionInt

private IntegerListe[] selectionInt
Test int's selection (was a Vector of table of ints (selected items in prediction)).


selectionBool

private BooleanListe selectionBool
Test bool's selection (was a Vector of booleans (selected predictions)).


listeCible

private javax.swing.JList listeCible
Graphical list of possible choice of cible sequences.


listModelCible

private javax.swing.DefaultListModel listModelCible

listeTest

private javax.swing.JList[] listeTest
Tab of graphical lists of homologuous sequences.


unePrediction

private javax.swing.JRadioButton[] unePrediction
Tab of selection buttons to mae prediction with selection.


listModelTest

private javax.swing.DefaultListModel listModelTest

scoreArea

private javax.swing.JTextArea[] scoreArea

scoreScroll

private javax.swing.JScrollPane[] scoreScroll

dec

private javax.swing.JTextField dec

incert

private javax.swing.JTextField incert

nbPred

private javax.swing.JTextField nbPred

tauxMutation

private javax.swing.JRadioButton tauxMutation

longMutation

private javax.swing.JRadioButton longMutation

typeCritere

private javax.swing.ButtonGroup typeCritere

arnStructural

private javax.swing.JRadioButton arnStructural

arnMessager

private javax.swing.JRadioButton arnMessager

typeARN

private javax.swing.ButtonGroup typeARN

plusieursStructures

private javax.swing.JRadioButton plusieursStructures

pseudoNoeud

private javax.swing.JRadioButton pseudoNoeud

tailleBoucle

private javax.swing.JTextField tailleBoucle

taillePal

private javax.swing.JTextField taillePal

scrollListeCible

private javax.swing.JScrollPane scrollListeCible
Zone où s'affiche la liste des séquances cibles potentielles.


scrollListeTest

private javax.swing.JScrollPane[] scrollListeTest
Ensemble des listes où s'effectue la sélection des séquences tests.


cibleChoice

private javax.swing.JLabel cibleChoice

aide

private javax.swing.JLabel aide

homologChoice

private javax.swing.JLabel homologChoice

homologCharac

private javax.swing.JLabel homologCharac

GCeffect

private javax.swing.JLabel GCeffect

GUeffect

private javax.swing.JLabel GUeffect

GUGCeffect

private javax.swing.JLabel GUGCeffect

indels

private javax.swing.JLabel indels

homology

private javax.swing.JLabel homology

l10

private javax.swing.JLabel l10
private JLabel l9 = new JLabel("Nombre de predictions");


l10_aide

private javax.swing.JLabel l10_aide

l11

private javax.swing.JLabel l11

l12

private javax.swing.JLabel l12

l13

private javax.swing.JLabel l13

l14

private javax.swing.JLabel l14

l15

private javax.swing.JLabel l15

label_lg

private javax.swing.JLabel label_lg

label_lg_boucle

private javax.swing.JLabel label_lg_boucle

label_lg_pal

private javax.swing.JLabel label_lg_pal

label_decalage

private javax.swing.JLabel label_decalage

label_incertitude

private javax.swing.JLabel label_incertitude

label_critere

private javax.swing.JLabel label_critere

label_type_arn

private javax.swing.JLabel label_type_arn
Constructor Detail

Interface1

public Interface1(AloneProcessus processParent)
Constructeur.

Parameters:
processParent - AloneProcessus
Method Detail

getSequence

public Sequence getSequence()
One part of the compexty of this class comes from that data is on different objects. Part of centralization here (thanks to Object Oriented language)...

Returns:
Sequence (cible sequence)

getAutreSequence

public SequenceListe getAutreSequence()

getSelectionInt

public IntegerListe[] getSelectionInt()

getSelectionBool

public BooleanListe getSelectionBool()

getTypeRecherche

public int getTypeRecherche()

getCritereType

public int getCritereType()

getArnType

public int getArnType()

isRecherchePseudonoeud

public boolean isRecherchePseudonoeud()

isPlusieursPredictions

public boolean isPlusieursPredictions()

getNumberPredictionMax

public int getNumberPredictionMax()

setSequence

public void setSequence(Sequence sequence)

setSequence

public void setSequence(java.lang.String nom,
                        java.lang.String sequence)

setAutreSequence

public void setAutreSequence(SequenceListe autresSequences)

setListModelCible

public void setListModelCible(SequenceListe tabAdnTest)
To compute a JList containing only the names of Sequence's.

Parameters:
tabAdnTest - SequenceListe

setListModelTest

public void setListModelTest(Sequence cible,
                             SequenceListe selection,
                             int longueur)
Visualization of homologuous sequences selection. And visualization of computing between cible sequence choosen and whole selection fo others...

Parameters:
cible - Sequence
selection - SequenceListe
longueur - int (lengt of cible)

ajouteProgressBar

public void ajouteProgressBar(javax.swing.JProgressBar progressBar)
To add and vizualise progression bar on this interface.

Parameters:
progressBar - JProgressBar

retireProgressBar

public void retireProgressBar(javax.swing.JProgressBar progressBar)
To remove the progression bar.

Parameters:
progressBar - JProgressBar

initialiserToolTipText

public void initialiserToolTipText()
To initalize contextual help messages.

Overrides:
initialiserToolTipText in class Interface
See Also:
Interface.initialiserToolTipText(), aide, l10_aide, listeCible, homologChoice, tauxMutation, longMutation, plusieursStructures, pseudoNoeud, nbPred, dec, label_decalage, incert, label_incertitude, tailleBoucle, taillePal, homologChoice, homologCharac, GUeffect, GUGCeffect, indels, homology

initialiser

public void initialiser()
Description copied from class: Interface
To initialize interface's items.

Overrides:
initialiser in class Interface

effacer

public void effacer()
Description copied from class: Interface
To remove what interface's items contain.

Specified by:
effacer in class Interface
See Also:
Interface.initialiser()

setInterface

public void setInterface()
Not active here. To fix how works the interface.

Specified by:
setInterface in class Interface
See Also:
Interface0.setInterface(String), Interface3.setInterface(modele.Sequence, modele.SequenceListe[], modele.PalindromeListe), Interface5.setInterface(modele.Sequence, modele.SequenceListe[], int, int, int, int, int), Interface7.setInterface(modele.Sequence, modele.SequenceListe[], int, int, int), Interface9.setInterface(String, String, double), Interface12.setInterface(modele.SequenceListe, modele.Sequence, modele.Palindrome), AloneProcessus.avance()

actionHelper

private boolean actionHelper()
This function to rationalize and to factor some items.

Returns:
boolean
See Also:
actionPerformed(ActionEvent)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Description copied from class: Interface
Action which depends of item selected in selection menu.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class Interface

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener