FileDocCategorySizeDatePackage
GTKIconFactory.javaAPI DocJava SE 6 API12090Tue Jun 10 00:21:54 BST 2008com.sun.java.swing.plaf.gtk

GTKIconFactory

public class GTKIconFactory extends Object
version
1.32, 06/07/06

Fields Summary
private static final String
RADIO_BUTTON_ICON
private static final String
CHECK_BOX_ICON
private static final String
MENU_ARROW_ICON
private static final String
MENU_ITEM_ARROW_ICON
private static final String
CHECK_BOX_MENU_ITEM_ARROW_ICON
private static final String
CHECK_BOX_MENU_ITEM_CHECK_ICON
private static final String
RADIO_BUTTON_MENU_ITEM_ARROW_ICON
private static final String
RADIO_BUTTON_MENU_ITEM_CHECK_ICON
private static final String
TREE_EXPANDED_ICON
private static final String
TREE_COLLAPSED_ICON
private static final String
ASCENDING_SORT_ICON
private static final String
DESCENDING_SORT_ICON
private static final String
TOOL_BAR_HANDLE_ICON
private static Map
iconsPool
Constructors Summary
Methods Summary
public static javax.swing.IcongetAscendingSortIcon()

        return getIcon(ASCENDING_SORT_ICON);
    
public static javax.swing.plaf.synth.SynthIcongetCheckBoxIcon()

        return getIcon(CHECK_BOX_ICON);
    
public static javax.swing.plaf.synth.SynthIcongetCheckBoxMenuItemArrowIcon()

        return getIcon(CHECK_BOX_MENU_ITEM_ARROW_ICON);
    
public static javax.swing.plaf.synth.SynthIcongetCheckBoxMenuItemCheckIcon()

        return getIcon(CHECK_BOX_MENU_ITEM_CHECK_ICON);
    
public static javax.swing.IcongetDescendingSortIcon()

        return getIcon(DESCENDING_SORT_ICON);
    
private static com.sun.java.swing.plaf.gtk.GTKIconFactory$DelegatingIcongetIcon(java.lang.String methodName)

    
         
        DelegatingIcon result = iconsPool.get(methodName);
        if (result == null) {
            if (methodName == TREE_COLLAPSED_ICON ||
                methodName == TREE_EXPANDED_ICON)
            {
                result = new SynthExpanderIcon(methodName);
                
            } else if (methodName == TOOL_BAR_HANDLE_ICON) {
                result = new ToolBarHandleIcon();
                
            } else if (methodName == MENU_ARROW_ICON) {
                result = new MenuArrowIcon();
                
            } else {
                result = new DelegatingIcon(methodName);
            }
            iconsPool.put(methodName, result);
        }
        return result;
    
public static javax.swing.plaf.synth.SynthIcongetMenuArrowIcon()

        return getIcon(MENU_ARROW_ICON);
    
public static javax.swing.plaf.synth.SynthIcongetMenuItemArrowIcon()

        return getIcon(MENU_ITEM_ARROW_ICON);
    
public static javax.swing.plaf.synth.SynthIcongetRadioButtonIcon()

        return getIcon(RADIO_BUTTON_ICON);
    
public static javax.swing.plaf.synth.SynthIcongetRadioButtonMenuItemArrowIcon()

        return getIcon(RADIO_BUTTON_MENU_ITEM_ARROW_ICON);
    
public static javax.swing.plaf.synth.SynthIcongetRadioButtonMenuItemCheckIcon()

        return getIcon(RADIO_BUTTON_MENU_ITEM_CHECK_ICON);
    
public static javax.swing.plaf.synth.SynthIcongetToolBarHandleIcon()

        return getIcon(TOOL_BAR_HANDLE_ICON);
    
public static javax.swing.plaf.synth.SynthIcongetTreeCollapsedIcon()

        return getIcon(TREE_COLLAPSED_ICON);
    
public static javax.swing.plaf.synth.SynthIcongetTreeExpandedIcon()

        return getIcon(TREE_EXPANDED_ICON);
    
static voidresetIcons()

        synchronized (iconsPool) {
            for (DelegatingIcon di: iconsPool.values()) {
                di.resetIconDimensions();
            }
        }