/**
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 *
 * Copyright (C)
 * <a href="http://www.inab.org">Spanish National Institute of Bioinformatics (INB)</a>
 * <a href="http://www.bsc.es">Barcelona Supercomputing Center (BSC)</a>
 * <a href="http://inb.bsc.es">Computational Node 6</a>
 */

package org.inb.biomoby.client.gui;

import javax.swing.JPanel;
import org.inb.biomoby.shared.message.AbstractMobyObject;

/**
 * An abstract visualization component that all components must extend.
 * 
 * @author Dmitry Repchevsky
 */

public abstract class AbstractMobyComponent<T extends AbstractMobyObject> extends JPanel
{
    private T data;

    public AbstractMobyComponent() {}

    public AbstractMobyComponent(T data)
    {
        this.data = data;
    }

    public T getData()
    {
        return data;
    }
}
