public class MetalIconFactory extends java.lang.Object implements java.io.Serializable
MetalLookAndFeel.| Modifier and Type | Class and Description |
|---|---|
static class |
MetalIconFactory.FileIcon16
An icon representing a file (drawn as a piece of paper with the top-right
corner turned down).
|
static class |
MetalIconFactory.FolderIcon16
An icon representing a folder.
|
static class |
MetalIconFactory.PaletteCloseIcon
An icon used by the
MetalInternalFrameUI class when the frame
is displayed as a palette. |
static class |
MetalIconFactory.TreeControlIcon
A tree control icon.
|
static class |
MetalIconFactory.TreeFolderIcon
A tree folder icon.
|
static class |
MetalIconFactory.TreeLeafIcon
A tree leaf icon.
|
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DARK
A constant representing "dark".
|
static boolean |
LIGHT
A constant representing "light".
|
| Constructor and Description |
|---|
MetalIconFactory()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.Icon |
getCheckBoxIcon()
Returns an icon for use when rendering the
JCheckBox component. |
static javax.swing.Icon |
getCheckBoxMenuItemIcon()
Returns an icon for use when rendering the
JCheckBoxMenuItem
component. |
static javax.swing.Icon |
getFileChooserDetailViewIcon()
Returns an icon for use by the
JFileChooser component. |
static javax.swing.Icon |
getFileChooserHomeFolderIcon()
Returns an icon for use by the
JFileChooser component. |
static javax.swing.Icon |
getFileChooserListViewIcon()
Returns an icon for use by the
JFileChooser component. |
static javax.swing.Icon |
getFileChooserNewFolderIcon()
Returns an icon for use by the
JFileChooser component. |
static javax.swing.Icon |
getFileChooserUpFolderIcon()
Returns an icon for use by the
JFileChooser component. |
static javax.swing.Icon |
getHorizontalSliderThumbIcon()
Returns the icon used to display the thumb for a horizontally oriented
JSlider. |
static javax.swing.Icon |
getInternalFrameAltMaximizeIcon(int size)
Creates a new icon for the 'restore' button in a
JInternalFrame
that has been maximised. |
static javax.swing.Icon |
getInternalFrameCloseIcon(int size)
Creates a new icon used to represent the 'close' button in the title
pane of a
JInternalFrame. |
static javax.swing.Icon |
getInternalFrameDefaultMenuIcon()
Creates a new icon for the menu in a
JInternalFrame. |
static javax.swing.Icon |
getInternalFrameMaximizeIcon(int size)
Creates a new icon for the 'maximize' button in a
JInternalFrame. |
static javax.swing.Icon |
getInternalFrameMinimizeIcon(int size)
Returns the icon used for the minimize button in the frame title for a
JInternalFrame. |
static javax.swing.Icon |
getMenuArrowIcon()
Returns a new instance of a 4 x 8 icon showing a small black triangle that
points to the right.
|
static javax.swing.Icon |
getMenuItemArrowIcon()
Returns a new instance of a 4 x 8 icon showing a small black triangle that
points to the right.
|
static javax.swing.Icon |
getMenuItemCheckIcon()
Returns a new instance of a 13 x 13 icon showing a small black check mark.
|
static javax.swing.Icon |
getRadioButtonIcon()
Returns an icon for RadioButtons in the Metal L&F.
|
static javax.swing.Icon |
getRadioButtonMenuItemIcon()
Creates a new instance of the icon used in a
JRadioButtonMenuItem. |
static javax.swing.Icon |
getTreeComputerIcon()
Returns a
16x16 icon representing a computer. |
static javax.swing.Icon |
getTreeControlIcon(boolean isCollapsed)
Creates and returns a tree control icon.
|
static javax.swing.Icon |
getTreeFloppyDriveIcon()
Returns a
16x16 icon representing a floppy disk. |
static javax.swing.Icon |
getTreeFolderIcon()
Creates and returns a new tree folder icon.
|
static javax.swing.Icon |
getTreeHardDriveIcon()
Returns a
16x16 icon representing a hard disk. |
static javax.swing.Icon |
getTreeLeafIcon()
Creates and returns a new tree leaf icon.
|
static javax.swing.Icon |
getVerticalSliderThumbIcon()
Returns the icon used to display the thumb for a vertically oriented
JSlider. |
public static final boolean DARK
public static final boolean LIGHT
public MetalIconFactory()
public static javax.swing.Icon getCheckBoxIcon()
JCheckBox component.public static javax.swing.Icon getCheckBoxMenuItemIcon()
JCheckBoxMenuItem
component.public static javax.swing.Icon getFileChooserDetailViewIcon()
JFileChooser component.public static javax.swing.Icon getFileChooserHomeFolderIcon()
JFileChooser component.public static javax.swing.Icon getFileChooserListViewIcon()
JFileChooser component.public static javax.swing.Icon getFileChooserNewFolderIcon()
JFileChooser component.public static javax.swing.Icon getFileChooserUpFolderIcon()
JFileChooser component.public static javax.swing.Icon getRadioButtonIcon()
public static javax.swing.Icon getRadioButtonMenuItemIcon()
JRadioButtonMenuItem.public static javax.swing.Icon getHorizontalSliderThumbIcon()
JSlider.public static javax.swing.Icon getInternalFrameCloseIcon(int size)
JInternalFrame.size - the icon size.public static javax.swing.Icon getInternalFrameDefaultMenuIcon()
JInternalFrame. This is the
icon displayed at the top left of the frame.public static javax.swing.Icon getInternalFrameMaximizeIcon(int size)
JInternalFrame.size - the icon size in pixels.getInternalFrameAltMaximizeIcon(int)public static javax.swing.Icon getInternalFrameMinimizeIcon(int size)
JInternalFrame.size - the icon size in pixels (ignored by this implementation).public static javax.swing.Icon getInternalFrameAltMaximizeIcon(int size)
JInternalFrame
that has been maximised.size - the icon size in pixels.getInternalFrameMaximizeIcon(int)public static javax.swing.Icon getVerticalSliderThumbIcon()
JSlider.public static javax.swing.Icon getTreeFolderIcon()
public static javax.swing.Icon getTreeLeafIcon()
public static javax.swing.Icon getTreeControlIcon(boolean isCollapsed)
isCollapsed - a flag that controls whether the icon is in the
collapsed or expanded state.public static javax.swing.Icon getTreeComputerIcon()
16x16 icon representing a computer.public static javax.swing.Icon getTreeFloppyDriveIcon()
16x16 icon representing a floppy disk.public static javax.swing.Icon getTreeHardDriveIcon()
16x16 icon representing a hard disk.public static javax.swing.Icon getMenuArrowIcon()
public static javax.swing.Icon getMenuItemArrowIcon()
public static javax.swing.Icon getMenuItemCheckIcon()