All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.maizegenetics.gui.SiteNamesAvailableListModel Maven / Gradle / Ivy

Go to download

TASSEL 6 is a software package to evaluate traits association. Feature Tables are at the heart of the package where, a feature is a range of positions or a single position. Row in the that table are taxon.

There is a newer version: 6.0.1
Show newest version
/*
 *  SiteNamesAvailableListModel
 * 
 *  Created on Jul 3, 2014
 */
package net.maizegenetics.gui;

import net.maizegenetics.dna.map.PositionList;

/**
 *
 * @author Terry Casstevens
 */
public class SiteNamesAvailableListModel extends AbstractAvailableListModel {
    
    private final PositionList myPositions;
    
    public SiteNamesAvailableListModel(PositionList positions) {
        super(positions.numberOfSites());
        myPositions = positions;
    }
    
    @Override
    public String getRealElementAt(int index) {
        return myPositions.siteName(index);
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy