This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing.plaf.metal
class MetalIconFactory

java.lang.Object extended by javax.swing.plaf.metal.MetalIconFactory
All Implemented Interfaces:
Serializable

public class MetalIconFactory
extends Object
implements Serializable

Factory object that vends Icons for the JavaTM look and feel (Metal). These icons are used extensively in Metal via the defaults mechanism. While other look and feels often use GIFs for icons, creating icons in code facilitates switching to other themes.

Each method in this class returns either an Icon or null, where null implies that there is no default icon.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see {@link java.beans.XMLEncoder}.


Nested Class Summary
static class

           Warning: Serialized objects of this class will not be compatible with future Swing releases.
static class

           Warning: Serialized objects of this class will not be compatible with future Swing releases.
static class

           Defines an icon for Palette close
static class

           Warning: Serialized objects of this class will not be compatible with future Swing releases.
static class

           Warning: Serialized objects of this class will not be compatible with future Swing releases.
static class

          
 
Field Summary
static boolean DARK
          
static boolean LIGHT
          
 
Constructor Summary

          
 
Method Summary
static Icon

          Returns a checkbox icon.
static Icon

          
static Icon

          
static Icon

          
static Icon

          
static Icon

          
static Icon

          
static Icon

          
static Icon

          
static Icon

          
static Icon

          
static Icon

          
static Icon

          
static Icon

          
static Icon

          
static Icon

          Returns an icon to be used by JCheckBoxMenuItem.
static Icon

          
static Icon

          
static Icon

          
static Icon
getTreeControlIcon(boolean isCollapsed)

          
static Icon

          
static Icon

          
static Icon

          
static Icon

          
static Icon

          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DARK

public static final boolean DARK

LIGHT

public static final boolean LIGHT
Constructor Detail

MetalIconFactory

public MetalIconFactory()
Method Detail

getCheckBoxIcon

public static Icon getCheckBoxIcon()
Returns a checkbox icon.


getCheckBoxMenuItemIcon

public static Icon getCheckBoxMenuItemIcon()

getFileChooserDetailViewIcon

public static Icon getFileChooserDetailViewIcon()

getFileChooserHomeFolderIcon

public static Icon getFileChooserHomeFolderIcon()

getFileChooserListViewIcon

public static Icon getFileChooserListViewIcon()

getFileChooserNewFolderIcon

public static Icon getFileChooserNewFolderIcon()

getFileChooserUpFolderIcon

public static Icon getFileChooserUpFolderIcon()

getHorizontalSliderThumbIcon

public static Icon getHorizontalSliderThumbIcon()

getInternalFrameAltMaximizeIcon

public static Icon getInternalFrameAltMaximizeIcon(int size)
Parameters:
size

getInternalFrameCloseIcon

public static Icon getInternalFrameCloseIcon(int size)
Parameters:
size

getInternalFrameDefaultMenuIcon

public static Icon getInternalFrameDefaultMenuIcon()

getInternalFrameMaximizeIcon

public static Icon getInternalFrameMaximizeIcon(int size)
Parameters:
size

getInternalFrameMinimizeIcon

public static Icon getInternalFrameMinimizeIcon(int size)
Parameters:
size

getMenuArrowIcon

public static Icon getMenuArrowIcon()

getMenuItemArrowIcon

public static Icon getMenuItemArrowIcon()

getMenuItemCheckIcon

public static Icon getMenuItemCheckIcon()
Returns an icon to be used by JCheckBoxMenuItem.

Returns:
the default icon for check box menu items, or null if no default exists

getRadioButtonIcon

public static Icon getRadioButtonIcon()

getRadioButtonMenuItemIcon

public static Icon getRadioButtonMenuItemIcon()

getTreeComputerIcon

public static Icon getTreeComputerIcon()

getTreeControlIcon

public static Icon getTreeControlIcon(boolean isCollapsed)
Parameters:
isCollapsed

getTreeFloppyDriveIcon

public static Icon getTreeFloppyDriveIcon()

getTreeFolderIcon

public static Icon getTreeFolderIcon()

getTreeHardDriveIcon

public static Icon getTreeHardDriveIcon()

getTreeLeafIcon

public static Icon getTreeLeafIcon()

getVerticalSliderThumbIcon

public static Icon getVerticalSliderThumbIcon()


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.