public static ImageIcon getImageIcon(String name) { if (name != null) return IconsFactory.getImageIcon(TreeIconsFactory.class, name); else return null; }
public static ImageIcon getImageIcon(String name) { if (name != null) return IconsFactory.getImageIcon(SearchableBarIconsFactory.class, name); else return null; }
public static ImageIcon getImageIcon(String name) { if (name != null) return IconsFactory.getImageIcon(OverlayableIconsFactory.class, name); else return null; }
public static ImageIcon getImageIcon(String name) { if (name != null) return IconsFactory.getImageIcon(BasicFolderChooserIconsFactory.class, name); else return null; }
public static ImageIcon getImageIcon(String name) { if (name != null) return IconsFactory.getImageIcon(JideIconsFactory.class, name); else return null; }
/** * Gets a disabled version of ImageIcon by passing class and a relative image file path. * * @param clazz the Class<?> * @param fileName relative file name * @return the ImageIcon */ public static ImageIcon getDisabledImageIcon(Class<?> clazz, String fileName) { String id = clazz.getName() + ":" + fileName; ImageIcon saved = _disableIcons.get(id); if (saved != null) return saved; else { ImageIcon icon = createGrayImage(getImageIcon(clazz, fileName)); _disableIcons.put(id, icon); return icon; } }
/** * Gets a brighter ImageIcon by passing class, a relative image file path and a percentage of brightness. * * @param clazz the Class<?> * @param fileName relative file name * @param percent percentage of brightness * @return the ImageIcon */ public static ImageIcon getBrighterImageIcon(Class<?> clazz, String fileName, int percent) { String id = clazz.getName() + ":" + fileName + ":" + percent; ImageIcon saved = _brighterIcons.get(id); if (saved != null) return saved; else { ImageIcon icon = createBrighterImage(getImageIcon(clazz, fileName), percent); _brighterIcons.put(id, icon); return icon; } }
/** * Gets a brighter ImageIcon by passing class and a relative image file path. * * @param clazz the Class<?> * @param fileName relative file name * @return the ImageIcon */ public static ImageIcon getBrighterImageIcon(Class<?> clazz, String fileName) { String id = clazz.getName() + ":" + fileName + ":" + ColorFilter.getPercent(); ImageIcon saved = _brighterIcons.get(id); if (saved != null) return saved; else { ImageIcon icon = createBrighterImage(getImageIcon(clazz, fileName)); _brighterIcons.put(id, icon); return icon; } }
/** * Gets a tinted ImageIcon by passing class, a relative image file path and a color. * * @param clazz the Class<?> * @param fileName relative file name * @param color the color * @return the ImageIcon */ public static ImageIcon getTintedImageIcon(Class<?> clazz, String fileName, Color color) { String id = clazz.getName() + ":" + fileName + ":" + color.toString(); ImageIcon saved = _tintedIcons.get(id); if (saved != null) return saved; else { ImageIcon icon = createTintedImage(getImageIcon(clazz, fileName), color); _tintedIcons.put(id, icon); return icon; } }
public void paintMenuItemBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state, boolean showBorder) { if (c.getClientProperty(IS_MENU_PART_BUTTON) == Boolean.TRUE) { paintButtonBackground(c, g, rect, orientation, state, showBorder); } else { JideSwingUtilities.drawImageBorder(g, IconsFactory.getImageIcon(Office2007Painter.class, "icons/menu_item_bg.png"), rect, new Insets(2, 2, 2, 2), true); } }
/** * Gets the ImageIcon. * * @param iconName the icon name as defined in IconSet. * @param size the icon size. If the size is not available, it will find the closest size that is larger than * the requested size. * * @return the ImageIcon. */ public ImageIcon getImageIcon(String iconName, int size) { String packageName = _activeIconSet.getPackageName(); int actualSize = _activeIconSet.getNextAvailableSize(size); String fullIconName = packageName + "/png/" + actualSize + "x" + actualSize + "/" + iconName; ImageIcon icon = IconsFactory.getImageIcon(IconSetManager.class, fullIconName); if (actualSize == size) { return icon; } else { return IconsFactory.getScaledImage(null, icon, size, size); } }
"MenuItem.checkIcon", new MenuCheckIcon(IconsFactory.getImageIcon(Office2007Painter.class, "icons/menu_checkbox.png")), "MenuItem.shadowColor", new ColorUIResource(0xE9EEEE), ImageIcon collapsiblePaneImage = IconsFactory.getImageIcon(Office2007WindowsUtils.class, "icons/collapsible_pane_vista.gif"); // 12 x 12 x 2 final int collapsiblePaneSize = 12; ImageIcon titleButtonImage = IconsFactory.getImageIcon(Office2007WindowsUtils.class, "icons/title_buttons_office2007.gif"); // 10 x 10 x 8 final int titleButtonSize = 10;
"Cursor.dragTextStop", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.NODROP_TEXT), "Cursor.percentage", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.PERCENTAGE), "Cursor.moveEast", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.MOVE_EAST), "Cursor.moveWest", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.MOVE_WEST), }; table.putDefaults(uiDefaults); ImageIcon titleButtonImage = IconsFactory.getImageIcon(EclipseMetalUtils.class, "icons/title_buttons_eclipse.gif"); // 16 x 16 x 8 final int titleButtonSize = 16; ImageIcon collapsiblePaneImage = IconsFactory.getImageIcon(EclipseMetalUtils.class, "icons/collapsible_pane_eclipse.gif"); // 11 x 11 x 2 final int collapsiblePaneSize = 11;
"Cursor.percentage", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.PERCENTAGE), "Cursor.moveEast", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.MOVE_EAST), "Cursor.moveWest", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.MOVE_WEST), }; table.putDefaults(uiDefaults); ImageIcon titleButtonImage = IconsFactory.getImageIcon(VsnetMetalUtils.class, "icons/title_buttons_metal.gif"); // 16 x 16 final int titleButtonSize = 16; ImageIcon collapsiblePaneImage = IconsFactory.getImageIcon(VsnetMetalUtils.class, "icons/collapsible_pane_metal.gif"); // 12 x 12 x 2 final int collapsiblePaneSize = 12;
final int SIZE = 20; final int MASK_SIZE = 11; ImageIcon collapsiblePaneImage = IconsFactory.getImageIcon(Office2003WindowsUtils.class, "icons/collapsible_pane_" + prefix + ".png"); // 20 x 20 ImageIcon collapsiblePaneMask = IconsFactory.getImageIcon(Office2003WindowsUtils.class, "icons/collapsible_pane_mask.png"); // 11 x 11 ImageIcon normalIcon = IconsFactory.getIcon(null, collapsiblePaneImage, 0, 0, SIZE, SIZE); ImageIcon emphasizedIcon = IconsFactory.getIcon(null, collapsiblePaneImage, SIZE, 0, SIZE, SIZE);
ImageIcon collapsiblePaneImage = IconsFactory.getImageIcon(AquaJideUtils.class, "icons/collapsible_pane_aqua.gif"); // 12 x 12 x 2 final int collapsiblePaneSize = 12;
ImageIcon titleButtonImage = IconsFactory.getImageIcon(XertoWindowsUtils.class, "icons/title_buttons_xerto.gif"); // 10 x 10 x 8 final int titleButtonSize = 10; final int SIZE = 12; final int MASK_SIZE = 12; ImageIcon collapsiblePaneImage = IconsFactory.getImageIcon(XertoMetalUtils.class, "icons/collapsible_pane_xerto.png"); // 12 x 12 ImageIcon collapsiblePaneMask = IconsFactory.getImageIcon(XertoMetalUtils.class, "icons/collapsible_pane_mask.png"); // 12 x 12 ImageIcon normalIcon = IconsFactory.getIcon(null, collapsiblePaneImage, 0, 0, SIZE, SIZE); ImageIcon emphasizedIcon = IconsFactory.getIcon(null, collapsiblePaneImage, SIZE, 0, SIZE, SIZE);
final int SIZE = 20; final int MASK_SIZE = 11; ImageIcon collapsiblePaneImage = IconsFactory.getImageIcon(Office2003WindowsUtils.class, "icons/collapsible_pane_default.png"); // 20 x 20 ImageIcon collapsiblePaneMask = IconsFactory.getImageIcon(Office2003WindowsUtils.class, "icons/collapsible_pane_mask.png"); // 11 x 11 ImageIcon normalIcon = IconsFactory.getIcon(null, collapsiblePaneImage, 0, 0, SIZE, SIZE); ImageIcon emphasizedIcon = IconsFactory.getIcon(null, collapsiblePaneImage, SIZE, 0, SIZE, SIZE);
ImageIcon titleButtonImage = IconsFactory.getImageIcon(Eclipse3xWindowsUtils.class, "icons/title_buttons_eclipse.gif"); // 16 x 16 x 8 final int titleButtonSize = 16; ImageIcon collapsiblePaneImage = IconsFactory.getImageIcon(Eclipse3xWindowsUtils.class, "icons/collapsible_pane_eclipse.gif"); // 11 x 11 x 2 final int collapsiblePaneSize = 11;
ImageIcon titleButtonImage = IconsFactory.getImageIcon(VsnetWindowsUtils.class, "icons/title_buttons_windows.gif"); // 10 x 10 x 8 final int titleButtonSize = 10; ImageIcon collapsiblePaneImage = IconsFactory.getImageIcon(VsnetWindowsUtils.class, "icons/collapsible_pane_windows.gif"); // 12 x 12 x 2 final int collapsiblePaneSize = 12;