Class Overview
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 XMLEncoder
.
Summary
Nested Classes |
class |
MetalIconFactory.FileIcon16 |
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. |
class |
MetalIconFactory.FolderIcon16 |
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. |
class |
MetalIconFactory.PaletteCloseIcon |
Defines an icon for Palette close |
class |
MetalIconFactory.TreeControlIcon |
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. |
class |
MetalIconFactory.TreeFolderIcon |
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. |
class |
MetalIconFactory.TreeLeafIcon |
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Constants
public
static
final
boolean
DARK
public
static
final
boolean
LIGHT
Public Constructors
public
MetalIconFactory
()
Public Methods
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)
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
getMenuArrowIcon
()
public
static
Icon
getMenuItemArrowIcon
()
public
static
Icon
getMenuItemCheckIcon
()
Returns an icon to be used by JCheckBoxMenuItem
.
Returns
- the default icon for check box menu items,
or
null
if no default exists
public
static
Icon
getRadioButtonIcon
()
public
static
Icon
getRadioButtonMenuItemIcon
()
public
static
Icon
getTreeComputerIcon
()
public
static
Icon
getTreeControlIcon
(boolean isCollapsed)
public
static
Icon
getTreeFloppyDriveIcon
()
public
static
Icon
getTreeFolderIcon
()
public
static
Icon
getTreeHardDriveIcon
()
public
static
Icon
getTreeLeafIcon
()
public
static
Icon
getVerticalSliderThumbIcon
()