| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class MetalIconFactory extends Object implements Serializable
Factory object that vends Icon
s for
the JavaTM 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 JavaBeansTM
has been added to the java.beans
package.
Please see {@link java.beans.XMLEncoder}.
Nested Class Summary | |
---|---|
static class |
Warning: Serialized objects of this class will not be compatible with future Swing releases. |
static class |
Warning: Serialized objects of this class will not be compatible with future Swing releases. |
static class |
Defines an icon for Palette close |
static class |
Warning: Serialized objects of this class will not be compatible with future Swing releases. |
static class |
Warning: Serialized objects of this class will not be compatible with future Swing releases. |
static class |
|
Field Summary | |
---|---|
static boolean |
DARK
|
static boolean |
LIGHT
|
Constructor Summary | |
---|---|
|
Method Summary | |
---|---|
static Icon |
Returns a checkbox icon. |
static Icon |
|
static Icon |
|
static Icon |
|
static Icon |
|
static Icon |
|
static Icon |
|
static Icon |
|
static Icon |
getInternalFrameAltMaximizeIcon(int size) |
static Icon |
getInternalFrameCloseIcon(int size) |
static Icon |
|
static Icon |
getInternalFrameMaximizeIcon(int size) |
static Icon |
getInternalFrameMinimizeIcon(int size) |
static Icon |
|
static Icon |
|
static Icon |
Returns an icon to be used by JCheckBoxMenuItem .
|
static Icon |
|
static Icon |
|
static Icon |
|
static Icon |
getTreeControlIcon(boolean isCollapsed) |
static Icon |
|
static Icon |
|
static Icon |
|
static Icon |
|
static Icon |
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean DARK
public static final boolean LIGHT
Constructor Detail |
---|
public MetalIconFactory()
Method Detail |
---|
public static Icon getCheckBoxIcon()
public static Icon getCheckBoxMenuItemIcon()
public static Icon getFileChooserDetailViewIcon()
public static Icon getFileChooserHomeFolderIcon()
public static Icon getFileChooserListViewIcon()
public static Icon getFileChooserNewFolderIcon()
public static Icon getFileChooserUpFolderIcon()
public static Icon getHorizontalSliderThumbIcon()
public static Icon getInternalFrameAltMaximizeIcon(int size)
size
public static Icon getInternalFrameCloseIcon(int size)
size
public static Icon getInternalFrameDefaultMenuIcon()
public static Icon getInternalFrameMaximizeIcon(int size)
size
public static Icon getInternalFrameMinimizeIcon(int size)
size
public static Icon getMenuArrowIcon()
public static Icon getMenuItemArrowIcon()
public static Icon getMenuItemCheckIcon()
JCheckBoxMenuItem
.
null
if no default existspublic static Icon getRadioButtonIcon()
public static Icon getRadioButtonMenuItemIcon()
public static Icon getTreeComputerIcon()
public static Icon getTreeControlIcon(boolean isCollapsed)
isCollapsed
public static Icon getTreeFloppyDriveIcon()
public static Icon getTreeFolderIcon()
public static Icon getTreeHardDriveIcon()
public static Icon getTreeLeafIcon()
public static Icon getVerticalSliderThumbIcon()
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |