KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > java > navigation > JavaMembersAndHierarchyIcons


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.java.navigation;
21
22 import org.netbeans.api.java.source.UiUtils;
23 import org.openide.util.Utilities;
24 import java.util.EnumSet JavaDoc;
25 import javax.lang.model.element.ElementKind;
26 import javax.lang.model.element.Modifier;
27 import javax.swing.Icon JavaDoc;
28 import javax.swing.ImageIcon JavaDoc;
29
30 /**
31  *
32  * @author Sandip Chitale (Sandip.Chitale@Sun.Com)
33  */

34 final class JavaMembersAndHierarchyIcons {
35     public static final Icon JavaDoc INHERITED_ICON = new ImageIcon JavaDoc(Utilities.loadImage(
36                 "org/netbeans/modules/java/navigation/resources/inherited.gif")); // NOI18N
37

38     public static final Icon JavaDoc SUPER_TYPE_HIERARCHY_ICON = new ImageIcon JavaDoc(Utilities.loadImage(
39                 "org/netbeans/modules/java/navigation/resources/supertypehierarchy.gif")); // NOI18N
40

41     public static final Icon JavaDoc SUB_TYPE_HIERARCHY_ICON = new ImageIcon JavaDoc(Utilities.loadImage(
42                 "org/netbeans/modules/java/navigation/resources/subtypehierarchy.gif")); // NOI18N
43

44     public static final Icon JavaDoc FQN_ICON = new ImageIcon JavaDoc(Utilities.loadImage(
45                 "org/netbeans/modules/java/navigation/resources/fqn.gif")); // NOI18N
46

47     public static final Icon JavaDoc CLASS_ICON = UiUtils.getElementIcon(ElementKind.CLASS,
48             EnumSet.of(Modifier.PUBLIC));
49     public static final Icon JavaDoc INNER_CLASS_ICON = UiUtils.getElementIcon(ElementKind.CLASS,
50             EnumSet.of(Modifier.PUBLIC));
51     
52     public static final Icon JavaDoc INTERFACE_ICON = UiUtils.getElementIcon(ElementKind.INTERFACE,
53             EnumSet.of(Modifier.PUBLIC));
54     public static final Icon JavaDoc INNER_INTERFACE_ICON = UiUtils.getElementIcon(ElementKind.INTERFACE,
55             EnumSet.of(Modifier.PUBLIC));
56
57     public static final Icon JavaDoc CONSTRUCTOR_ICON = UiUtils.getElementIcon(ElementKind.CONSTRUCTOR,
58             EnumSet.of(Modifier.PUBLIC));
59     public static final Icon JavaDoc METHOD_ICON = UiUtils.getElementIcon(ElementKind.METHOD,
60             EnumSet.of(Modifier.PUBLIC));
61     public static final Icon JavaDoc FIELD_ICON = UiUtils.getElementIcon(ElementKind.FIELD,
62             EnumSet.of(Modifier.PUBLIC));
63     public static final Icon JavaDoc ENUM_ICON = UiUtils.getElementIcon(ElementKind.ENUM,
64             EnumSet.of(Modifier.PUBLIC));
65     public static final Icon JavaDoc ENUM_CONSTANTS_ICON = UiUtils.getElementIcon(ElementKind.ENUM_CONSTANT,
66             EnumSet.of(Modifier.PUBLIC));
67     public static final Icon JavaDoc PACKAGE_ICON = new ImageIcon JavaDoc(Utilities.loadImage(
68                 "org/netbeans/modules/java/navigation/resources/package.gif")); // NOI18N
69
public static final Icon JavaDoc PRIVATE_ICON = new ImageIcon JavaDoc(Utilities.loadImage(
70                 "org/netbeans/modules/java/navigation/resources/private.gif")); // NOI18N
71
public static final Icon JavaDoc PROTECTED_ICON = new ImageIcon JavaDoc(Utilities.loadImage(
72                 "org/netbeans/modules/java/navigation/resources/protected.gif")); // NOI18N
73
public static final Icon JavaDoc PUBLIC_ICON = new ImageIcon JavaDoc(Utilities.loadImage(
74                 "org/netbeans/modules/java/navigation/resources/public.gif")); // NOI18N
75
public static final Icon JavaDoc STATIC_ICON = new ImageIcon JavaDoc(Utilities.loadImage(
76                 "org/netbeans/modules/java/navigation/resources/static.gif")); // NOI18N
77
}
78
Popular Tags