2
* java-gnome, a UI library for writing GTK and GNOME programs from Java!
4
* Copyright © 2010 Operational Dynamics Consulting, Pty Ltd and Others
6
* The code in this file, and the program it is a part of, is made available
7
* to you by its authors as open source software: you can redistribute it
8
* and/or modify it under the terms of the GNU General Public License version
9
* 2 ("GPL") as published by the Free Software Foundation.
11
* This program is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GPL for more details.
15
* You should have received a copy of the GPL along with this program. If not,
16
* see http://www.gnu.org/licenses/. The authors of this program may be
17
* contacted through http://java-gnome.sourceforge.net/.
19
* Linking this library statically or dynamically with other modules is making
20
* a combined work based on this library. Thus, the terms and conditions of
21
* the GPL cover the whole combination. As a special exception (the
22
* "Claspath Exception"), the copyright holders of this library give you
23
* permission to link this library with independent modules to produce an
24
* executable, regardless of the license terms of these independent modules,
25
* and to copy and distribute the resulting executable under terms of your
26
* choice, provided that you also meet, for each linked independent module,
27
* the terms and conditions of the license of that module. An independent
28
* module is a module which is not derived from or based on this library. If
29
* you modify this library, you may extend the Classpath Exception to your
30
* version of the library, but you are not obligated to do so. If you do not
31
* wish to do so, delete this exception statement from your version.
33
package org.freedesktop.icons;
36
* Named icons representing MIME types.
38
* @author Guillaume Mazoyer
39
* @author Andrew Cowie
42
public class MimeIcon extends Icon
44
protected MimeIcon(String name) {
48
public static final Icon APPLICATION_CERTIFICATE = new MimeIcon("application-certificate");
50
public static final Icon APPLICATION_X_EXECUTABLE = new MimeIcon("application-x-executable");
52
public static final Icon AUDIO_X_GENERIC = new MimeIcon("audio-x-generic");
54
public static final Icon FONT_X_GENERIC = new MimeIcon("font-x-generic");
56
public static final Icon IMAGE_X_GENERIC = new MimeIcon("image-x-generic");
58
public static final Icon PACKAGE_X_GENERIC = new MimeIcon("package-x-generic");
60
public static final Icon TEXT_HTML = new MimeIcon("text-html");
62
public static final Icon TEXT_X_GENERIC = new MimeIcon("text-x-generic");
64
public static final Icon TEXT_X_GENERIC_TEMPLATE = new MimeIcon("text-x-generic-template");
66
public static final Icon TEXT_X_PREVIEW = new MimeIcon("text-x-preview");
68
public static final Icon TEXT_X_SCRIPT = new MimeIcon("text-x-script");
70
public static final Icon VIDEO_X_GENERIC = new MimeIcon("video-x-generic");
72
public static final Icon X_OFFICE_ADDRESS_BOOK = new MimeIcon("x-office-address-book");
74
public static final Icon X_OFFICE_CALENDAR = new MimeIcon("x-office-calendar");
76
public static final Icon X_OFFICE_DOCUMENT = new MimeIcon("x-office-document");
78
public static final Icon X_OFFICE_DOCUMENT_TEMPLATE = new MimeIcon("x-office-document-template");
80
public static final Icon X_OFFICE_DRAWING = new MimeIcon("x-office-drawing");
82
public static final Icon X_OFFICE_DRAWING_TEMPLATE = new MimeIcon("x-office-drawing-template");
84
public static final Icon X_OFFICE_PRESENTATION = new MimeIcon("x-office-presentation");
86
public static final Icon X_OFFICE_PRESENTATION_TEMPLATE = new MimeIcon(
87
"x-office-presentation-template");
89
public static final Icon X_OFFICE_SPREADSHEET = new MimeIcon("x-office-spreadsheet");
91
public static final Icon X_OFFICE_SPREADSHEET_TEMPLATE = new MimeIcon(
92
"x-office-spreadsheet-template");