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.lut.abstract_; 020 021import icy.gui.viewer.Viewer; 022import icy.image.lut.LUT; 023import icy.sequence.Sequence; 024 025import javax.swing.JPanel; 026 027/** 028 * @deprecated 029 */ 030@Deprecated 031public class IcyLutViewer extends JPanel 032{ 033 /** 034 * 035 */ 036 private static final long serialVersionUID = 1121431241903512066L; 037 038 /** 039 * associated Viewer & LUT 040 */ 041 protected final Viewer viewer; 042 protected final LUT lut; 043 044 public IcyLutViewer(Viewer v, LUT l) 045 { 046 super(); 047 048 viewer = v; 049 lut = l; 050 } 051 052 /** 053 * @return the viewer 054 */ 055 public Viewer getViewer() 056 { 057 return viewer; 058 } 059 060 /** 061 * @return the lut 062 */ 063 public LUT getLut() 064 { 065 return lut; 066 } 067 068 /** 069 * @return the sequence 070 */ 071 public Sequence getSequence() 072 { 073 return viewer.getSequence(); 074 } 075}