| java.lang.Object org.geotools.gui.swing.IconFactory
IconFactory | final public class IconFactory (Code) | | A factory for
Icon . This class caches some of the created icons. This factory should be
used only for small icons, since they may be cached for the JVM lifetime. This class is used
especially for Java look and
feel Graphics Repository. This class is thread safe.
since: 2.3 version: $Id: IconFactory.java 20883 2006-08-07 13:48:09Z jgarnett $ author: Martin Desruisseaux |
Method Summary | |
public JButton | getButton(String path, String description, String fallback) Returns a button with the specified image. | public synchronized Icon | getIcon(String path) Returns the icon for the specified name, or
null if none. | public Icon | getIcon(String path, String description) Returns an icon for the specified name and description, or
null if none.
Parameters: path - The icon path, relative to the application classpath. Parameters: description - brief textual description of the image, or null if none. |
getButton | public JButton getButton(String path, String description, String fallback)(Code) | | Returns a button with the specified image.
Parameters: path - The icon path, relative to the application classpath. Parameters: description - brief textual description of the image, or null if none. Parameters: fallback - A text to put in the button if the image were not found. |
getIcon | public synchronized Icon getIcon(String path)(Code) | | Returns the icon for the specified name, or
null if none. If this method has
already been invoked for the specified path, then the previously created icon is returned.
Parameters: path - The icon path, relative to the application classpath. The icon, or null if no image was found for the specified path. |
getIcon | public Icon getIcon(String path, String description)(Code) | | Returns an icon for the specified name and description, or
null if none.
Parameters: path - The icon path, relative to the application classpath. Parameters: description - brief textual description of the image, or null if none. The icon, or null if no image was found for the specified path. |
|
|