1 2 23 package org.enhydra.tool.common; 24 25 import javax.swing.ImageIcon ; 27 public class IconSet { 29 private static final String DELETE_ROW_GIF = 31 "org/enhydra/tool/common/media/gallant/DeleteRow.gif"; private static final String DOWN_GIF = 33 "org/enhydra/tool/common/media/gallant/Down.gif"; private static final String ROW_GIF = 35 "org/enhydra/tool/common/media/gallant/Row.gif"; private static final String LARGE_GIF = 37 "org/enhydra/tool/common/media/lutris/largeicon.gif"; private static final String NEW_ROW_GIF = 39 "org/enhydra/tool/common/media/gallant/NewRow.gif"; private static final String WIZARD_JPG = 41 "org/enhydra/tool/common/media/lutris/otterwizard.jpg"; private static final String SMALL_GIF = 43 "org/enhydra/tool/common/media/lutris/smallicon.gif"; private static final String UP_GIF = 45 "org/enhydra/tool/common/media/gallant/Up.gif"; private static final String UNDO_GIF = 47 "org/enhydra/tool/common/media/gallant/Undo.gif"; 49 50 public IconSet() {} 51 52 public static ImageIcon getDeleteRowIcon() { 53 ImageIcon icon = null; 54 icon = new ImageIcon (ClassLoader.getSystemResource(IconSet.DELETE_ROW_GIF)); 55 return icon; 56 } 57 58 public static ImageIcon getDownIcon() { 59 ImageIcon icon = null; 60 icon = new ImageIcon (ClassLoader.getSystemResource(IconSet.DOWN_GIF)); 61 return icon; 62 } 63 64 public static ImageIcon getRowIcon() { 65 ImageIcon icon = null; 66 icon = new ImageIcon (ClassLoader.getSystemResource(IconSet.ROW_GIF)); 67 return icon; 68 } 69 70 public static ImageIcon getLargeIcon() { 71 ImageIcon icon = null; 72 icon = new ImageIcon (ClassLoader.getSystemResource(IconSet.LARGE_GIF)); 73 return icon; 74 } 75 76 public static ImageIcon getNewRowIcon() { 77 ImageIcon icon = null; 78 icon = new ImageIcon (ClassLoader.getSystemResource(IconSet.NEW_ROW_GIF)); 79 return icon; 80 } 81 82 public static ImageIcon getOtterWizard() { 83 ImageIcon icon = null; 84 icon = new ImageIcon (ClassLoader.getSystemResource(IconSet.WIZARD_JPG)); 85 return icon; 86 } 87 88 public static ImageIcon getSmallIcon() { 89 ImageIcon icon = null; 90 icon = new ImageIcon (ClassLoader.getSystemResource(IconSet.SMALL_GIF)); 91 return icon; 92 } 93 94 public static ImageIcon getUpIcon() { 95 ImageIcon icon = null; 96 icon = new ImageIcon (ClassLoader.getSystemResource(IconSet.UP_GIF)); 97 return icon; 98 } 99 100 public static ImageIcon getUndoIcon() { 101 ImageIcon icon = null; 102 icon = new ImageIcon (ClassLoader.getSystemResource(IconSet.UNDO_GIF)); 103 return icon; 104 } 105 } 106 | Popular Tags |