source: branches/MetisMQI/src/main/java/weka/gui/treevisualizer/NamedColor.java

Last change on this file was 29, checked in by gnappo, 15 years ago

Taggata versione per la demo e aggiunto branch.

File size: 1.5 KB
Line 
1/*
2 *    This program is free software; you can redistribute it and/or modify
3 *    it under the terms of the GNU General Public License as published by
4 *    the Free Software Foundation; either version 2 of the License, or
5 *    (at your option) any later version.
6 *
7 *    This program is distributed in the hope that it will be useful,
8 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
9 *    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
24package weka.gui.treevisualizer;
25
26import java.awt.*;
27
28/**
29 * This class contains a color name and the rgb values of that color
30 *
31 * @author Malcolm Ware (mfw4@cs.waikato.ac.nz)
32 * @version $Revision: 1.4 $
33 */
34public class NamedColor {
35
36  /** The name of the color */
37  public String m_name;
38
39  /** The actual color object */
40  public Color m_col;
41 
42  /**
43   * @param n The name of the color.
44   * @param r The red component of the color.
45   * @param g The green component of the color.
46   * @param b The blue component of the color.
47   */   
48  public NamedColor(String n,int r,int g,int b) {
49    m_name = n;
50    m_col = new Color(r,g,b);
51  }
52}
53
54
55
56
57
58
59
Note: See TracBrowser for help on using the repository browser.