'STRAP:multiple sequence alignments '

charite.christo
Class ChJList

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JList
                  extended by charite.christo.ChJList
All Implemented Interfaces:
HasModiCount, IsEnabled, ProcessEv, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.Scrollable
Direct Known Subclasses:
ProteinList

public class ChJList
extends javax.swing.JList
implements IsEnabled, ProcessEv, HasModiCount

HELP This list supports

Keep window always visible: You may want to set the window "Floating on top". See Strap tool-bar==>options.

Frequently used menu-items: of the context-menu can be dragged out of the menu. These extracted menu items are found at the bottom and can be used directly.

Sequence groups: If the list is displaying proteins, two buttons at the bottom provide "Sequence group" functionality. Exactly the proteins in the list are displayed in the alignment, all others are hidden.
Hidden proteins can be reintroduced into the alignment by dragging the tree node "Hidden proteins" of the object tree. The object tree is usually not visible because the vertical divider is at the very left. It becomes visible by opening the divider.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JList
javax.swing.JList.DropLocation
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
static java.lang.String KEY_ENABLE_IF_SELECTED
           
static java.lang.String KEY_NO_HELP_ON_RIGHT_CLICK
           
static java.lang.String KEY_UPDATE_ENABLED
           
static int OPTIONS_FILES
           
static long SEL_STRSTR
           
static long SEL_STRSTR_IC
           
 
Fields inherited from class javax.swing.JList
HORIZONTAL_WRAP, VERTICAL, VERTICAL_WRAP
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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
ChJList(java.lang.Object data, long options)
           
 
Method Summary
 void addOptions(long options)
           
 java.util.List getDndDateien()
           
 java.util.List getList()
           
 long getOptions()
           
static long getOptions(java.lang.Object o)
           
 java.awt.Dimension getPreferredSize()
           
 java.lang.String getToolTipText(java.awt.event.MouseEvent ev)
           
 boolean isEnabled(java.lang.Object o)
           
 ChJList li(java.awt.event.ActionListener l)
           
 int modificationCount()
           
 void paint(java.awt.Graphics g)
           
 void paintComponent(java.awt.Graphics g)
           
 void processEv(java.awt.AWTEvent ev)
           
 void processEvent(java.awt.AWTEvent ev)
           
 void scrollToSelected()
           
 void setData(java.lang.Object data)
           
 ChJList setSelI(int i)
           
 ChJList setSelII(int[] ii)
           
static void setSelO(long options, java.lang.Object o, javax.swing.JComponent c)
           
 ChJList setSelOO(java.lang.Object[] oo)
           
 ChFrame showInFrame(long option, java.lang.String title)
           
static java.lang.Thread thread_setSelO(long options, java.lang.Object o, javax.swing.JComponent c)
           
 java.lang.String toString()
           
 
Methods inherited from class javax.swing.JList
addListSelectionListener, addSelectionInterval, clearSelection, ensureIndexIsVisible, getAccessibleContext, getAnchorSelectionIndex, getCellBounds, getCellRenderer, getDragEnabled, getDropLocation, getDropMode, getFirstVisibleIndex, getFixedCellHeight, getFixedCellWidth, getLastVisibleIndex, getLayoutOrientation, getLeadSelectionIndex, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getModel, getNextMatch, getPreferredScrollableViewportSize, getPrototypeCellValue, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedIndex, getSelectedIndices, getSelectedValue, getSelectedValues, getSelectionBackground, getSelectionForeground, getSelectionMode, getSelectionModel, getUI, getUIClassID, getValueIsAdjusting, getVisibleRowCount, indexToLocation, isSelectedIndex, isSelectionEmpty, locationToIndex, removeListSelectionListener, removeSelectionInterval, setCellRenderer, setDragEnabled, setDropMode, setFixedCellHeight, setFixedCellWidth, setLayoutOrientation, setListData, setListData, setModel, setPrototypeCellValue, setSelectedIndex, setSelectedIndices, setSelectedValue, setSelectionBackground, setSelectionForeground, setSelectionInterval, setSelectionMode, setSelectionModel, setUI, setValueIsAdjusting, setVisibleRowCount, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPTIONS_FILES

public static final int OPTIONS_FILES
See Also:
Constant Field Values

KEY_NO_HELP_ON_RIGHT_CLICK

public static final java.lang.String KEY_NO_HELP_ON_RIGHT_CLICK
See Also:
Constant Field Values

KEY_UPDATE_ENABLED

public static final java.lang.String KEY_UPDATE_ENABLED
See Also:
Constant Field Values

KEY_ENABLE_IF_SELECTED

public static final java.lang.String KEY_ENABLE_IF_SELECTED
See Also:
Constant Field Values

SEL_STRSTR

public static final long SEL_STRSTR
See Also:
Constant Field Values

SEL_STRSTR_IC

public static final long SEL_STRSTR_IC
See Also:
Constant Field Values
Constructor Detail

ChJList

public ChJList(java.lang.Object data,
               long options)
Method Detail

setData

public void setData(java.lang.Object data)

getOptions

public long getOptions()

addOptions

public void addOptions(long options)

getList

public java.util.List getList()

isEnabled

public boolean isEnabled(java.lang.Object o)
Specified by:
isEnabled in interface IsEnabled

setSelII

public ChJList setSelII(int[] ii)

setSelI

public ChJList setSelI(int i)

thread_setSelO

public static java.lang.Thread thread_setSelO(long options,
                                              java.lang.Object o,
                                              javax.swing.JComponent c)

setSelO

public static void setSelO(long options,
                           java.lang.Object o,
                           javax.swing.JComponent c)

setSelOO

public ChJList setSelOO(java.lang.Object[] oo)

modificationCount

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

scrollToSelected

public void scrollToSelected()

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class javax.swing.JComponent

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class javax.swing.JComponent

paintComponent

public void paintComponent(java.awt.Graphics g)
Overrides:
paintComponent in class javax.swing.JComponent

toString

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

li

public ChJList li(java.awt.event.ActionListener l)

processEvent

public void processEvent(java.awt.AWTEvent ev)
Overrides:
processEvent in class java.awt.Container

processEv

public void processEv(java.awt.AWTEvent ev)
Specified by:
processEv in interface ProcessEv
See Also:
EvAdapter

getToolTipText

public java.lang.String getToolTipText(java.awt.event.MouseEvent ev)
Overrides:
getToolTipText in class javax.swing.JList

showInFrame

public ChFrame showInFrame(long option,
                           java.lang.String title)

getDndDateien

public java.util.List getDndDateien()

getOptions

public static long getOptions(java.lang.Object o)

'STRAP:multiple sequence alignments '

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