APIdia Launch Partner
Top Description Inners Fields Constructors Methods
javax.swing.plaf.metal

public Class MetalIconFactory

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Annotations
@SuppressWarnings:serial
Imports
java.awt.Color, .Component, .Dimension, .Graphics, .Graphics2D, .GraphicsConfiguration, .Image, .Polygon, .Rectangle, .Transparency, java.awt.image.BufferedImage, java.io.Serializable, java.util.Vector, javax.swing.ButtonModel, .Icon, .JButton, .JCheckBox, .JMenu, .JMenuItem, .JRadioButton, javax.swing.plaf.UIResource, sun.swing.CachedPainter

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

Author
Michael C. Albers

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class
private static class
private static class
private static class
public static class
MetalIconFactory.FileIcon16

Warning

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

public static class
MetalIconFactory.FolderIcon16

Warning

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

private static class
pack-priv static class
MetalIconFactory.ImageCacher

Utility class for caching icon images.

private static class
private static class
private static class
private static class
private static class
private static class
private static class
public static class
MetalIconFactory.PaletteCloseIcon

Defines an icon for Palette close

private static class
private static class
private static class
public static class
MetalIconFactory.TreeControlIcon

Warning

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

private static class
public static class
MetalIconFactory.TreeFolderIcon

Warning

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

private static class
public static class
MetalIconFactory.TreeLeafIcon

The class represents a tree leaf icon.

private static class

Field Summary

Modifier and TypeField and Description
private static Icon
private static Icon
public static final boolean
DARK

DARK is used for the property Tree.expandedIcon.

private static Icon
private static Icon
private static Icon
private static Icon
private static Icon
private static final Dimension
private static final Dimension
private static Icon
private static Icon
private static Icon
private static Icon
private static Icon
public static final boolean
LIGHT

LIGHT is used for the property Tree.collapsedIcon.

private static Icon
private static Icon
private static Icon
private static Icon
private static Icon
private static final Dimension
private static Icon
private static Icon
private static final int

Constructor Summary

AccessConstructor and Description
public
MetalIconFactory()

Constructs a MetalIconFactory.

Method Summary

Modifier and TypeMethod and Description
public static Icon

Returns:

a checkbox icon
getCheckBoxIcon
()

Returns a checkbox icon.

public static Icon

Returns:

an icon to be used by JCheckBoxMenuItem
getCheckBoxMenuItemIcon
()

Returns an icon to be used by JCheckBoxMenuItem.

public static Icon

Returns:

the instance of FileChooserDetailViewIcon
getFileChooserDetailViewIcon
()

Returns the instance of FileChooserDetailViewIcon.

public static Icon

Returns:

the instance of FileChooserHomeFolderIcon
getFileChooserHomeFolderIcon
()

Returns the instance of FileChooserHomeFolderIcon.

public static Icon

Returns:

the instance of FileChooserListViewIcon
getFileChooserListViewIcon
()

Returns the instance of FileChooserListViewIcon.

public static Icon

Returns:

the instance of FileChooserNewFolderIcon
getFileChooserNewFolderIcon
()

Returns the instance of FileChooserNewFolderIcon.

public static Icon

Returns:

the instance of FileChooserUpFolderIcon
getFileChooserUpFolderIcon
()

Returns the instance of FileChooserUpFolderIcon.

public static Icon

Returns:

a thumb icon to be used by horizontal slider
getHorizontalSliderThumbIcon
()

Returns a thumb icon to be used by horizontal slider.

public static Icon

Returns:

a new instance of InternalFrameAltMaximizeIcon
getInternalFrameAltMaximizeIcon
(int
the size of the icon
size
)

Constructs a new instance of InternalFrameAltMaximizeIcon.

public static Icon

Returns:

a new instance of InternalFrameCloseIcon
getInternalFrameCloseIcon
(int
the size of the icon
size
)

Constructs a new instance of InternalFrameCloseIcon.

public static Icon

Returns:

the instance of InternalFrameDefaultMenuIcon
getInternalFrameDefaultMenuIcon
()

Returns the instance of InternalFrameDefaultMenuIcon.

public static Icon

Returns:

a new instance of InternalFrameMaximizeIcon
getInternalFrameMaximizeIcon
(int
the size of the icon
size
)

Constructs a new instance of InternalFrameMaximizeIcon.

public static Icon

Returns:

a new instance of InternalFrameMinimizeIcon
getInternalFrameMinimizeIcon
(int
the size of the icon
size
)

Constructs a new instance of InternalFrameMinimizeIcon.

public static Icon

Returns:

an icon to be used by JMenu
getMenuArrowIcon
()

Returns an icon to be used by JMenu.

public static Icon

Returns:

an icon to be used by JMenuItem
getMenuItemArrowIcon
()

Returns an icon to be used by JMenuItem.

public static Icon

Returns:

the default icon for check box menu items, or null if no default exists
getMenuItemCheckIcon
()

Returns an icon to be used by JCheckBoxMenuItem.

public static Icon

Returns:

the instance of RadioButtonIcon
getRadioButtonIcon
()

Returns the instance of RadioButtonIcon.

public static Icon

Returns:

an icon to be used by JRadioButtonMenuItem
getRadioButtonMenuItemIcon
()

Returns an icon to be used by JRadioButtonMenuItem.

public static Icon

Returns:

the instance of TreeComputerIcon
getTreeComputerIcon
()

Returns the instance of TreeComputerIcon.

public static Icon

Returns:

a new instance of TreeControlIcon
getTreeControlIcon
(boolean
if true the icon is collapsed
isCollapsed
)

Constructs a new instance of TreeControlIcon.

public static Icon

Returns:

the instance of TreeFloppyDriveIcon
getTreeFloppyDriveIcon
()

Returns the instance of TreeFloppyDriveIcon.

public static Icon

Returns:

a new instance of TreeFolderIcon
getTreeFolderIcon
()

Constructs a new instance of TreeFolderIcon.

public static Icon

Returns:

the instance of TreeHardDriveIcon
getTreeHardDriveIcon
()

Returns the instance of TreeHardDriveIcon.

public static Icon

Returns:

a new instance of TreeLeafIcon
getTreeLeafIcon
()

Constructs a new instance of TreeLeafIcon.

public static Icon

Returns:

a thumb icon to be used by vertical slider
getVerticalSliderThumbIcon
()

Returns a thumb icon to be used by vertical slider.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait