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 &lt;psmith@apache.org&gt;
    20   *
    21   */
    22  package org.apache.log4j.chainsaw.icons;
    23
    24  import javax.swing.*;
    25  import java.net.URL;
    26
    27
    28  /**
    29   * @author Paul Smith &lt;psmith@apache.org&gt;
    30   */
    31  public class ChainsawIcons {
    32      private static final String BASE_ICON_PATH =
    33          "org/apache/log4j/chainsaw/icons/";
    34      public static final URL FILE_OPEN =
    35          ChainsawIcons.class.getClassLoader().getResource(
    36              BASE_ICON_PATH + "Open16.gif");
    37      public static final URL UP =
    38          ChainsawIcons.class.getClassLoader().getResource(
    39              BASE_ICON_PATH + "Up16.gif");
    40      public static final URL DOWN =
    41          ChainsawIcons.class.getClassLoader().getResource(
    42              BASE_ICON_PATH + "Down16.gif");
    43      public static final URL FILE_SAVE_AS =
    44          ChainsawIcons.class.getClassLoader().getResource(
    45              BASE_ICON_PATH + "SaveAs16.gif");
    46      public static final URL PAUSE =
    47          ChainsawIcons.class.getClassLoader().getResource(
    48              BASE_ICON_PATH + "Pause16.gif");
    49      public static final URL REFRESH =
    50          ChainsawIcons.class.getClassLoader().getResource(
    51              BASE_ICON_PATH + "Refresh16.gif");
    52      public static final URL DELETE =
    53          ChainsawIcons.class.getClassLoader().getResource(
    54              BASE_ICON_PATH + "Delete16.gif");
    55      public static final URL INFO =
    56          ChainsawIcons.class.getClassLoader().getResource(
    57              BASE_ICON_PATH + "Information16.gif");
    58      public static final URL FIND =
    59          ChainsawIcons.class.getClassLoader().getResource(
    60              BASE_ICON_PATH + "Find16.gif");
    61      public static final URL ABOUT =
    62          ChainsawIcons.class.getClassLoader().getResource(
    63              BASE_ICON_PATH + "About16.gif");
    64      public static final URL SCROLL_TO_BOTTOM =
    65          ChainsawIcons.class.getClassLoader().getResource(
    66              BASE_ICON_PATH + "RowInsertAfter16.gif");
    67      public static final URL TOOL_TIP =
    68          ChainsawIcons.class.getClassLoader().getResource(
    69              BASE_ICON_PATH + "TipOfTheDay16.gif");
    70      public static final URL UNDOCK =
    71          ChainsawIcons.class.getClassLoader().getResource(
    72              BASE_ICON_PATH + "Export16.gif");
    73      public static final URL DOCK =
    74          ChainsawIcons.class.getClassLoader().getResource(
    75              BASE_ICON_PATH + "Import16.gif");
    76      public static final URL PREFERENCES =
    77          ChainsawIcons.class.getClassLoader().getResource(
    78              BASE_ICON_PATH + "Preferences16.gif");
    79      public static final URL DEBUG =
    80          ChainsawIcons.class.getClassLoader().getResource(
    81              BASE_ICON_PATH + "Bean16.gif");
    82      public static final URL HELP =
    83          ChainsawIcons.class.getClassLoader().getResource(
    84              BASE_ICON_PATH + "Help16.gif");
    85      public static final Icon ICON_UP = new ImageIcon(UP);
    86      public static final Icon ICON_DOWN = new ImageIcon(DOWN);
    87      public static final Icon ICON_HELP = new ImageIcon(HELP);
    88      public static final Icon ICON_PREFERENCES = new ImageIcon(PREFERENCES);
    89      public static final Icon ICON_DOCK = new ImageIcon(DOCK);
    90      public static final URL COPY =
    91          ChainsawIcons.class.getClassLoader().getResource(
    92              BASE_ICON_PATH + "Copy16.gif");
    93      public static final URL CUT =
    94          ChainsawIcons.class.getClassLoader().getResource(
    95              BASE_ICON_PATH + "Cut16.gif");
    96      public static final Icon ICON_COPY = new ImageIcon(COPY);
    97      public static final Icon ICON_CUT = new ImageIcon(CUT);
    98      public static final Icon ICON_UNDOCK = new ImageIcon(UNDOCK);
    99      public static final Icon ICON_DEBUG = new ImageIcon(DEBUG);
    100     public static final URL WINDOW_ICON =
    101         ChainsawIcons.class.getClassLoader().getResource(
    102             BASE_ICON_PATH + "Zoom16.gif");
    103     public static final URL UNDOCKED_ICON =
    104         ChainsawIcons.class.getClassLoader().getResource(
    105             BASE_ICON_PATH + "ZoomIn16.gif");
    106     public static final ImageIcon ICON_LOG4J =
    107         new ImageIcon(
    108             ChainsawIcons.class.getClassLoader().getResource(
    109                 "org/apache/log4j/chainsaw/logo.jpg"));
    110
    111     public static final URL ANIM_NET_CONNECT =
    112         ChainsawIcons.class.getClassLoader().getResource(
    113             BASE_ICON_PATH + "channelexplorer_satellite.gif");
    114     public static final URL ANIM_RADIO_TOWER = ANIM_NET_CONNECT;
    115     public static final URL ICON_ACTIVE_RECEIVER =
    116         ChainsawIcons.class.getClassLoader().getResource(
    117             BASE_ICON_PATH + "Play16.gif");
    118     public static final URL ICON_HOME =
    119         ChainsawIcons.class.getClassLoader().getResource(
    120             BASE_ICON_PATH + "Home16.gif");
    121     public static final URL ICON_BACK =
    122         ChainsawIcons.class.getClassLoader().getResource(
    123             BASE_ICON_PATH + "Back16.gif");
    124     public static final URL ICON_RESTART =
    125         ChainsawIcons.class.getClassLoader().getResource(
    126             BASE_ICON_PATH + "Redo16.gif");
    127     public static final URL ICON_RESTART_ALL =
    128         ChainsawIcons.class.getClassLoader().getResource(
    129             BASE_ICON_PATH + "Refresh16.gif");
    130
    131
    132     public static final URL ICON_STOP_RECEIVER =
    133         ChainsawIcons.class.getClassLoader().getResource(
    134             BASE_ICON_PATH + "Stop16.gif");
    135     public static final URL ICON_NEW_RECEIVER =
    136         ChainsawIcons.class.getClassLoader().getResource(
    137             BASE_ICON_PATH + "New16.gif");
    138     public static final URL ICON_EDIT_RECEIVER =
    139         ChainsawIcons.class.getClassLoader().getResource(
    140             BASE_ICON_PATH + "Edit16.gif");
    141     public static final URL ICON_RESUME_RECEIVER = ICON_ACTIVE_RECEIVER;
    142     public static final URL ICON_INACTIVE_RECEIVER = PAUSE;
    143     public static final URL ICON_COLLAPSE =
    144         ChainsawIcons.class.getClassLoader().getResource(
    145             BASE_ICON_PATH + "ZoomOut16.gif");
    146
    147     public static final ImageIcon FOCUS_ON_ICON = new ImageIcon(ChainsawIcons.class.getClassLoader().getResource(
    148         BASE_ICON_PATH + "ZoomIn24.gif"));
    149     public static final ImageIcon IGNORE_ICON = new ImageIcon(ChainsawIcons.class.getClassLoader().getResource(
    150         BASE_ICON_PATH + "ZoomOut24.gif"));
    151
    152
    153     public static final URL SERVER =
    154         ChainsawIcons.class.getClassLoader().getResource(
    155             BASE_ICON_PATH + "Server16.gif");
    156
    157     public static final ImageIcon ICON_SERVER = new ImageIcon(SERVER);
    158
    159     private ChainsawIcons() {
    160     }
    161 }