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

net.maizegenetics.analysis.data.PassThroughPlugin Maven / Gradle / Ivy

Go to download

TASSEL is a software package to evaluate traits associations, evolutionary patterns, and linkage disequilibrium.

The newest version!
/*
 * PassThroughPlugin.java
 *
 * Created on June 9, 2007
 *
 */

package net.maizegenetics.analysis.data;


import net.maizegenetics.plugindef.AbstractPlugin;
import net.maizegenetics.plugindef.DataSet;
import net.maizegenetics.plugindef.PluginEvent;

import javax.swing.*;

/**
 *
 * @author terryc
 */
public class PassThroughPlugin extends AbstractPlugin{
    
    
    /**
     * Creates a new instance of PassThroughPlugin
     */
    public PassThroughPlugin() {
        super(null, false);
    }
    
    public DataSet performFunction(DataSet dataSet) {
        DataSet result = new DataSet(dataSet.getDataSet(), this);
        fireDataSetReturned(result);
        return result;
    }
    
    public String getToolTipText() {
        return "";
    }
    
    public ImageIcon getIcon() {
        return null;
    }
    
    public String getButtonName() {
        return "";
    }
    
    public void dataSetReturned(PluginEvent event) {
        DataSet input = (DataSet) event.getSource();
        performFunction(input);
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy