📄 filetypeinfo.java
字号:
/*
* 07/07/2004
*
* FileTypeInfo.java - A wrapper class containing an icon and a color, used to
* describe a style used when painting files of a given type
* in an RTextFileChooser.
* Copyright (C) 2004 Robert Futrell
* email@address.com
* www.website.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or 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 General Public License for more details.
*
* You should have received a copy of the GNU 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.
*/
package org.fife.ui.rtextfilechooser;
import java.awt.Color;
import javax.swing.Icon;
/**
* An icon and a color grouped together. This data structure is used
* to associate a "style" with a given file type (i.e., files ending in
* a given extension) in an <code>RTextFileChooser</code>.
*
* @author Robert Futrell
* @version 0.2
*/
public class FileTypeInfo {
/**
* An icon to use in the file chooser when a file of the specified type is
* displayed.
*/
public Icon icon;
/**
* The color to paint the name of the file in the file chooser.
*/
public Color labelTextColor;
/*****************************************************************************/
/**
* Constructor.
*
* @param icon The icon to use.
* @param labelTextColor The color to use for the label.
*/
public FileTypeInfo(Icon icon, Color labelTextColor) {
this.icon = icon;
this.labelTextColor = labelTextColor;
}
/*****************************************************************************/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -