public class MetalIconFactory extends Object implements 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 Icon |
getCheckBoxIcon()
Returns an icon for use when rendering the
JCheckBox component. |
static Icon |
getCheckBoxMenuItemIcon()
Returns an icon for use when rendering the
JCheckBoxMenuItem
component. |
static Icon |
getFileChooserDetailViewIcon()
Returns an icon for use by the
JFileChooser component. |
static Icon |
getFileChooserHomeFolderIcon()
Returns an icon for use by the
JFileChooser component. |
static Icon |
getFileChooserListViewIcon()
Returns an icon for use by the
JFileChooser component. |
static Icon |
getFileChooserNewFolderIcon()
Returns an icon for use by the
JFileChooser component. |
static Icon |
getFileChooserUpFolderIcon()
Returns an icon for use by the
JFileChooser component. |
static Icon |
getHorizontalSliderThumbIcon()
Returns the icon used to display the thumb for a horizontally oriented
JSlider . |
static Icon |
getInternalFrameAltMaximizeIcon(int size)
Creates a new icon for the 'restore' button in a
JInternalFrame
that has been maximised. |
static Icon |
getInternalFrameCloseIcon(int size)
Creates a new icon used to represent the 'close' button in the title
pane of a
JInternalFrame . |
static Icon |
getInternalFrameDefaultMenuIcon()
Creates a new icon for the menu in a
JInternalFrame . |
static Icon |
getInternalFrameMaximizeIcon(int size)
Creates a new icon for the 'maximize' button in a
JInternalFrame . |
static Icon |
getInternalFrameMinimizeIcon(int size)
Returns the icon used for the minimize button in the frame title for a
JInternalFrame . |
static Icon |
getMenuArrowIcon()
Returns a new instance of a 4 x 8 icon showing a small black triangle that
points to the right.
|
static Icon |
getMenuItemArrowIcon()
Returns a new instance of a 4 x 8 icon showing a small black triangle that
points to the right.
|
static Icon |
getMenuItemCheckIcon()
Returns a new instance of a 13 x 13 icon showing a small black check mark.
|
static Icon |
getRadioButtonIcon()
Returns an icon for RadioButtons in the Metal L&F.
|
static Icon |
getRadioButtonMenuItemIcon()
Creates a new instance of the icon used in a
JRadioButtonMenuItem . |
static Icon |
getTreeComputerIcon()
Returns a
16x16 icon representing a computer. |
static Icon |
getTreeControlIcon(boolean isCollapsed)
Creates and returns a tree control icon.
|
static Icon |
getTreeFloppyDriveIcon()
Returns a
16x16 icon representing a floppy disk. |
static Icon |
getTreeFolderIcon()
Creates and returns a new tree folder icon.
|
static Icon |
getTreeHardDriveIcon()
Returns a
16x16 icon representing a hard disk. |
static Icon |
getTreeLeafIcon()
Creates and returns a new tree leaf icon.
|
static 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 Icon getCheckBoxIcon()
JCheckBox
component.public static Icon getCheckBoxMenuItemIcon()
JCheckBoxMenuItem
component.public static Icon getFileChooserDetailViewIcon()
JFileChooser
component.public static Icon getFileChooserHomeFolderIcon()
JFileChooser
component.public static Icon getFileChooserListViewIcon()
JFileChooser
component.public static Icon getFileChooserNewFolderIcon()
JFileChooser
component.public static Icon getFileChooserUpFolderIcon()
JFileChooser
component.public static Icon getRadioButtonIcon()
public static Icon getRadioButtonMenuItemIcon()
JRadioButtonMenuItem
.public static Icon getHorizontalSliderThumbIcon()
JSlider
.public static Icon getInternalFrameCloseIcon(int size)
JInternalFrame
.size
- the icon size.public static Icon getInternalFrameDefaultMenuIcon()
JInternalFrame
. This is the
icon displayed at the top left of the frame.public static Icon getInternalFrameMaximizeIcon(int size)
JInternalFrame
.size
- the icon size in pixels.getInternalFrameAltMaximizeIcon(int)
public static Icon getInternalFrameMinimizeIcon(int size)
JInternalFrame
.size
- the icon size in pixels (ignored by this implementation).public static Icon getInternalFrameAltMaximizeIcon(int size)
JInternalFrame
that has been maximised.size
- the icon size in pixels.getInternalFrameMaximizeIcon(int)
public static Icon getVerticalSliderThumbIcon()
JSlider
.public static Icon getTreeFolderIcon()
public static Icon getTreeLeafIcon()
public static Icon getTreeControlIcon(boolean isCollapsed)
isCollapsed
- a flag that controls whether the icon is in the
collapsed or expanded state.public static Icon getTreeComputerIcon()
16x16
icon representing a computer.public static Icon getTreeFloppyDriveIcon()
16x16
icon representing a floppy disk.public static Icon getTreeHardDriveIcon()
16x16
icon representing a hard disk.public static Icon getMenuArrowIcon()
public static Icon getMenuItemArrowIcon()
public static Icon getMenuItemCheckIcon()