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

net.maizegenetics.plugindef.AbstractPluginAction Maven / Gradle / Ivy

Go to download

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();
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy