java.lang.Object
javax.swing.plaf.metal.MetalIconFactory
- All Implemented Interfaces:
- Serializable
Factory object that vends 
Icons 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 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 JavaBeans
 has been added to the java.beans package.
 Please see XMLEncoder.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classWarning: Serialized objects of this class will not be compatible with future Swing releases.static classWarning: Serialized objects of this class will not be compatible with future Swing releases.static classDefines an icon for Palette closestatic classWarning: Serialized objects of this class will not be compatible with future Swing releases.static classWarning: Serialized objects of this class will not be compatible with future Swing releases.static classThe class represents a tree leaf icon.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic IconReturns a checkbox icon.static IconReturns an icon to be used byJCheckBoxMenuItem.static IconReturns the instance ofFileChooserDetailViewIcon.static IconReturns the instance ofFileChooserHomeFolderIcon.static IconReturns the instance ofFileChooserListViewIcon.static IconReturns the instance ofFileChooserNewFolderIcon.static IconReturns the instance ofFileChooserUpFolderIcon.static IconReturns 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 IconReturns the instance ofInternalFrameDefaultMenuIcon.static IcongetInternalFrameMaximizeIcon(int size) Constructs a new instance ofInternalFrameMaximizeIcon.static IcongetInternalFrameMinimizeIcon(int size) Constructs a new instance ofInternalFrameMinimizeIcon.static IconReturns an icon to be used byJMenu.static IconReturns an icon to be used byJMenuItem.static IconReturns an icon to be used byJCheckBoxMenuItem.static IconReturns the instance ofRadioButtonIcon.static IconReturns an icon to be used byJRadioButtonMenuItem.static IconReturns the instance ofTreeComputerIcon.static IcongetTreeControlIcon(boolean isCollapsed) Constructs a new instance ofTreeControlIcon.static IconReturns the instance ofTreeFloppyDriveIcon.static IconConstructs a new instance ofTreeFolderIcon.static IconReturns the instance ofTreeHardDriveIcon.static IconConstructs a new instance ofTreeLeafIcon.static IconReturns a thumb icon to be used by vertical slider.
- 
Field Details- 
DARKpublic static final boolean DARKDARKis used for the propertyTree.expandedIcon.- See Also:
 
- 
LIGHTpublic static final boolean LIGHTLIGHTis used for the propertyTree.collapsedIcon.- See Also:
 
 
- 
- 
Constructor Details- 
MetalIconFactorypublic MetalIconFactory()Constructs aMetalIconFactory.
 
- 
- 
Method Details- 
getFileChooserDetailViewIconReturns the instance ofFileChooserDetailViewIcon.- Returns:
- the instance of FileChooserDetailViewIcon
 
- 
getFileChooserHomeFolderIconReturns the instance ofFileChooserHomeFolderIcon.- Returns:
- the instance of FileChooserHomeFolderIcon
 
- 
getFileChooserListViewIconReturns the instance ofFileChooserListViewIcon.- Returns:
- the instance of FileChooserListViewIcon
 
- 
getFileChooserNewFolderIconReturns the instance ofFileChooserNewFolderIcon.- Returns:
- the instance of FileChooserNewFolderIcon
 
- 
getFileChooserUpFolderIconReturns the instance ofFileChooserUpFolderIcon.- Returns:
- the instance of FileChooserUpFolderIcon
 
- 
getInternalFrameAltMaximizeIconConstructs a new instance ofInternalFrameAltMaximizeIcon.- Parameters:
- size- the size of the icon
- Returns:
- a new instance of InternalFrameAltMaximizeIcon
 
- 
getInternalFrameCloseIconConstructs a new instance ofInternalFrameCloseIcon.- Parameters:
- size- the size of the icon
- Returns:
- a new instance of InternalFrameCloseIcon
 
- 
getInternalFrameDefaultMenuIconReturns the instance ofInternalFrameDefaultMenuIcon.- Returns:
- the instance of InternalFrameDefaultMenuIcon
 
- 
getInternalFrameMaximizeIconConstructs a new instance ofInternalFrameMaximizeIcon.- Parameters:
- size- the size of the icon
- Returns:
- a new instance of InternalFrameMaximizeIcon
 
- 
getInternalFrameMinimizeIconConstructs a new instance ofInternalFrameMinimizeIcon.- Parameters:
- size- the size of the icon
- Returns:
- a new instance of InternalFrameMinimizeIcon
 
- 
getRadioButtonIconReturns the instance ofRadioButtonIcon.- Returns:
- the instance of RadioButtonIcon
 
- 
getCheckBoxIconReturns a checkbox icon.- Returns:
- a checkbox icon
- Since:
- 1.3
 
- 
getTreeComputerIconReturns the instance ofTreeComputerIcon.- Returns:
- the instance of TreeComputerIcon
 
- 
getTreeFloppyDriveIconReturns the instance ofTreeFloppyDriveIcon.- Returns:
- the instance of TreeFloppyDriveIcon
 
- 
getTreeFolderIconConstructs a new instance ofTreeFolderIcon.- Returns:
- a new instance of TreeFolderIcon
 
- 
getTreeHardDriveIconReturns the instance ofTreeHardDriveIcon.- Returns:
- the instance of TreeHardDriveIcon
 
- 
getTreeLeafIconConstructs a new instance ofTreeLeafIcon.- Returns:
- a new instance of TreeLeafIcon
 
- 
getTreeControlIconConstructs a new instance ofTreeControlIcon.- Parameters:
- isCollapsed- if- truethe icon is collapsed
- Returns:
- a new instance of TreeControlIcon
 
- 
getMenuArrowIconReturns an icon to be used byJMenu.- Returns:
- an icon to be used by JMenu
 
- 
getMenuItemCheckIconReturns an icon to be used byJCheckBoxMenuItem.- Returns:
- the default icon for check box menu items,
         or nullif no default exists
 
- 
getMenuItemArrowIconReturns an icon to be used byJMenuItem.- Returns:
- an icon to be used by JMenuItem
 
- 
getCheckBoxMenuItemIconReturns an icon to be used byJCheckBoxMenuItem.- Returns:
- an icon to be used by JCheckBoxMenuItem
 
- 
getRadioButtonMenuItemIconReturns an icon to be used byJRadioButtonMenuItem.- Returns:
- an icon to be used by JRadioButtonMenuItem
 
- 
getHorizontalSliderThumbIconReturns a thumb icon to be used by horizontal slider.- Returns:
- a thumb icon to be used by horizontal slider
 
- 
getVerticalSliderThumbIconReturns a thumb icon to be used by vertical slider.- Returns:
- a thumb icon to be used by vertical slider
 
 
-