- java.lang.Object
-
- javax.swing.plaf.metal.MetalIconFactory
-
- すべての実装されたインタフェース:
Serializable
public class MetalIconFactory extends Object implements Serializable
Java™のLook & Feel (Metal)で使用するIconを提供するファクトリ・オブジェクトです。 Metalでは、デフォルトのメカニズムにより、これらのアイコンが幅広く使用されます。 ほかのLook & Feelでは、アイコンにGIFを使用しますが、ファクトリ・オブジェクトではコード内でアイコンが作成されるため、ほかのテーマへの切替えが容易になります。このクラスの各メソッドは、
Iconまたはnullのどちらかを返します。ここで、nullはデフォルトのアイコンがないことを示します。警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4以降、すべてのJavaBeans™用の長期間の格納サポートが
java.beansパッケージに追加されています。XMLEncoderを参照してください。- 関連項目:
- 直列化された形式
-
-
ネストされたクラスのサマリー
ネストされたクラス 修飾子と型 クラス 説明 static classMetalIconFactory.FileIcon16警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static classMetalIconFactory.FolderIcon16警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static classMetalIconFactory.PaletteCloseIconPaletteクローズのアイコンを定義します。static classMetalIconFactory.TreeControlIcon警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static classMetalIconFactory.TreeFolderIcon警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static classMetalIconFactory.TreeLeafIconクラスはツリーのリーフのアイコンを表します。
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 MetalIconFactory()
-
メソッドのサマリー
すべてのメソッド 静的メソッド 具象メソッド 修飾子と型 メソッド 説明 static IcongetCheckBoxIcon()チェックボックス・アイコンを返します。static IcongetCheckBoxMenuItemIcon()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が使用するアイコンを返します。static IcongetMenuItemArrowIcon()JMenuItemが使用するアイコンを返します。static IcongetMenuItemCheckIcon()JCheckBoxMenuItemによって使用されるアイコンを返します。static IcongetRadioButtonIcon()RadioButtonIconのインスタンスを返します。static IcongetRadioButtonMenuItemIcon()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で使用されるアイコン
-
getMenuItemCheckIcon
public static Icon getMenuItemCheckIcon()
JCheckBoxMenuItemによって使用されるアイコンを返します。- 戻り値:
- チェックボックスのメニュー項目のデフォルト・アイコン。デフォルトが存在しない場合は
null
-
getMenuItemArrowIcon
public static Icon getMenuItemArrowIcon()
JMenuItemが使用するアイコンを返します。- 戻り値:
JMenuItemで使用されるアイコン
-
getCheckBoxMenuItemIcon
public static Icon getCheckBoxMenuItemIcon()
JCheckBoxMenuItemによって使用されるアイコンを返します。- 戻り値:
JCheckBoxMenuItemで使用されるアイコン
-
getRadioButtonMenuItemIcon
public static Icon getRadioButtonMenuItemIcon()
JRadioButtonMenuItemが使用するアイコンを返します。- 戻り値:
JRadioButtonMenuItemで使用されるアイコン
-
getHorizontalSliderThumbIcon
public static Icon getHorizontalSliderThumbIcon()
水平スライダで使用するサム・アイコンを返します。- 戻り値:
- 水平スライダで使用するサム・アイコン
-
getVerticalSliderThumbIcon
public static Icon getVerticalSliderThumbIcon()
垂直スライダで使用するサム・アイコンを返します。- 戻り値:
- 垂直スライダで使用されるサム・アイコン
-
-