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.common;
020
021import icy.resource.icon.IcyIcon;
022
023/**
024 * @deprecated Use {@link icy.action.IcyAbstractAction} instead.
025 */
026@Deprecated
027public abstract class IcyAbstractAction extends icy.action.IcyAbstractAction
028{
029    /**
030     * 
031     */
032    private static final long serialVersionUID = 5616342327585478868L;
033
034    private static final int DEFAULT_ICON_SIZE = 20;
035
036    public IcyAbstractAction(String name, IcyIcon icon, String description, String longDescription, int keyCode,
037            int modifiers, boolean bgProcess, String processMessage)
038    {
039        super(name, icon, description, longDescription, keyCode, modifiers, bgProcess, processMessage);
040    }
041
042    public IcyAbstractAction(String name, IcyIcon icon, String description, String longDescription, int keyCode,
043            int modifiers)
044    {
045        this(name, icon, description, longDescription, keyCode, modifiers, false, null);
046    }
047
048    public IcyAbstractAction(String name, IcyIcon icon, String description, String longDescription, boolean bgProcess,
049            String processMessage)
050    {
051        this(name, icon, description, longDescription, 0, 0, bgProcess, processMessage);
052    }
053
054    public IcyAbstractAction(String name, IcyIcon icon, String description, boolean bgProcess, String processMessage)
055    {
056        this(name, icon, description, null, 0, 0, bgProcess, processMessage);
057    }
058
059    public IcyAbstractAction(String name, IcyIcon icon, String description, int keyCode, int modifiers)
060    {
061        this(name, icon, description, null, keyCode, modifiers, false, null);
062    }
063
064    public IcyAbstractAction(String name, IcyIcon icon, String description, int keyCode)
065    {
066        this(name, icon, description, null, keyCode, 0, false, null);
067    }
068
069    public IcyAbstractAction(String name, IcyIcon icon, String description, String longDescription)
070    {
071        this(name, icon, description, longDescription, 0, 0, false, null);
072    }
073
074    public IcyAbstractAction(String name, IcyIcon icon, String description)
075    {
076        this(name, icon, description, null, 0, 0, false, null);
077    }
078
079    public IcyAbstractAction(String name, IcyIcon icon)
080    {
081        this(name, icon, null, null, 0, 0, false, null);
082    }
083
084    public IcyAbstractAction(String name)
085    {
086        this(name, null, null, null, 0, 0, false, null);
087    }
088
089    /**
090     * @deprecated Use {@link #IcyAbstractAction(String, IcyIcon, String, int, int)} instead.
091     */
092    @Deprecated
093    public IcyAbstractAction(String name, String iconName, String description, int keyCode, int modifiers)
094    {
095        this(name, new IcyIcon(iconName, DEFAULT_ICON_SIZE), description, null, keyCode, modifiers, false, null);
096    }
097
098    /**
099     * @deprecated Use {@link #IcyAbstractAction(String, IcyIcon, String, int)} instead.
100     */
101    @Deprecated
102    public IcyAbstractAction(String name, String iconName, String description, int keyCode)
103    {
104        this(name, new IcyIcon(iconName, DEFAULT_ICON_SIZE), description, null, keyCode, 0, false, null);
105    }
106
107    /**
108     * @deprecated Use {@link #IcyAbstractAction(String, IcyIcon, String)} instead.
109     */
110    @Deprecated
111    public IcyAbstractAction(String name, String iconName, String description)
112    {
113        this(name, new IcyIcon(iconName, DEFAULT_ICON_SIZE), description, null, 0, 0, false, null);
114    }
115
116    /**
117     * @deprecated Use {@link #IcyAbstractAction(String, IcyIcon)} instead.
118     */
119    @Deprecated
120    public IcyAbstractAction(String name, String iconName)
121    {
122        this(name, new IcyIcon(iconName, DEFAULT_ICON_SIZE), null, null, 0, 0, false, null);
123    }
124}