- java.lang.Object
-
- javax.swing.plaf.metal.MetalIconFactory
-
- All Implemented Interfaces:
-
Serializable
public class MetalIconFactory extends Object implements Serializable
工厂对象为Java“¢”外观(金属)提供Icon秒。 这些图标通过默认机制在Metal中广泛使用。 虽然其他外观和感觉经常使用GIF的图标,创建代码中的图标有助于切换到其他主题。该类中的每个方法都返回一个
Icon或null,其中null表示没有默认图标。警告:此类的序列化对象与将来的Swing版本不兼容。 当前的序列化支持适用于运行相同版本的Swing的应用程序之间的短期存储或RMI。 从1.4开始,支持所有JavaBeans的长期存储已被添加到
java.beans包中。 请参阅XMLEncoder。- 另请参见:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 描述 static classMetalIconFactory.FileIcon16警告:此类的序列化对象与将来的Swing版本不兼容。static classMetalIconFactory.FolderIcon16警告:此类的序列化对象与将来的Swing版本不兼容。static classMetalIconFactory.PaletteCloseIcon定义调色板关闭的图标static classMetalIconFactory.TreeControlIcon警告:此类的序列化对象与将来的Swing版本不兼容。static classMetalIconFactory.TreeFolderIcon警告:此类的序列化对象与将来的Swing版本不兼容。static classMetalIconFactory.TreeLeafIcon该类代表树叶图标。
-
构造方法摘要
构造方法 Constructor 描述 MetalIconFactory()
-
方法摘要
所有方法 静态方法 具体的方法 Modifier and Type 方法 描述 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()返回一个用于垂直滑块的缩略图标。
-
-
-
字段详细信息
-
DARK
public static final boolean DARK
DARK用于财产Tree.expandedIcon。- 另请参见:
- Constant Field Values
-
LIGHT
public static final boolean LIGHT
LIGHT用于财产Tree.collapsedIcon。- 另请参见:
- Constant Field Values
-
-
方法详细信息
-
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()
返回一个用于垂直滑块的缩略图标。- 结果
- 垂直滑块使用的缩略图标
-
-