- java.lang.Object
- 
- javax.swing.plaf.metal.MetalIconFactory
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class MetalIconFactory extends Object implements Serializable Factory object that vendsIcons for the Java™ 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 Iconornull, wherenullimplies 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 JavaBeans™ has been added to the java.beanspackage. Please seeXMLEncoder.- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classMetalIconFactory.FileIcon16Warning: Serialized objects of this class will not be compatible with future Swing releases.static classMetalIconFactory.FolderIcon16Warning: Serialized objects of this class will not be compatible with future Swing releases.static classMetalIconFactory.PaletteCloseIconDefines an icon for Palette closestatic classMetalIconFactory.TreeControlIconWarning: Serialized objects of this class will not be compatible with future Swing releases.static classMetalIconFactory.TreeFolderIconWarning: Serialized objects of this class will not be compatible with future Swing releases.static classMetalIconFactory.TreeLeafIconThe class represents a tree leaf icon.
 - 
Constructor SummaryConstructors Constructor Description MetalIconFactory()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static IcongetCheckBoxIcon()Returns a checkbox icon.static IcongetCheckBoxMenuItemIcon()Returns an icon to be used byJCheckBoxMenuItem.static IcongetFileChooserDetailViewIcon()Returns the instance ofFileChooserDetailViewIcon.static IcongetFileChooserHomeFolderIcon()Returns the instance ofFileChooserHomeFolderIcon.static IcongetFileChooserListViewIcon()Returns the instance ofFileChooserListViewIcon.static IcongetFileChooserNewFolderIcon()Returns the instance ofFileChooserNewFolderIcon.static IcongetFileChooserUpFolderIcon()Returns the instance ofFileChooserUpFolderIcon.static IcongetHorizontalSliderThumbIcon()Returns a thumb icon to be used by horizontal slider.static IcongetInternalFrameAltMaximizeIcon(int size)Constructs a new instance ofInternalFrameAltMaximizeIcon.static IcongetInternalFrameCloseIcon(int size)Constructs a new instance ofInternalFrameCloseIcon.static IcongetInternalFrameDefaultMenuIcon()Returns the instance ofInternalFrameDefaultMenuIcon.static IcongetInternalFrameMaximizeIcon(int size)Constructs a new instance ofInternalFrameMaximizeIcon.static IcongetInternalFrameMinimizeIcon(int size)Constructs a new instance ofInternalFrameMinimizeIcon.static IcongetMenuArrowIcon()Returns an icon to be used byJMenu.static IcongetMenuItemArrowIcon()Returns an icon to be used byJMenuItem.static IcongetMenuItemCheckIcon()Returns an icon to be used byJCheckBoxMenuItem.static IcongetRadioButtonIcon()Returns the instance ofRadioButtonIcon.static IcongetRadioButtonMenuItemIcon()Returns an icon to be used byJRadioButtonMenuItem.static IcongetTreeComputerIcon()Returns the instance ofTreeComputerIcon.static IcongetTreeControlIcon(boolean isCollapsed)Constructs a new instance ofTreeControlIcon.static IcongetTreeFloppyDriveIcon()Returns the instance ofTreeFloppyDriveIcon.static IcongetTreeFolderIcon()Constructs a new instance ofTreeFolderIcon.static IcongetTreeHardDriveIcon()Returns the instance ofTreeHardDriveIcon.static IcongetTreeLeafIcon()Constructs a new instance ofTreeLeafIcon.static IcongetVerticalSliderThumbIcon()Returns a thumb icon to be used by vertical slider.
 
- 
- 
- 
Field Detail- 
DARKpublic static final boolean DARK DARKis used for the propertyTree.expandedIcon.- See Also:
- Constant Field Values
 
 - 
LIGHTpublic static final boolean LIGHT LIGHTis used for the propertyTree.collapsedIcon.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getFileChooserDetailViewIconpublic static Icon getFileChooserDetailViewIcon() Returns the instance ofFileChooserDetailViewIcon.- Returns:
- the instance of FileChooserDetailViewIcon
 
 - 
getFileChooserHomeFolderIconpublic static Icon getFileChooserHomeFolderIcon() Returns the instance ofFileChooserHomeFolderIcon.- Returns:
- the instance of FileChooserHomeFolderIcon
 
 - 
getFileChooserListViewIconpublic static Icon getFileChooserListViewIcon() Returns the instance ofFileChooserListViewIcon.- Returns:
- the instance of FileChooserListViewIcon
 
 - 
getFileChooserNewFolderIconpublic static Icon getFileChooserNewFolderIcon() Returns the instance ofFileChooserNewFolderIcon.- Returns:
- the instance of FileChooserNewFolderIcon
 
 - 
getFileChooserUpFolderIconpublic static Icon getFileChooserUpFolderIcon() Returns the instance ofFileChooserUpFolderIcon.- Returns:
- the instance of FileChooserUpFolderIcon
 
 - 
getInternalFrameAltMaximizeIconpublic static Icon getInternalFrameAltMaximizeIcon(int size) Constructs a new instance ofInternalFrameAltMaximizeIcon.- Parameters:
- size- the size of the icon
- Returns:
- a new instance of InternalFrameAltMaximizeIcon
 
 - 
getInternalFrameCloseIconpublic static Icon getInternalFrameCloseIcon(int size) Constructs a new instance ofInternalFrameCloseIcon.- Parameters:
- size- the size of the icon
- Returns:
- a new instance of InternalFrameCloseIcon
 
 - 
getInternalFrameDefaultMenuIconpublic static Icon getInternalFrameDefaultMenuIcon() Returns the instance ofInternalFrameDefaultMenuIcon.- Returns:
- the instance of InternalFrameDefaultMenuIcon
 
 - 
getInternalFrameMaximizeIconpublic static Icon getInternalFrameMaximizeIcon(int size) Constructs a new instance ofInternalFrameMaximizeIcon.- Parameters:
- size- the size of the icon
- Returns:
- a new instance of InternalFrameMaximizeIcon
 
 - 
getInternalFrameMinimizeIconpublic static Icon getInternalFrameMinimizeIcon(int size) Constructs a new instance ofInternalFrameMinimizeIcon.- Parameters:
- size- the size of the icon
- Returns:
- a new instance of InternalFrameMinimizeIcon
 
 - 
getRadioButtonIconpublic static Icon getRadioButtonIcon() Returns the instance ofRadioButtonIcon.- Returns:
- the instance of RadioButtonIcon
 
 - 
getCheckBoxIconpublic static Icon getCheckBoxIcon() Returns a checkbox icon.- Returns:
- a checkbox icon
- Since:
- 1.3
 
 - 
getTreeComputerIconpublic static Icon getTreeComputerIcon() Returns the instance ofTreeComputerIcon.- Returns:
- the instance of TreeComputerIcon
 
 - 
getTreeFloppyDriveIconpublic static Icon getTreeFloppyDriveIcon() Returns the instance ofTreeFloppyDriveIcon.- Returns:
- the instance of TreeFloppyDriveIcon
 
 - 
getTreeFolderIconpublic static Icon getTreeFolderIcon() Constructs a new instance ofTreeFolderIcon.- Returns:
- a new instance of TreeFolderIcon
 
 - 
getTreeHardDriveIconpublic static Icon getTreeHardDriveIcon() Returns the instance ofTreeHardDriveIcon.- Returns:
- the instance of TreeHardDriveIcon
 
 - 
getTreeLeafIconpublic static Icon getTreeLeafIcon() Constructs a new instance ofTreeLeafIcon.- Returns:
- a new instance of TreeLeafIcon
 
 - 
getTreeControlIconpublic static Icon getTreeControlIcon(boolean isCollapsed) Constructs a new instance ofTreeControlIcon.- Parameters:
- isCollapsed- if- truethe icon is collapsed
- Returns:
- a new instance of TreeControlIcon
 
 - 
getMenuArrowIconpublic static Icon getMenuArrowIcon() Returns an icon to be used byJMenu.- Returns:
- an icon to be used by JMenu
 
 - 
getMenuItemCheckIconpublic static Icon getMenuItemCheckIcon() Returns an icon to be used byJCheckBoxMenuItem.- Returns:
- the default icon for check box menu items,
         or nullif no default exists
 
 - 
getMenuItemArrowIconpublic static Icon getMenuItemArrowIcon() Returns an icon to be used byJMenuItem.- Returns:
- an icon to be used by JMenuItem
 
 - 
getCheckBoxMenuItemIconpublic static Icon getCheckBoxMenuItemIcon() Returns an icon to be used byJCheckBoxMenuItem.- Returns:
- an icon to be used by JCheckBoxMenuItem
 
 - 
getRadioButtonMenuItemIconpublic static Icon getRadioButtonMenuItemIcon() Returns an icon to be used byJRadioButtonMenuItem.- Returns:
- an icon to be used by JRadioButtonMenuItem
 
 - 
getHorizontalSliderThumbIconpublic static Icon getHorizontalSliderThumbIcon() Returns a thumb icon to be used by horizontal slider.- Returns:
- a thumb icon to be used by horizontal slider
 
 - 
getVerticalSliderThumbIconpublic static Icon getVerticalSliderThumbIcon() Returns a thumb icon to be used by vertical slider.- Returns:
- a thumb icon to be used by vertical slider
 
 
- 
 
-