クラスMetalIconFactory
java.lang.Object
javax.swing.plaf.metal.MetalIconFactory
- すべての実装されたインタフェース:
Serializable
public class MetalIconFactory extends Object implements Serializable
Javaルック・アンド・フィール(Metal)の
Iconを提供するファクトリ・オブジェクト。 Metalでは、デフォルトのメカニズムにより、これらのアイコンが幅広く使用されます。 ほかのLook & Feelでは、アイコンにGIFを使用しますが、ファクトリ・オブジェクトではコード内でアイコンが作成されるため、ほかのテーマへの切替えが容易になります。
このクラスの各メソッドは、Iconまたはnullのどちらかを返します。ここで、nullはデフォルトのアイコンがないことを示します。
警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4では、すべてのJavaBeansの長期ストレージのサポートがjava.beansパッケージに追加されました。 XMLEncoderを参照してください。
-
ネストされたクラスのサマリー
ネストされたクラス修飾子と型クラス説明static class警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static class警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static classPaletteクローズのアイコンを定義します。static class警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static class警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static classクラスはツリー・リーフ・アイコンを表します。 -
フィールドのサマリー
フィールド -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明static Iconチェックボックス・アイコンを返します。static IconJCheckBoxMenuItemによって使用されるアイコンを返します。static IconFileChooserDetailViewIconのインスタンスを返します。static IconFileChooserHomeFolderIconのインスタンスを返します。static IconFileChooserListViewIconのインスタンスを返します。static IconFileChooserNewFolderIconのインスタンスを返します。static IconFileChooserUpFolderIconのインスタンスを返します。static Icon水平スライダで使用されるサム・アイコンを返します。static IcongetInternalFrameAltMaximizeIcon(int size) InternalFrameAltMaximizeIconの新しいインスタンスを構築します。static IcongetInternalFrameCloseIcon(int size) InternalFrameCloseIconの新しいインスタンスを構築します。static IconInternalFrameDefaultMenuIconのインスタンスを返します。static IcongetInternalFrameMaximizeIcon(int size) InternalFrameMaximizeIconの新しいインスタンスを構築します。static IcongetInternalFrameMinimizeIcon(int size) InternalFrameMinimizeIconの新しいインスタンスを構築します。static IconJMenuが使用するアイコンを返します。static IconJMenuItemが使用するアイコンを返します。static IconJCheckBoxMenuItemによって使用されるアイコンを返します。static IconRadioButtonIconのインスタンスを返します。static IconJRadioButtonMenuItemが使用するアイコンを返します。static IconTreeComputerIconのインスタンスを返します。static IcongetTreeControlIcon(boolean isCollapsed) TreeControlIconの新しいインスタンスを構築します。static IconTreeFloppyDriveIconのインスタンスを返します。static IconTreeFolderIconの新しいインスタンスを構築します。static IconTreeHardDriveIconのインスタンスを返します。static IconTreeLeafIconの新しいインスタンスを構築します。static Icon垂直スライダで使用されるサム・アイコンを返します。クラスオブジェクトで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait修飾子と型メソッド説明protected Objectclone()このオブジェクトのコピーを作成して、返します。booleanこのオブジェクトと他のオブジェクトが等しいかどうかを示します。protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。inthashCode()このオブジェクトに対するハッシュ・コード値を返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。toString()オブジェクトの文字列表現を返します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(long timeoutMillis, int nanos) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
フィールド詳細
-
DARK
public static final boolean DARKDARKはプロパティTree.expandedIconに使用されます。- 関連項目:
-
LIGHT
public static final boolean LIGHTLIGHTはプロパティTree.collapsedIconに使用されます。- 関連項目:
-
-
コンストラクタの詳細
-
MetalIconFactory
public MetalIconFactory()MetalIconFactoryを構築します。
-
-
メソッドの詳細
-
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
-
getCheckBoxIcon
-
getTreeComputerIcon
-
getTreeFloppyDriveIcon
public static Icon getTreeFloppyDriveIcon()TreeFloppyDriveIconのインスタンスを返します。- 戻り値:
TreeFloppyDriveIconのインスタンス
-
getTreeFolderIcon
public static Icon getTreeFolderIcon()TreeFolderIconの新しいインスタンスを構築します。- 戻り値:
TreeFolderIconの新しいインスタンス
-
getTreeHardDriveIcon
public static Icon getTreeHardDriveIcon()TreeHardDriveIconのインスタンスを返します。- 戻り値:
TreeHardDriveIconのインスタンス
-
getTreeLeafIcon
-
getTreeControlIcon
public static Icon getTreeControlIcon(boolean isCollapsed) TreeControlIconの新しいインスタンスを構築します。- パラメータ:
isCollapsed-trueアイコンが折りたたまれている場合- 戻り値:
TreeControlIconの新しいインスタンス
-
getMenuArrowIcon
-
getMenuItemCheckIcon
public static Icon getMenuItemCheckIcon()JCheckBoxMenuItemによって使用されるアイコンを返します。- 戻り値:
- チェックボックスのメニュー項目のデフォルト・アイコン。デフォルトが存在しない場合は
null
-
getMenuItemArrowIcon
-
getCheckBoxMenuItemIcon
public static Icon getCheckBoxMenuItemIcon()JCheckBoxMenuItemによって使用されるアイコンを返します。- 戻り値:
JCheckBoxMenuItemで使用されるアイコン
-
getRadioButtonMenuItemIcon
public static Icon getRadioButtonMenuItemIcon()JRadioButtonMenuItemが使用するアイコンを返します。- 戻り値:
JRadioButtonMenuItemで使用されるアイコン
-
getHorizontalSliderThumbIcon
-
getVerticalSliderThumbIcon
-