Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/yaftp/utils/SwingTextEnv.java


1    /**
2    *
3    * CopyRights Jean-Yves MENGANT 1999,2000,2001,2002
4    *
5    * This program is free software; you can redistribute it and/or
6    * modify it under the terms of the GNU General Public License
7    * as published by the Free Software Foundation; either version 2
8    * of the License, or any later version.
9    *
10   * This program is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   * GNU General Public License for more details.
14   *
15   * You should have received a copy of the GNU General Public License
16   * along with this program; if not, write to the Free Software
17   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18   */
19  
20  package com.yaftp.utils ;
21  
22  import java.awt.*    ;
23  
24  /**
25  
26    Copyright Jean-Yves MENGANT 1998,1999,2000
27  
28    Define all parameters needed To establish Text Label
29    display context :
30  
31    - FONT
32    - BCKGROUND color
33    - FOREGROUND color
34  
35    @author Jean-Yves MENGANT
36  
37  */
38  
39  public class SwingTextEnv {
40  
41    private Font  _font ;
42    private Color _backGround ;
43    private Color _foreGround ;
44  
45    public SwingTextEnv( Font  font ,
46                         Color backGround ,
47                         Color foreGround
48                       )
49    {
50      _font        = font ;
51      _backGround  = backGround ;
52      _foreGround  = foreGround ;
53    }
54  
55  
56    public Font get_font()
57    { return _font ; }
58  
59    public Color get_backGround()
60    { return _backGround ; }
61  
62    public Color get_foreGround()
63    { return _foreGround ; }
64  }