01: /*
02: * This program is free software; you can redistribute it and/or modify
03: * it under the terms of the GNU General Public License as published by
04: * the Free Software Foundation; either version 2 of the License, or
05: * (at your option) any later version.
06: *
07: * This program is distributed in the hope that it will be useful,
08: * but WITHOUT ANY WARRANTY; without even the implied warranty of
09: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10: * GNU General Public License for more details.
11: *
12: * You should have received a copy of the GNU General Public License
13: * along with this program; if not, write to the Free Software
14: * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15: */
16:
17: /*
18: * NamedColor.java
19: * Copyright (C) 1999 University of Waikato, Hamilton, New Zealand
20: *
21: */
22:
23: package weka.gui.treevisualizer;
24:
25: import java.awt.*;
26:
27: /**
28: * This class contains a color name and the rgb values of that color
29: *
30: * @author Malcolm Ware (mfw4@cs.waikato.ac.nz)
31: * @version $Revision: 1.4 $
32: */
33: public class NamedColor {
34:
35: /** The name of the color */
36: public String m_name;
37:
38: /** The actual color object */
39: public Color m_col;
40:
41: /**
42: * @param n The name of the color.
43: * @param r The red component of the color.
44: * @param g The green component of the color.
45: * @param b The blue component of the color.
46: */
47: public NamedColor(String n, int r, int g, int b) {
48: m_name = n;
49: m_col = new Color(r, g, b);
50: }
51: }
|