net.maizegenetics.plugindef.AbstractPluginAction 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!
/*
* AbstractPluginAction.java
*
*/
package net.maizegenetics.plugindef;
import javax.swing.*;
/**
*
* @author terryc
*/
abstract public class AbstractPluginAction extends AbstractAction implements PluginAction {
private final Plugin myPlugin;
/** Creates a new instance of AbstractPluginAction */
public AbstractPluginAction(Plugin plugin, String name, Icon icon) {
super(name, icon);
if (plugin == null) {
throw new IllegalArgumentException("AbstractPluginAction: init: plugin can not be null.");
}
myPlugin = plugin;
}
/**
* Return associated plugin.
*
* @return tassel plugin
*/
public Plugin getPlugin() {
return myPlugin;
}
/**
* GUI Panel for associated plugin.
*
* @return panel
*/
public JPanel getPanel() {
return myPlugin.getPanel();
}
}