net.maizegenetics.analysis.data.PassThroughPlugin 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.
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);
}
}