View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    * 
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   * 
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  
18  /*
19   * @author Paul Smith <psmith@apache.org>
20   *
21   */
22  package org.apache.log4j.chainsaw.icons;
23  
24  import java.net.URL;
25  
26  import javax.swing.Icon;
27  import javax.swing.ImageIcon;
28  
29  
30  /**
31   * @author Paul Smith <psmith@apache.org>
32   *
33   */
34  public class ChainsawIcons {
35    private static final String BASE_ICON_PATH =
36      "org/apache/log4j/chainsaw/icons/";
37    public static final URL FILE_OPEN =
38      ChainsawIcons.class.getClassLoader().getResource(
39        BASE_ICON_PATH + "Open16.gif");
40    public static final URL UP =
41            ChainsawIcons.class.getClassLoader().getResource(
42              BASE_ICON_PATH + "Up16.gif");
43    public static final URL DOWN =
44        ChainsawIcons.class.getClassLoader().getResource(
45          BASE_ICON_PATH + "Down16.gif");
46    public static final URL FILE_SAVE_AS =
47      ChainsawIcons.class.getClassLoader().getResource(
48        BASE_ICON_PATH + "SaveAs16.gif");
49    public static final URL PAUSE =
50      ChainsawIcons.class.getClassLoader().getResource(
51        BASE_ICON_PATH + "Pause16.gif");
52    public static final URL REFRESH =
53      ChainsawIcons.class.getClassLoader().getResource(
54        BASE_ICON_PATH + "Refresh16.gif");
55    public static final URL DELETE =
56      ChainsawIcons.class.getClassLoader().getResource(
57        BASE_ICON_PATH + "Delete16.gif");
58    public static final URL INFO =
59      ChainsawIcons.class.getClassLoader().getResource(
60        BASE_ICON_PATH + "Information16.gif");
61    public static final URL FIND =
62      ChainsawIcons.class.getClassLoader().getResource(
63        BASE_ICON_PATH + "Find16.gif");
64    public static final URL ABOUT =
65      ChainsawIcons.class.getClassLoader().getResource(
66        BASE_ICON_PATH + "About16.gif");
67    public static final URL SCROLL_TO_BOTTOM =
68      ChainsawIcons.class.getClassLoader().getResource(
69        BASE_ICON_PATH + "RowInsertAfter16.gif");
70    public static final URL TOOL_TIP =
71      ChainsawIcons.class.getClassLoader().getResource(
72        BASE_ICON_PATH + "TipOfTheDay16.gif");
73    public static final URL UNDOCK =
74      ChainsawIcons.class.getClassLoader().getResource(
75        BASE_ICON_PATH + "Export16.gif");
76    public static final URL DOCK =
77      ChainsawIcons.class.getClassLoader().getResource(
78        BASE_ICON_PATH + "Import16.gif");
79    public static final URL PREFERENCES =
80      ChainsawIcons.class.getClassLoader().getResource(
81        BASE_ICON_PATH + "Preferences16.gif");
82    public static final URL DEBUG =
83      ChainsawIcons.class.getClassLoader().getResource(
84        BASE_ICON_PATH + "Bean16.gif");
85    public static final URL HELP =
86      ChainsawIcons.class.getClassLoader().getResource(
87        BASE_ICON_PATH + "Help16.gif");
88    public static final Icon ICON_UP = new ImageIcon(UP);
89    public static final Icon ICON_DOWN = new ImageIcon(DOWN);
90    public static final Icon ICON_HELP = new ImageIcon(HELP);
91    public static final Icon ICON_PREFERENCES = new ImageIcon(PREFERENCES);
92    public static final Icon ICON_DOCK = new ImageIcon(DOCK);
93    public static final URL COPY =
94      ChainsawIcons.class.getClassLoader().getResource(
95        BASE_ICON_PATH + "Copy16.gif");
96    public static final URL CUT =
97      ChainsawIcons.class.getClassLoader().getResource(
98        BASE_ICON_PATH + "Cut16.gif");
99    public static final Icon ICON_COPY = new ImageIcon(COPY);
100   public static final Icon ICON_CUT = new ImageIcon(CUT);
101   public static final Icon ICON_UNDOCK = new ImageIcon(UNDOCK);
102   public static final Icon ICON_DEBUG = new ImageIcon(DEBUG);
103   public static final URL WINDOW_ICON =
104     ChainsawIcons.class.getClassLoader().getResource(
105       BASE_ICON_PATH + "Zoom16.gif");
106   public static final URL UNDOCKED_ICON =
107     ChainsawIcons.class.getClassLoader().getResource(
108       BASE_ICON_PATH + "ZoomIn16.gif");
109   public static final ImageIcon ICON_LOG4J =
110     new ImageIcon(
111       ChainsawIcons.class.getClassLoader().getResource(
112         "org/apache/log4j/chainsaw/logo.jpg"));
113 
114   public static final URL ANIM_NET_CONNECT =
115     ChainsawIcons.class.getClassLoader().getResource(
116       BASE_ICON_PATH + "channelexplorer_satellite.gif");
117   public static final URL ANIM_RADIO_TOWER = ANIM_NET_CONNECT;
118   public static final URL ICON_ACTIVE_RECEIVER =
119     ChainsawIcons.class.getClassLoader().getResource(
120       BASE_ICON_PATH + "Play16.gif");
121   public static final URL ICON_HOME =
122     ChainsawIcons.class.getClassLoader().getResource(
123       BASE_ICON_PATH + "Home16.gif");
124   public static final URL ICON_BACK =
125     ChainsawIcons.class.getClassLoader().getResource(
126       BASE_ICON_PATH + "Back16.gif");
127   public static final URL ICON_RESTART =
128     ChainsawIcons.class.getClassLoader().getResource(
129       BASE_ICON_PATH + "Redo16.gif");
130   public static final URL ICON_RESTART_ALL = 
131     ChainsawIcons.class.getClassLoader().getResource(
132     	      BASE_ICON_PATH + "Refresh16.gif");
133 
134   
135   public static final URL ICON_STOP_RECEIVER =
136     ChainsawIcons.class.getClassLoader().getResource(
137       BASE_ICON_PATH + "Stop16.gif");
138   public static final URL ICON_NEW_RECEIVER =
139     ChainsawIcons.class.getClassLoader().getResource(
140       BASE_ICON_PATH + "New16.gif");
141   public static final URL ICON_EDIT_RECEIVER =
142     ChainsawIcons.class.getClassLoader().getResource(
143       BASE_ICON_PATH + "Edit16.gif");
144   public static final URL ICON_RESUME_RECEIVER = ICON_ACTIVE_RECEIVER;
145   public static final URL ICON_INACTIVE_RECEIVER = PAUSE;
146   public static final URL ICON_COLLAPSE =
147     ChainsawIcons.class.getClassLoader().getResource(
148       BASE_ICON_PATH + "ZoomOut16.gif");
149 
150   public static final ImageIcon FOCUS_ON_ICON = new ImageIcon(ChainsawIcons.class.getClassLoader().getResource(
151       BASE_ICON_PATH + "ZoomIn24.gif"));
152   public static final ImageIcon IGNORE_ICON = new ImageIcon(ChainsawIcons.class.getClassLoader().getResource(
153       BASE_ICON_PATH + "ZoomOut24.gif"));  
154   
155   
156   public static final URL SERVER =
157     ChainsawIcons.class.getClassLoader().getResource(
158       BASE_ICON_PATH + "Server16.gif");
159   
160   public static final ImageIcon ICON_SERVER =  new ImageIcon(SERVER);
161   
162   private ChainsawIcons() {
163   }
164 }