public class MetalIconFactory extends Object implements Serializable
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.
| 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
The class represents a tree leaf icon.
|
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DARK
DARK is used for the property Tree.expandedIcon. |
static boolean |
LIGHT
LIGHT is used for the property Tree.collapsedIcon. |
| Constructor and Description |
|---|
MetalIconFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Icon |
getCheckBoxIcon()
Returns a checkbox icon.
|
static Icon |
getCheckBoxMenuItemIcon()
Returns an icon to be used by
JCheckBoxMenuItem. |
static Icon |
getFileChooserDetailViewIcon()
Returns the instance of
FileChooserDetailViewIcon. |
static Icon |
getFileChooserHomeFolderIcon()
Returns the instance of
FileChooserHomeFolderIcon. |
static Icon |
getFileChooserListViewIcon()
Returns the instance of
FileChooserListViewIcon. |
static Icon |
getFileChooserNewFolderIcon()
Returns the instance of
FileChooserNewFolderIcon. |
static Icon |
getFileChooserUpFolderIcon()
Returns the instance of
FileChooserUpFolderIcon. |
static Icon |
getHorizontalSliderThumbIcon()
Returns a thumb icon to be used by horizontal slider.
|
static Icon |
getInternalFrameAltMaximizeIcon(int size)
Constructs a new instance of
InternalFrameAltMaximizeIcon. |
static Icon |
getInternalFrameCloseIcon(int size)
Constructs a new instance of
InternalFrameCloseIcon. |
static Icon |
getInternalFrameDefaultMenuIcon()
Returns the instance of
InternalFrameDefaultMenuIcon. |
static Icon |
getInternalFrameMaximizeIcon(int size)
Constructs a new instance of
InternalFrameMaximizeIcon. |
static Icon |
getInternalFrameMinimizeIcon(int size)
Constructs a new instance of
InternalFrameMinimizeIcon. |
static Icon |
getMenuArrowIcon()
Returns an icon to be used by
JMenu. |
static Icon |
getMenuItemArrowIcon()
Returns an icon to be used by
JMenuItem. |
static Icon |
getMenuItemCheckIcon()
Returns an icon to be used by
JCheckBoxMenuItem. |
static Icon |
getRadioButtonIcon()
Returns the instance of
RadioButtonIcon. |
static Icon |
getRadioButtonMenuItemIcon()
Returns an icon to be used by
JRadioButtonMenuItem. |
static Icon |
getTreeComputerIcon()
Returns the instance of
TreeComputerIcon. |
static Icon |
getTreeControlIcon(boolean isCollapsed)
Constructs a new instance of
TreeControlIcon. |
static Icon |
getTreeFloppyDriveIcon()
Returns the instance of
TreeFloppyDriveIcon. |
static Icon |
getTreeFolderIcon()
Constructs a new instance of
TreeFolderIcon. |
static Icon |
getTreeHardDriveIcon()
Returns the instance of
TreeHardDriveIcon. |
static Icon |
getTreeLeafIcon()
Constructs a new instance of
TreeLeafIcon. |
static Icon |
getVerticalSliderThumbIcon()
Returns a thumb icon to be used by vertical slider.
|
public static final boolean DARK
DARK is used for the property Tree.expandedIcon.public static final boolean LIGHT
LIGHT is used for the property Tree.collapsedIcon.public static Icon getFileChooserDetailViewIcon()
FileChooserDetailViewIcon.FileChooserDetailViewIconpublic static Icon getFileChooserHomeFolderIcon()
FileChooserHomeFolderIcon.FileChooserHomeFolderIconpublic static Icon getFileChooserListViewIcon()
FileChooserListViewIcon.FileChooserListViewIconpublic static Icon getFileChooserNewFolderIcon()
FileChooserNewFolderIcon.FileChooserNewFolderIconpublic static Icon getFileChooserUpFolderIcon()
FileChooserUpFolderIcon.FileChooserUpFolderIconpublic static Icon getInternalFrameAltMaximizeIcon(int size)
InternalFrameAltMaximizeIcon.size - the size of the iconInternalFrameAltMaximizeIconpublic static Icon getInternalFrameCloseIcon(int size)
InternalFrameCloseIcon.size - the size of the iconInternalFrameCloseIconpublic static Icon getInternalFrameDefaultMenuIcon()
InternalFrameDefaultMenuIcon.InternalFrameDefaultMenuIconpublic static Icon getInternalFrameMaximizeIcon(int size)
InternalFrameMaximizeIcon.size - the size of the iconInternalFrameMaximizeIconpublic static Icon getInternalFrameMinimizeIcon(int size)
InternalFrameMinimizeIcon.size - the size of the iconInternalFrameMinimizeIconpublic static Icon getRadioButtonIcon()
RadioButtonIcon.RadioButtonIconpublic static Icon getCheckBoxIcon()
public static Icon getTreeComputerIcon()
TreeComputerIcon.TreeComputerIconpublic static Icon getTreeFloppyDriveIcon()
TreeFloppyDriveIcon.TreeFloppyDriveIconpublic static Icon getTreeFolderIcon()
TreeFolderIcon.TreeFolderIconpublic static Icon getTreeHardDriveIcon()
TreeHardDriveIcon.TreeHardDriveIconpublic static Icon getTreeLeafIcon()
TreeLeafIcon.TreeLeafIconpublic static Icon getTreeControlIcon(boolean isCollapsed)
TreeControlIcon.isCollapsed - if true the icon is collapsedTreeControlIconpublic static Icon getMenuArrowIcon()
JMenu.JMenupublic static Icon getMenuItemCheckIcon()
JCheckBoxMenuItem.null if no default existspublic static Icon getMenuItemArrowIcon()
JMenuItem.JMenuItempublic static Icon getCheckBoxMenuItemIcon()
JCheckBoxMenuItem.JCheckBoxMenuItempublic static Icon getRadioButtonMenuItemIcon()
JRadioButtonMenuItem.JRadioButtonMenuItempublic static Icon getHorizontalSliderThumbIcon()
public static Icon getVerticalSliderThumbIcon()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-01-26-133437.ivan.openjdk9onspinwait