public class MetalIconFactory extends Object implements Serializable
Factory object that vends Icon
s 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
.
Modifier and Type | Class and Description |
---|---|
static class |
MetalIconFactory.FileIcon16 Warning: Serialized objects of this class will not be compatible with future Swing releases. |
static class |
MetalIconFactory.FolderIcon16 Warning: Serialized objects of this class will not be compatible with future Swing releases. |
static class |
MetalIconFactory.PaletteCloseIcon Defines an icon for Palette close |
static class |
MetalIconFactory.TreeControlIcon Warning: Serialized objects of this class will not be compatible with future Swing releases. |
static class |
MetalIconFactory.TreeFolderIcon Warning: Serialized objects of this class will not be compatible with future Swing releases. |
static class |
MetalIconFactory.TreeLeafIcon |
public static final boolean DARK
public static final boolean LIGHT
public MetalIconFactory()
public static Icon getFileChooserDetailViewIcon()
public static Icon getFileChooserHomeFolderIcon()
public static Icon getFileChooserListViewIcon()
public static Icon getFileChooserNewFolderIcon()
public static Icon getFileChooserUpFolderIcon()
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 getRadioButtonIcon()
public static Icon getCheckBoxIcon()
Returns a checkbox icon.
public static Icon getTreeComputerIcon()
public static Icon getTreeFloppyDriveIcon()
public static Icon getTreeFolderIcon()
public static Icon getTreeHardDriveIcon()
public static Icon getTreeLeafIcon()
public static Icon getTreeControlIcon(boolean isCollapsed)
public static Icon getMenuArrowIcon()
public static Icon getMenuItemCheckIcon()
Returns an icon to be used by JCheckBoxMenuItem
.
null
if no default existspublic static Icon getMenuItemArrowIcon()
public static Icon getCheckBoxMenuItemIcon()
public static Icon getRadioButtonMenuItemIcon()
public static Icon getHorizontalSliderThumbIcon()
public static Icon getVerticalSliderThumbIcon()
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.