public static ImageIcon getImageIcon(String name) { if (name != null) return IconsFactory.getImageIcon(SearchableBarIconsFactory.class, name); else return null; }
/** * Creates a buffered image (of the specified type) from the supplied component. * * @param component the component to draw * @param bounds the area relative to the component where the image will be created. * @param imageType the type of buffered image to draw * @return an image of the component */ public static BufferedImage createImage(final Component component, Rectangle bounds, int imageType) { return createImage(component, bounds, imageType, 1); }
public static ColorFilter getInstance(boolean brighter, int percent) { if (_colorFilter == null) { _colorFilter = new ColorFilter(brighter, percent); } else { _colorFilter.setBrighter(brighter); setPercent(percent); } return _colorFilter; }
public static MaskFilter getInstance(Color oldColor, Color newColor) { if (_maskFilter == null) { _maskFilter = new MaskFilter(oldColor, newColor); } else { _maskFilter.setOldColor(oldColor); _maskFilter.setNewColor(newColor); } return _maskFilter; }
public static void main(String[] argv) { IconsFactory.generateHTML(BasicFolderChooserIconsFactory.class); }
/** * Creates a brighter image with a given percentage of brightness * * @param i the original image * @param p percentage of brightness * * @return a brighter image */ public static Image createBrighterImage(Image i, int p) { setPercent(p); return createBrighterImage(i); }
/** * Creates a darker image with a given percentage of darkness * * @param i the original image * @param p percentage of darkness * * @return a darker image. */ public static Image createDarkerImage(Image i, int p) { setPercent(p); return createDarkerImage(i); }
/** * Creates an RolloverIcon. * * @param rolloverSupport the IconRolloverSupport interface that should be implemented on a component. * @param iconType the icon type. It could be either {@link #ICON_EXPANDED} or {@link #ICON_COLLAPSED}. */ public RolloverIcon(IconRolloverSupport rolloverSupport, int iconType) { _rolloverSupport = rolloverSupport; switch (iconType) { case ICON_EXPANDED: _normalIcon = new DefaultExpandedIcon(rolloverSupport); break; case ICON_COLLAPSED: _normalIcon = new DefaultCollapsedIcon(rolloverSupport); break; } _rolloverIcon = null; }
/** * Creates an image as negative of an existing one. It will basically replace the black color with white color. */ public static Image createNegativeImage(Image i) { return createImage(i, Color.black, Color.white); }
/** * Paints the component as a PNG image to the supplied output stream * * @param c the component to capture as a PNG image * @param stream the stream to write the PNG data to */ public static void writeToStream(Component c, OutputStream stream) { writeToStream(c, "png", stream); }
/** * Gets the ImageIcon. * * @param iconName the icon name as defined in IconSet. * * @return the ImageIcon. */ public ImageIcon getImageIcon(String iconName) { return getImageIcon(iconName, 16); }
public static ImageIcon getImageIcon(String name) { if (name != null) return IconsFactory.getImageIcon(OverlayableIconsFactory.class, name); else return null; }
public static void main(String[] argv) { IconsFactory.generateHTML(JideIconsFactory.class); }
/** * Creates a buffered image of type TYPE_INT_RGB from the supplied component. * * @param component the component to draw * @return an image of the component */ public static BufferedImage createImage(Component component) { return createImage(component, BufferedImage.TYPE_INT_RGB); }
public static ImageIcon getImageIcon(String name) { if (name != null) return IconsFactory.getImageIcon(BasicFolderChooserIconsFactory.class, name); else return null; }
public static void main(String[] argv) { IconsFactory.generateHTML(SearchableBarIconsFactory.class); }
public static ImageIcon getImageIcon(String name) { if (name != null) return IconsFactory.getImageIcon(TreeIconsFactory.class, name); else return null; }
public static void main(String[] argv) { IconsFactory.generateHTML(OverlayableIconsFactory.class); }
public static ImageIcon getImageIcon(String name) { if (name != null) return IconsFactory.getImageIcon(JideIconsFactory.class, name); else return null; }