]> gitweb.fperrin.net Git - GpsPrune.git/blob - tim/prune/gui/IconManager.java
Version 14, October 2012
[GpsPrune.git] / tim / prune / gui / IconManager.java
1 package tim.prune.gui;
2
3 import javax.swing.ImageIcon;
4
5 /**
6  * Class to manage the loading of icons
7  * for toolbars and map buttons
8  */
9 public abstract class IconManager
10 {
11
12         /** Icon for window */
13         public static final String WINDOW_ICON = "window_icon.png";
14
15         /** Icon for scalebar button on main map display */
16         public static final String SCALEBAR_BUTTON = "scalebar.gif";
17         /** Icon for map button on main map display when selected */
18         public static final String SCALEBAR_BUTTON_ON = "scalebar_on.gif";
19         /** Icon for map button on main map display */
20         public static final String MAP_BUTTON = "map_icon.gif";
21         /** Icon for map button on main map display when selected */
22         public static final String MAP_BUTTON_ON = "map_icon_on.gif";
23         /** Icon for autopan button on main map display */
24         public static final String AUTOPAN_BUTTON = "autopan.gif";
25         /** Icon for autopan button on main map display when selected */
26         public static final String AUTOPAN_BUTTON_ON = "autopan_on.gif";
27         /** Icon for points connected icon on main map display */
28         public static final String POINTS_CONNECTED_BUTTON = "points_connected.gif";
29         /** Icon for points disconnected icon on main map display */
30         public static final String POINTS_DISCONNECTED_BUTTON = "points_disconnected.gif";
31          /** Icon for edit mode button on main map display when not selected */
32         public static final String EDIT_MODE_BUTTON = "drag_points_icon.gif";
33          /** Icon for edit mode button on main map display when selected */
34         public static final String EDIT_MODE_BUTTON_ON = "drag_points_icon_on.gif";
35         /** Icon for zoom in button on main map display */
36         public static final String ZOOM_IN_BUTTON = "zoom_in.gif";
37         /** Icon for zoom out button on main map display */
38         public static final String ZOOM_OUT_BUTTON = "zoom_out.gif";
39
40         /** Icon for open file */
41         public static final String OPEN_FILE = "add_textfile_icon.png";
42         /** Icon for add photo */
43         public static final String ADD_PHOTO = "add_photo_icon.png";
44         /** Icon for save */
45         public static final String SAVE_FILE = "save_icon.gif";
46         /** Icon for undo */
47         public static final String UNDO = "undo_icon.gif";
48         /** Icon for edit point */
49         public static final String EDIT_POINT = "edit_point_icon.gif";
50         /** Icon for delete point */
51         public static final String DELETE_POINT = "delete_point_icon.gif";
52         /** Icon for delete range */
53         public static final String DELETE_RANGE = "delete_range_icon.gif";
54         /** Icon for set range start */
55         public static final String SET_RANGE_START = "set_start_icon.png";
56         /** Icon for set range end */
57         public static final String SET_RANGE_END = "set_end_icon.png";
58         /** Icon for connect point to photo */
59         public static final String CONNECT_PHOTO = "link.gif";
60         /** Icon for cut range and move */
61         public static final String CUT_AND_MOVE = "cut_and_move.gif";
62
63         /** Icon for rotating photos leftwards */
64         public static final String ROTATE_LEFT = "rotate_left_icon.png";
65         /** Icon for rotating photos rightwards */
66         public static final String ROTATE_RIGHT = "rotate_right_icon.png";
67         /** Icon for showing photo popup */
68         public static final String SHOW_DETAILS = "show_details_icon.gif";
69         /** Icon for playing audio clip */
70         public static final String PLAY_AUDIO = "play_audio.gif";
71         /** Icon for stopping the current audio clip */
72         public static final String STOP_AUDIO = "stop_audio.gif";
73
74         /**
75          * Get the specified image
76          * @param inFilename filename of image (using constants)
77          * @return ImageIcon object containing image
78          */
79         public static ImageIcon getImageIcon(String inFilename)
80         {
81                 return new ImageIcon(IconManager.class.getResource("images/" + inFilename));
82         }
83 }