001/*
002 * Copyright 2010-2015 Institut Pasteur.
003 * 
004 * This file is part of Icy.
005 * 
006 * Icy is free software: you can redistribute it and/or modify
007 * it under the terms of the GNU General Public License as published by
008 * the Free Software Foundation, either version 3 of the License, or
009 * (at your option) any later version.
010 * 
011 * Icy is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
014 * GNU General Public License for more details.
015 * 
016 * You should have received a copy of the GNU General Public License
017 * along with Icy. If not, see <http://www.gnu.org/licenses/>.
018 */
019package icy.gui.main;
020
021import java.util.EventListener;
022
023/**
024 * @deprecated Use one of these interface instead:<br/>
025 *             {@link GlobalViewerListener}<br/>
026 *             {@link GlobalSequenceListener}<br/>
027 *             {@link GlobalROIListener}<br/>
028 *             {@link GlobalOverlayListener}<br/>
029 *             {@link GlobalPluginListener}
030 * @author Stephane
031 */
032@Deprecated
033public interface MainListener extends EventListener
034{
035    /**
036     * A plugin has been started
037     */
038    public void pluginOpened(MainEvent event);
039
040    /**
041     * A plugin has ended
042     */
043    public void pluginClosed(MainEvent event);
044
045    /**
046     * A viewer has been opened
047     */
048    public void viewerOpened(MainEvent event);
049
050    /**
051     * A viewer just got the focus
052     */
053    public void viewerFocused(MainEvent event);
054
055    /**
056     * A viewer has been closed
057     */
058    public void viewerClosed(MainEvent event);
059
060    /**
061     * A sequence has been opened
062     */
063    public void sequenceOpened(MainEvent event);
064
065    /**
066     * A sequence just got the focus
067     */
068    public void sequenceFocused(MainEvent event);
069
070    /**
071     * A sequence has been closed
072     */
073    public void sequenceClosed(MainEvent event);
074
075    /**
076     * A ROI has been added to its first sequence
077     */
078    public void roiAdded(MainEvent event);
079
080    /**
081     * A ROI has been removed from its last sequence
082     */
083    public void roiRemoved(MainEvent event);
084
085    /**
086     * A painter has been added to its first sequence
087     */
088    public void painterAdded(MainEvent event);
089
090    /**
091     * A painter has been removed from its last sequence
092     */
093    public void painterRemoved(MainEvent event);
094}