public class

MetalIconFactory

extends Object
implements Serializable
java.lang.Object
   ↳ javax.swing.plaf.metal.MetalIconFactory

Class Overview

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 XMLEncoder.

Summary

Nested Classes
class MetalIconFactory.FileIcon16

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

class MetalIconFactory.FolderIcon16

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

class MetalIconFactory.PaletteCloseIcon Defines an icon for Palette close 
class MetalIconFactory.TreeControlIcon

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

class MetalIconFactory.TreeFolderIcon

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

class MetalIconFactory.TreeLeafIcon  
Constants
boolean DARK
boolean LIGHT
Public Constructors
MetalIconFactory()
Public Methods
static Icon getCheckBoxIcon()
Returns a checkbox icon.
static Icon getCheckBoxMenuItemIcon()
static Icon getFileChooserDetailViewIcon()
static Icon getFileChooserHomeFolderIcon()
static Icon getFileChooserListViewIcon()
static Icon getFileChooserNewFolderIcon()
static Icon getFileChooserUpFolderIcon()
static Icon getHorizontalSliderThumbIcon()
static Icon getInternalFrameAltMaximizeIcon(int size)
static Icon getInternalFrameCloseIcon(int size)
static Icon getInternalFrameDefaultMenuIcon()
static Icon getInternalFrameMaximizeIcon(int size)
static Icon getInternalFrameMinimizeIcon(int size)
static Icon getMenuArrowIcon()
static Icon getMenuItemArrowIcon()
static Icon getMenuItemCheckIcon()
Returns an icon to be used by JCheckBoxMenuItem.
static Icon getRadioButtonIcon()
static Icon getRadioButtonMenuItemIcon()
static Icon getTreeComputerIcon()
static Icon getTreeControlIcon(boolean isCollapsed)
static Icon getTreeFloppyDriveIcon()
static Icon getTreeFolderIcon()
static Icon getTreeHardDriveIcon()
static Icon getTreeLeafIcon()
static Icon getVerticalSliderThumbIcon()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final boolean DARK

Constant Value: false

public static final boolean LIGHT

Constant Value: true

Public Constructors

public MetalIconFactory ()

Public Methods

public static Icon getCheckBoxIcon ()

Returns a checkbox icon.

public static Icon getCheckBoxMenuItemIcon ()

public static Icon getFileChooserDetailViewIcon ()

public static Icon getFileChooserHomeFolderIcon ()

public static Icon getFileChooserListViewIcon ()

public static Icon getFileChooserNewFolderIcon ()

public static Icon getFileChooserUpFolderIcon ()

public static Icon getHorizontalSliderThumbIcon ()

public static Icon getInternalFrameAltMaximizeIcon (int size)

public static Icon getInternalFrameCloseIcon (int size)

public static Icon getInternalFrameDefaultMenuIcon ()

public static Icon getInternalFrameMaximizeIcon (int size)

public static Icon getInternalFrameMinimizeIcon (int size)

public static Icon getMenuArrowIcon ()

public static Icon getMenuItemArrowIcon ()

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

public static Icon getRadioButtonIcon ()

public static Icon getRadioButtonMenuItemIcon ()

public static Icon getTreeComputerIcon ()

public static Icon getTreeControlIcon (boolean isCollapsed)

public static Icon getTreeFloppyDriveIcon ()

public static Icon getTreeFolderIcon ()

public static Icon getTreeHardDriveIcon ()

public static Icon getTreeLeafIcon ()

public static Icon getVerticalSliderThumbIcon ()