Package jSimMacs.data

Examples of jSimMacs.data.SequenceListModel


    chainList.setLayoutOrientation(JList.VERTICAL);
    chainList.setSelectedIndex(0);
    chainList.setVisibleRowCount(4);
    chainList.addListSelectionListener(this);
   
    listModel = new SequenceListModel(chain.getAtomSequence());
    sequenceList = new JList(listModel);
    sequenceList.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    sequenceList.setLayoutOrientation(JList.HORIZONTAL_WRAP);
    sequenceList.setVisibleRowCount(1);
    sequenceList.addListSelectionListener(this);
View Full Code Here


      String chainName = (String)list.getSelectedValue();
      try {
        sequenceList.clearSelection();
        Chain chain = structure.findChain(chainName);
        selectedChainIndex = list.getSelectedIndex();
        SequenceListModel listModel = new SequenceListModel(chain.getAtomSequence());
        sequenceList.setModel(listModel);

      } catch (StructureException e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
View Full Code Here

TOP

Related Classes of jSimMacs.data.SequenceListModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.