- java.lang.Object
-
- javax.swing.plaf.metal.MetalIconFactory
-
- 实现的所有接口
-
Serializable
public class MetalIconFactory extends Object implements Serializable
工厂对象为Icon“外观(金属)Icons。 这些图标通过默认机制在Metal中广泛使用。 虽然其他外观通常使用GIF作为图标,但在代码中创建图标有助于切换到其他主题。此类中的每个方法都返回
Icon或null,其中null表示没有默认图标。警告:此类的序列化对象与以后的Swing版本不兼容。 当前的序列化支持适用于运行相同版本Swing的应用程序之间的短期存储或RMI。 从1.4开始,
java.beans软件包中添加了对所有JavaBeansjava.beans长期存储的支持。 请参阅XMLEncoder。- 另请参见:
- Serialized Form
-
-
嵌套类汇总
嵌套类 变量和类型 类 描述 static classMetalIconFactory.FileIcon16警告:此类的序列化对象与以后的Swing版本不兼容。static classMetalIconFactory.FolderIcon16警告:此类的序列化对象与以后的Swing版本不兼容。static classMetalIconFactory.PaletteCloseIcon定义Palette close的图标static classMetalIconFactory.TreeControlIcon警告:此类的序列化对象与以后的Swing版本不兼容。static classMetalIconFactory.TreeFolderIcon警告:此类的序列化对象与以后的Swing版本不兼容。static classMetalIconFactory.TreeLeafIcon该类表示树叶图标。
-
构造方法摘要
构造方法 构造器 描述 MetalIconFactory()
-
方法摘要
所有方法 静态方法 具体的方法 变量和类型 方法 描述 static IcongetCheckBoxIcon()返回一个复选框图标。static IcongetCheckBoxMenuItemIcon()返回JCheckBoxMenuItem使用的JCheckBoxMenuItem。static IcongetFileChooserDetailViewIcon()返回FileChooserDetailViewIcon的实例。static IcongetFileChooserHomeFolderIcon()返回FileChooserHomeFolderIcon的实例。static IcongetFileChooserListViewIcon()返回FileChooserListViewIcon的实例。static IcongetFileChooserNewFolderIcon()返回FileChooserNewFolderIcon的实例。static IcongetFileChooserUpFolderIcon()返回FileChooserUpFolderIcon的实例。static IcongetHorizontalSliderThumbIcon()返回水平滑块使用的拇指图标。static IcongetInternalFrameAltMaximizeIcon(int size)构造InternalFrameAltMaximizeIcon的新实例。static IcongetInternalFrameCloseIcon(int size)构造InternalFrameCloseIcon的新实例。static IcongetInternalFrameDefaultMenuIcon()返回InternalFrameDefaultMenuIcon的实例。static IcongetInternalFrameMaximizeIcon(int size)构造InternalFrameMaximizeIcon的新实例。static IcongetInternalFrameMinimizeIcon(int size)构造InternalFrameMinimizeIcon的新实例。static IcongetMenuArrowIcon()返回JMenu使用的JMenu。static IcongetMenuItemArrowIcon()返回JMenuItem使用的JMenuItem。static IcongetMenuItemCheckIcon()返回JCheckBoxMenuItem使用的JCheckBoxMenuItem。static IcongetRadioButtonIcon()返回RadioButtonIcon的实例。static IcongetRadioButtonMenuItemIcon()返回JRadioButtonMenuItem使用的JRadioButtonMenuItem。static IcongetTreeComputerIcon()返回TreeComputerIcon的实例。static IcongetTreeControlIcon(boolean isCollapsed)构造TreeControlIcon的新实例。static IcongetTreeFloppyDriveIcon()返回TreeFloppyDriveIcon的实例。static IcongetTreeFolderIcon()构造TreeFolderIcon的新实例。static IcongetTreeHardDriveIcon()返回TreeHardDriveIcon的实例。static IcongetTreeLeafIcon()构造TreeLeafIcon的新实例。static IcongetVerticalSliderThumbIcon()返回垂直滑块使用的拇指图标。
-
-
-
方法详细信息
-
getFileChooserDetailViewIcon
public static Icon getFileChooserDetailViewIcon()
返回FileChooserDetailViewIcon的实例。- 结果
-
FileChooserDetailViewIcon的实例
-
getFileChooserHomeFolderIcon
public static Icon getFileChooserHomeFolderIcon()
返回FileChooserHomeFolderIcon的实例。- 结果
-
FileChooserHomeFolderIcon的实例
-
getFileChooserListViewIcon
public static Icon getFileChooserListViewIcon()
返回FileChooserListViewIcon的实例。- 结果
-
FileChooserListViewIcon的实例
-
getFileChooserNewFolderIcon
public static Icon getFileChooserNewFolderIcon()
返回FileChooserNewFolderIcon的实例。- 结果
-
FileChooserNewFolderIcon的实例
-
getFileChooserUpFolderIcon
public static Icon getFileChooserUpFolderIcon()
返回FileChooserUpFolderIcon的实例。- 结果
-
FileChooserUpFolderIcon的实例
-
getInternalFrameAltMaximizeIcon
public static Icon getInternalFrameAltMaximizeIcon(int size)
构造InternalFrameAltMaximizeIcon的新实例。- 参数
-
size- 图标的大小 - 结果
-
InternalFrameAltMaximizeIcon的新实例
-
getInternalFrameCloseIcon
public static Icon getInternalFrameCloseIcon(int size)
构造一个InternalFrameCloseIcon的新实例。- 参数
-
size- 图标的大小 - 结果
-
InternalFrameCloseIcon的新实例
-
getInternalFrameDefaultMenuIcon
public static Icon getInternalFrameDefaultMenuIcon()
返回InternalFrameDefaultMenuIcon的实例。- 结果
-
InternalFrameDefaultMenuIcon的实例
-
getInternalFrameMaximizeIcon
public static Icon getInternalFrameMaximizeIcon(int size)
构造InternalFrameMaximizeIcon的新实例。- 参数
-
size- 图标的大小 - 结果
-
InternalFrameMaximizeIcon的新实例
-
getInternalFrameMinimizeIcon
public static Icon getInternalFrameMinimizeIcon(int size)
构造InternalFrameMinimizeIcon的新实例。- 参数
-
size- 图标的大小 - 结果
-
InternalFrameMinimizeIcon的新实例
-
getRadioButtonIcon
public static Icon getRadioButtonIcon()
返回RadioButtonIcon的实例。- 结果
-
RadioButtonIcon的实例
-
getCheckBoxIcon
public static Icon getCheckBoxIcon()
返回一个复选框图标。- 结果
- 一个复选框图标
- 从以下版本开始:
- 1.3
-
getTreeComputerIcon
public static Icon getTreeComputerIcon()
返回TreeComputerIcon的实例。- 结果
-
TreeComputerIcon的实例
-
getTreeFloppyDriveIcon
public static Icon getTreeFloppyDriveIcon()
返回TreeFloppyDriveIcon的实例。- 结果
-
TreeFloppyDriveIcon的实例
-
getTreeFolderIcon
public static Icon getTreeFolderIcon()
构造TreeFolderIcon的新实例。- 结果
-
TreeFolderIcon的新实例
-
getTreeHardDriveIcon
public static Icon getTreeHardDriveIcon()
返回TreeHardDriveIcon的实例。- 结果
-
TreeHardDriveIcon的实例
-
getTreeLeafIcon
public static Icon getTreeLeafIcon()
构造TreeLeafIcon的新实例。- 结果
-
TreeLeafIcon的新实例
-
getTreeControlIcon
public static Icon getTreeControlIcon(boolean isCollapsed)
构造TreeControlIcon的新实例。- 参数
-
isCollapsed- 如果true图标已折叠 - 结果
-
TreeControlIcon的新实例
-
getMenuArrowIcon
public static Icon getMenuArrowIcon()
返回JMenu使用的JMenu。- 结果
-
JMenu使用的JMenu
-
getMenuItemCheckIcon
public static Icon getMenuItemCheckIcon()
返回JCheckBoxMenuItem使用的JCheckBoxMenuItem。- 结果
-
复选框菜单项的默认图标,如果不存在默认值,
null
-
getMenuItemArrowIcon
public static Icon getMenuItemArrowIcon()
返回JMenuItem使用的JMenuItem。- 结果
-
JMenuItem使用的JMenuItem
-
getCheckBoxMenuItemIcon
public static Icon getCheckBoxMenuItemIcon()
返回JCheckBoxMenuItem使用的JCheckBoxMenuItem。- 结果
-
JCheckBoxMenuItem使用的JCheckBoxMenuItem
-
getRadioButtonMenuItemIcon
public static Icon getRadioButtonMenuItemIcon()
返回JRadioButtonMenuItem使用的JRadioButtonMenuItem。- 结果
-
JRadioButtonMenuItem使用的JRadioButtonMenuItem
-
getHorizontalSliderThumbIcon
public static Icon getHorizontalSliderThumbIcon()
返回水平滑块使用的拇指图标。- 结果
- 水平滑块使用的拇指图标
-
getVerticalSliderThumbIcon
public static Icon getVerticalSliderThumbIcon()
返回垂直滑块使用的拇指图标。- 结果
- 垂直滑块使用的拇指图标
-
-