/* ========================
* JSynoptic : a free Synoptic editor
* ========================
*
* Project Info: http://jsynoptic.sourceforge.net/index.html
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation;
* either version 2.1 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*
* (C) Copyright 2001-2006, by :
* Corporate:
* EADS Astrium SAS
* EADS CRC
* Individual:
* Claude Cazenave
*
* $Id: ColorChooserProvider.java,v 1.1 2007/09/04 13:00:07 ogor Exp $
*
* Changes
* -------
* 3 janv. 2006 : Initial public release (CC);
*
*/
package simtools.ui;
import javax.swing.JColorChooser;
/**
*
* Holds a color chooser whitch can be used by any UI component.
*
* @author zxpletran007
*
*/
public class ColorChooserProvider {
// a global object for all use
public static ColorChooserProvider colorChooserProvider = new ColorChooserProvider();
protected JColorChooser chooser;
public ColorChooserProvider() {
chooser = new JColorChooser();
}
public JColorChooser getColorChooser() {
return chooser;
}
public void setColorChooser(JColorChooser chooser) {
this.chooser = chooser;
}
}