net.maizegenetics.gui.SiteNamesAvailableListModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tassel Show documentation
Show all versions of tassel Show documentation
TASSEL is a software package to evaluate traits associations, evolutionary patterns, and linkage
disequilibrium.
/*
* 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 - 2025 Weber Informatics LLC | Privacy Policy