インタフェース
javax.swing.Iconの使用
Iconを使用するパッケージ
パッケージ
説明
すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。
Swingコンポーネントの周囲に各種ボーダーを描画するためのクラスおよびインタフェースを提供します。
JColorChooserコンポーネントによって使用されるクラスとインタフェースが含まれています。JFileChooserコンポーネントによって使用されるクラスとインタフェースが含まれています。1つのインタフェースおよび多くのabstractクラスを提供しており、Swingはプラグイン可能なLook & Feel機能を提供するためにこれらを利用します。
基本Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。
デフォルトのLook & FeelであるJava Look & Feel (以前のコード名はMetal)に従って構築されたユーザー・インタフェース・オブジェクトを提供します。
Synthは、すべてのペイントが委譲されるスキン設定可能なLook & Feelです。
編集可能なテキスト・コンポーネントと編集不能なテキスト・コンポーネントを処理するクラスとインタフェースを提供します。
HTMLテキスト・エディタを作成するためのクラス
HTMLEditorKitとサポート・クラスを提供します。javax.swing.JTreeを処理するためのクラスとインタフェースを提供します。-
javax.swingでのIconの使用
Iconを実装するjavax.swingのクラスIconとして宣言されたjavax.swingのフィールド修飾子と型フィールド説明protected IconJInternalFrame.frameIcon内部フレームの左上隅に表示されるアイコンです。protected IconJOptionPane.iconペインで使用されるアイコンです。Iconを返すjavax.swingのメソッド修飾子と型メソッド説明AbstractButton.getDisabledIcon()無効な状態のボタンのアイコンを返します。JLabel.getDisabledIcon()無効な状態のラベルのアイコンを返します。LookAndFeel.getDisabledIcon(JComponent component, Icon icon) 無効な状態のIconを返します。JTabbedPane.getDisabledIconAt(int index) indexのタブの使用不可のアイコンを返します。AbstractButton.getDisabledSelectedIcon()無効で、かつ選択されている状態のボタンのアイコンを返します。LookAndFeel.getDisabledSelectedIcon(JComponent component, Icon icon) 無効で、かつ選択されているコンポーネントによって使用されるIconを返します。JInternalFrame.getFrameIcon()この内部フレームのタイトル・バー(通常は左上隅)に表示されるイメージを返します。AbstractButton.getIcon()デフォルトのアイコンを返します。このファイルまたはファイル・タイプのアイコンを返します。どちらが返されるかは、システムによって異なります。JLabel.getIcon()ラベルに表示するグラフィック・イメージ(グリフやアイコン)を返します。JOptionPane.getIcon()このペインが表示するアイコンを返します。keyの値がIconである場合はそれを返し、それ以外の場合はnullを返します。指定されたLocaleのkeyの値がIconである場合はそれを返し、それ以外の場合はnullを返します。static IconデフォルトからIconを返します。static Iconデフォルトから、指定されたロケールに適したIconを返します。JTabbedPane.getIconAt(int index) indexのタブのアイコンを返します。AbstractButton.getPressedIcon()押された状態のボタンのアイコンを返します。AbstractButton.getRolloverIcon()反転した状態のボタンのアイコンを返します。AbstractButton.getRolloverSelectedIcon()反転して選択された状態のボタンのアイコンを返します。AbstractButton.getSelectedIcon()選択された状態のボタンのアイコンを返します。TransferHandler.getVisualRepresentation(Transferable t) 転送の外観を設定するオブジェクトを返します。型Iconのパラメータを持つjavax.swingのメソッド修飾子と型メソッド説明voidtitleまたはicon、あるいはその両方(どちらかはnullでもかまわない)で表されるcomponentを追加します。voidtitleまたはicon、あるいはその両方(どちらかはnullでもかまわない)で表されるcomponentおよびtipを追加します。static MatteBorderBorderFactory.createMatteBorder(int top, int left, int bottom, int right, Icon tileIcon) 指定されたアイコンの複数のタイルで構成される飾り縁ボーダーを生成します。LookAndFeel.getDisabledIcon(JComponent component, Icon icon) 無効な状態のIconを返します。LookAndFeel.getDisabledSelectedIcon(JComponent component, Icon icon) 無効で、かつ選択されているコンポーネントによって使用されるIconを返します。intJTabbedPane.indexOfTab(Icon icon) 指定されたiconを持つ最初のタブ・インデックスを返します。そのアイコンを持つタブがない場合は -1を返します。protected voidAbstractButtonの初期化。protected void指定されたテキストおよびアイコンでメニュー項目を初期化します。voidJTextPane.insertIcon(Icon g) 現在選択されているコンテンツの置換後の内容としてドキュメントにアイコンを挿入します。void指定されたtitleまたはicon、あるいはその両方(どちらかはnullでもかまわない)で表される、指定されたcomponentの新しいタブを、指定されたindexの位置に挿入します。static StringSwingUtilities.layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap) アイコン起点の位置、テキスト・ベースライン起点の位置、および可能であればクリップされた複合ラベル文字列を計算して返します。static StringSwingUtilities.layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap) アイコン起点の位置、テキスト・ベースライン起点の位置、および可能であればクリップされた複合ラベル文字列を計算して返します。voidAbstractButton.setDisabledIcon(Icon disabledIcon) 無効な状態のボタンのアイコンを設定します。voidJLabel.setDisabledIcon(Icon disabledIcon) このJLabelが無効にされている(JLabel.setEnabled(false)が実行されている)場合に表示されるアイコンを設定します。voidJTabbedPane.setDisabledIconAt(int index, Icon disabledIcon) indexの無効なアイコンをiconに設定します。nullにすることもできます。voidAbstractButton.setDisabledSelectedIcon(Icon disabledSelectedIcon) 無効かつ選択状態のボタンのアイコンを設定します。voidJInternalFrame.setFrameIcon(Icon icon) この内部フレームのタイトル・バー(通常は左上隅)に表示するイメージを設定します。voidボタンのデフォルトのアイコンを設定します。voidこのコンポーネントが表示するアイコンを定義します。void表示するアイコンを設定します。voidindexのアイコンをiconに設定します。nullにすることもできます。voidAbstractButton.setPressedIcon(Icon pressedIcon) 押された状態のボタンのアイコンを設定します。voidAbstractButton.setRolloverIcon(Icon rolloverIcon) 反転した状態のボタンのアイコンを設定します。voidAbstractButton.setRolloverSelectedIcon(Icon rolloverSelectedIcon) 反転して選択された状態のボタンのアイコンを設定します。voidAbstractButton.setSelectedIcon(Icon selectedIcon) 選択された状態のボタンのアイコンを設定します。static intJOptionPane.showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon) 選択肢の数がoptionTypeパラメータによって決定される、指定されたアイコンを持つダイアログを表示します。static ObjectJOptionPane.showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue) 初期選択、指定可能な選択項目、およびそれ以外のすべてのオプションの指定が可能なブロッキング・ダイアログでユーザーに入力を求めます。static intJOptionPane.showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon) 指定されたアイコンを持つ内部ダイアログ・パネルを表示します。選択項目数はoptionTypeパラメータで決まります。static ObjectJOptionPane.showInternalInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue) 初期選択、指定可能な選択項目、およびそれ以外のすべてのオプションの指定が可能なブロッキング内部ダイアログでユーザーに入力を求めます。static voidJOptionPane.showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon) すべてのパラメータを指定して、メッセージを表示するための内部ダイアログ・パネルを表示します。static intJOptionPane.showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue) 指定されたアイコンを持つ内部ダイアログ・パネルを表示します。初期選択はinitialValueパラメータ、選択項目数はoptionTypeパラメータで決まります。static voidJOptionPane.showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon) すべてのパラメータを指定して、メッセージを表示するためのダイアログを表示します。static intJOptionPane.showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue) 最初の選択がinitialValueパラメータによって決定され、選択肢の数がoptionTypeパラメータによって決定される、指定されたアイコンを持つダイアログを表示します。型Iconのパラメータを持つjavax.swingのコンストラクタ修飾子コンストラクタ説明AbstractAction(String name, Icon icon) 指定された名前および小さいアイコンを使用してActionを作成します。初期テキストおよびアイコン付きのボタンを生成します。アイコン付きのボタンを生成します。初期状態で選択されていない、指定されたテキストおよびアイコン付きのチェックボックスを生成します。テキストおよびアイコン付きのチェックボックスを生成し、それが初期状態で選択されるかどうかを指定します。初期状態で選択されていない、アイコン付きのチェックボックスを生成します。アイコン付きのチェックボックスを生成し、それが初期状態で選択されるかどうかを指定します。JCheckBoxMenuItem(String text, Icon icon) 初期状態で選択されていない、指定されたテキストおよびアイコン付きのチェックボックス・メニュー項目を生成します。JCheckBoxMenuItem(String text, Icon icon, boolean b) 指定されたテキスト、アイコン、および選択状態を持つチェックボックス・メニュー項目を生成します。JCheckBoxMenuItem(Icon icon) 初期状態で選択されていない、アイコン付きのチェックボックス・メニュー項目を生成します。指定されたテキスト、イメージ、および水平方向の配置方法で、JLabelのインスタンスを作成します。JLabelのインスタンスを、指定されたイメージで作成します。JLabelのインスタンスを、指定されたイメージと水平方向の配置方法で作成します。指定されたテキストおよびアイコンでJMenuItemを作成します。指定されたアイコンでJMenuItemを作成します。JOptionPane(Object message, int messageType, int optionType, Icon icon) 指定されたメッセージ型、オプション、およびアイコンを使用して、メッセージを表示するためのJOptionPaneのインスタンスを生成します。JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options) 指定されたメッセージ型、アイコン、およびオプションを使用して、メッセージを表示するためのJOptionPaneのインスタンスを生成します。JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options, Object initialValue) 指定されたメッセージ型、アイコン、およびオプションを使い、初期状態で選択されているオプションを指定して、メッセージを表示するためのJOptionPaneのインスタンスを生成します。JRadioButton(String text, Icon icon) 初期状態では選択解除のラジオ・ボタンを、テキストとイメージの指定ありで作成します。JRadioButton(String text, Icon icon, boolean selected) ラジオ・ボタンを、テキスト、イメージ、および選択状態の指定ありで作成します。JRadioButton(Icon icon) 初期状態では選択解除されているラジオ・ボタンを、イメージの指定あり、テキストの指定なしで作成します。JRadioButton(Icon icon, boolean selected) ラジオ・ボタンを、選択状態とイメージの指定あり、テキストの指定なしで作成します。JRadioButtonMenuItem(String text, Icon icon) 指定されたIconとテキストを使用して、ラジオ・ボタン・メニュー項目を作成します。JRadioButtonMenuItem(String text, Icon icon, boolean selected) ラジオ・ボタン・メニュー項目を、テキスト、イメージ、および選択状態を指定して作成します。JRadioButtonMenuItem(Icon icon) アイコンを指定してJRadioButtonMenuItemを作成します。JRadioButtonMenuItem(Icon icon, boolean selected) ラジオ・ボタン・メニュー項目を、イメージおよび選択状態を指定し、テキストを指定しないで作成します。JToggleButton(String text, Icon icon) 初期状態で選択解除されているトグル・ボタンを、指定されたテキストおよびイメージで作成します。JToggleButton(String text, Icon icon, boolean selected) トグル・ボタンを、指定されたテキスト、イメージ、および選択状態で作成します。JToggleButton(Icon icon) 初期状態で選択解除されているトグル・ボタンを、イメージの指定あり、テキストの指定なしで作成します。JToggleButton(Icon icon, boolean selected) トグル・ボタンを、イメージおよび選択状態の指定あり、テキストの指定なしで作成します。 -
javax.swing.borderでのIconの使用
Iconとして宣言されたjavax.swing.borderのフィールドIconを返すjavax.swing.borderのメソッド型Iconのパラメータを持つjavax.swing.borderのコンストラクタ修飾子コンストラクタ説明MatteBorder(int top, int left, int bottom, int right, Icon tileIcon) 飾り縁ボーダーを、指定されたイン・セットおよびタイル・アイコンで作成します。MatteBorder(Insets borderInsets, Icon tileIcon) 飾り縁ボーダーを、指定されたイン・セットおよびタイル・アイコンで作成します。MatteBorder(Icon tileIcon) 飾り縁ボーダーを、指定されたタイル・アイコンで作成します。 -
javax.swing.colorchooserでのIconの使用
Iconを返すjavax.swing.colorchooserのメソッド修飾子と型メソッド説明abstract IconAbstractColorChooserPanel.getLargeDisplayIcon()パネルの大きな表示アイコンを返します。abstract IconAbstractColorChooserPanel.getSmallDisplayIcon()パネルの小さな表示アイコンを返します。 -
javax.swing.filechooserでのIconの使用
Iconを返すjavax.swing.filechooserのメソッド修飾子と型メソッド説明JFileChooserでこのファイルを表すアイコンです。FileSystemView.getSystemIcon(File f) システム・ファイル・ブラウザに表示されるファイル、ディレクトリ、またはフォルダのアイコンです。FileSystemView.getSystemIcon(File f, int width, int height) リクエストされたサイズのシステム・ファイル・ブラウザに表示されるファイル、ディレクトリ、またはフォルダのアイコンを返します。 -
javax.swing.plafでのIconの使用
Iconを実装するjavax.swing.plafのクラス型Iconのパラメータを持つjavax.swing.plafのコンストラクタ修飾子コンストラクタ説明IconUIResource(Icon delegate) 既存のIconインスタンスをラップする、UIResourceのアイコン・オブジェクトを作成します。MatteBorderUIResource(int top, int left, int bottom, int right, Icon tileIcon) MatteBorderUIResourceを構築します。MatteBorderUIResource(Icon tileIcon) MatteBorderUIResourceを構築します。 -
javax.swing.plaf.basicでのIconの使用
Iconとして宣言されたjavax.swing.plaf.basicのフィールド修飾子と型フィールド説明protected IconBasicMenuItemUI.arrowIcon矢印アイコン。protected IconBasicMenuItemUI.checkIconチェック・アイコン。protected IconBasicInternalFrameTitlePane.closeIcon閉じるアイコン。protected IconBasicTreeUI.collapsedIcon折りたたまれたアイコン。protected IconBasicFileChooserUI.computerIconコンピュータ・アイコンprotected IconBasicFileChooserUI.detailsViewIcon詳細表示アイコンprotected IconBasicFileChooserUI.directoryIconディレクトリ・アイコンprotected IconBasicTreeUI.expandedIcon拡張アイコン。protected IconBasicFileChooserUI.fileIconファイル・アイコンprotected IconBasicFileChooserUI.floppyDriveIconフロッピ・ドライブ・アイコンprotected IconBasicFileChooserUI.hardDriveIconハード・ドライブ・アイコンprotected IconBasicFileChooserUI.homeFolderIconホーム・フォルダ・アイコンprotected IconBasicRadioButtonUI.iconアイコン。protected IconBasicInternalFrameTitlePane.iconIconアイコン化アイコン。protected IconBasicFileChooserUI.listViewIconアイコンprotected IconBasicInternalFrameTitlePane.maxIcon最大化アイコン。protected IconBasicInternalFrameTitlePane.minIcon最小化アイコン。protected IconBasicFileChooserUI.newFolderIcon「新規フォルダ」アイコンprotected IconBasicFileChooserUI.upFolderIcon上のフォルダ・アイコンprotected IconBasicFileChooserUI.viewMenuIcon表示メニュー・アイコン型Iconの型パラメータを持つjavax.swing.plaf.basicのフィールドIconを返すjavax.swing.plaf.basicのメソッド修飾子と型メソッド説明static IconBasicIconFactory.createEmptyFrameIcon()空のフレーム・アイコンを返します。BasicFileChooserUI.BasicFileView.getCachedIcon(File f) ファイルのキャッシュされたアイコンを返します。static IconBasicIconFactory.getCheckBoxIcon()チェック・ボックス・アイコンを返します。static IconBasicIconFactory.getCheckBoxMenuItemIcon()チェック・ボックスのメニュー・アイテム・アイコンを返します。BasicTreeUI.getCollapsedIcon()折りたたまれたアイコンを返します。BasicRadioButtonUI.getDefaultIcon()デフォルトのアイコンを返します。BasicTreeUI.getExpandedIcon()展開されたアイコンを返します。protected IconBasicOptionPaneUI.getIcon()レシーバがルック・アンド・フィールを提供しているJOptionPaneのアイコン、またはgetDefaultIconから返されたデフォルトのアイコンを返します。protected IconBasicTabbedPaneUI.getIconForTab(int tabIndex) タブのアイコンを返します。protected IconBasicOptionPaneUI.getIconForType(int messageType) 渡されたタイプに使用するアイコンを返します。static IconBasicIconFactory.getMenuArrowIcon()メニューの矢印アイコンを返します。static IconBasicIconFactory.getMenuItemArrowIcon()メニュー項目の矢印アイコンを返します。static IconBasicIconFactory.getMenuItemCheckIcon()メニュー項目のチェック・アイコンを返します。static IconBasicIconFactory.getRadioButtonIcon()ラジオ・ボタン・アイコンを返します。static IconBasicIconFactory.getRadioButtonMenuItemIcon()ラジオ・ボタンのメニュー項目アイコンを返します。型Iconのパラメータを持つjavax.swing.plaf.basicのメソッド修飾子と型メソッド説明voidファイルのアイコンをキャッシュします。protected voidBasicTreeUI.drawCentered(Component c, Graphics graphics, Icon icon, int x, int y) (x,y)を中心とするiconを描画します。protected DimensionBasicMenuItemUI.getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) メニュー項目の優先サイズを返します。protected StringBasicLabelUI.layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR) 呼出しをSwingUtilities.layoutCompoundLabel()に転送します。protected voidBasicTabbedPaneUI.layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) ラベルをレイアウトします。protected voidBasicTabbedPaneUI.paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected) アイコンをペイントします。protected voidBasicMenuItemUI.paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) メニュー項目をペイントします。voidBasicTreeUI.setCollapsedIcon(Icon newG) 折りたたまれたアイコンを設定します。voidBasicTreeUI.setExpandedIcon(Icon newG) 展開アイコンを設定します。 -
javax.swing.plaf.metalでのIconの使用
Iconを実装するjavax.swing.plaf.metalのクラス修飾子と型クラス説明classOrganicCheckBoxUIに使用するCheckboxIconの実装ですclassMetalComboBoxを示す水平線を描画するユーティリティ・クラスです。static class警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static class警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static classPaletteクローズのアイコンを定義します。static class警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static class警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static classクラスはツリー・リーフ・アイコンを表します。Iconとして宣言されたjavax.swing.plaf.metalのフィールド修飾子と型フィールド説明protected IconMetalComboBoxButton.comboIconアイコン。protected static IconMetalSliderUI.horizThumbIconデフォルトの水平サムIconです。protected IconMetalInternalFrameTitlePane.paletteCloseIconパレット・クローズ・アイコン。protected static IconMetalSliderUI.vertThumbIconデフォルトの垂直サムIconです。Iconを返すjavax.swing.plaf.metalのメソッド修飾子と型メソッド説明static IconMetalIconFactory.getCheckBoxIcon()チェックボックス・アイコンを返します。static IconMetalIconFactory.getCheckBoxMenuItemIcon()JCheckBoxMenuItemによって使用されるアイコンを返します。final IconMetalComboBoxButton.getComboIcon()JComboBoxのアイコンを返します。MetalLookAndFeel.getDisabledIcon(JComponent component, Icon icon) 無効な状態のIconを返します。MetalLookAndFeel.getDisabledSelectedIcon(JComponent component, Icon icon) 無効で、かつ選択されているコンポーネントによって使用されるIconを返します。static IconMetalIconFactory.getFileChooserDetailViewIcon()FileChooserDetailViewIconのインスタンスを返します。static IconMetalIconFactory.getFileChooserHomeFolderIcon()FileChooserHomeFolderIconのインスタンスを返します。static IconMetalIconFactory.getFileChooserListViewIcon()FileChooserListViewIconのインスタンスを返します。static IconMetalIconFactory.getFileChooserNewFolderIcon()FileChooserNewFolderIconのインスタンスを返します。static IconMetalIconFactory.getFileChooserUpFolderIcon()FileChooserUpFolderIconのインスタンスを返します。static IconMetalIconFactory.getHorizontalSliderThumbIcon()水平スライダで使用されるサム・アイコンを返します。static IconMetalIconFactory.getInternalFrameAltMaximizeIcon(int size) InternalFrameAltMaximizeIconの新しいインスタンスを構築します。static IconMetalIconFactory.getInternalFrameCloseIcon(int size) InternalFrameCloseIconの新しいインスタンスを構築します。static IconMetalIconFactory.getInternalFrameDefaultMenuIcon()InternalFrameDefaultMenuIconのインスタンスを返します。static IconMetalIconFactory.getInternalFrameMaximizeIcon(int size) InternalFrameMaximizeIconの新しいインスタンスを構築します。static IconMetalIconFactory.getInternalFrameMinimizeIcon(int size) InternalFrameMinimizeIconの新しいインスタンスを構築します。static IconMetalIconFactory.getMenuArrowIcon()JMenuが使用するアイコンを返します。static IconMetalIconFactory.getMenuItemArrowIcon()JMenuItemが使用するアイコンを返します。static IconMetalIconFactory.getMenuItemCheckIcon()JCheckBoxMenuItemによって使用されるアイコンを返します。static IconMetalIconFactory.getRadioButtonIcon()RadioButtonIconのインスタンスを返します。static IconMetalIconFactory.getRadioButtonMenuItemIcon()JRadioButtonMenuItemが使用するアイコンを返します。static IconMetalIconFactory.getTreeComputerIcon()TreeComputerIconのインスタンスを返します。static IconMetalIconFactory.getTreeControlIcon(boolean isCollapsed) TreeControlIconの新しいインスタンスを構築します。static IconMetalIconFactory.getTreeFloppyDriveIcon()TreeFloppyDriveIconのインスタンスを返します。static IconMetalIconFactory.getTreeFolderIcon()TreeFolderIconの新しいインスタンスを構築します。static IconMetalIconFactory.getTreeHardDriveIcon()TreeHardDriveIconのインスタンスを返します。static IconMetalIconFactory.getTreeLeafIcon()TreeLeafIconの新しいインスタンスを構築します。static IconMetalIconFactory.getVerticalSliderThumbIcon()垂直スライダで使用されるサム・アイコンを返します。型Iconのパラメータを持つjavax.swing.plaf.metalのメソッド修飾子と型メソッド説明MetalLookAndFeel.getDisabledIcon(JComponent component, Icon icon) 無効な状態のIconを返します。MetalLookAndFeel.getDisabledSelectedIcon(JComponent component, Icon icon) 無効で、かつ選択されているコンポーネントによって使用されるIconを返します。final voidMetalComboBoxButton.setComboIcon(Icon i) JComboBoxのアイコンを設定します。型Iconのパラメータを持つjavax.swing.plaf.metalのコンストラクタ修飾子コンストラクタ説明MetalComboBoxButton(JComboBox<Object> cb, Icon i, boolean onlyIcon, CellRendererPane pane, JList<Object> list) MetalComboBoxButtonの新しいインスタンスを構築します。MetalComboBoxButton(JComboBox<Object> cb, Icon i, CellRendererPane pane, JList<Object> list) MetalComboBoxButtonの新しいインスタンスを構築します。 -
javax.swing.plaf.synthでのIconの使用
javax.swing.plaf.synthのアイコンのサブインタフェースIconを返すjavax.swing.plaf.synthのメソッド修飾子と型メソッド説明protected IconSynthButtonUI.getDefaultIcon(AbstractButton b) デフォルトのアイコンを返します。protected IconSynthButtonUI.getIcon(AbstractButton b) ボタンのペイントに使用するアイコンを返します。SynthStyle.getIcon(SynthContext context, Object key) 値がIconである特定のスタイル・プロパティを取得する簡易メソッドです。protected IconSynthButtonUI.getSizingIcon(AbstractButton b) 推奨/最小/最大サイズの計算に使われるアイコンを返します。protected IconSynthRadioButtonUI.getSizingIcon(AbstractButton b) 推奨/最小/最大サイズの計算に使われるアイコンを返します。型Iconのパラメータを持つjavax.swing.plaf.synthのメソッド修飾子と型メソッド説明static intSynthGraphicsUtils.getIconHeight(Icon icon, SynthContext context) アイコンの高さを返します。static intSynthGraphicsUtils.getIconWidth(Icon icon, SynthContext context) アイコンの幅を返します。SynthGraphicsUtils.getMaximumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) アイコンやテキストを正しくレンダリングするのに必要な最大サイズを返します。SynthGraphicsUtils.getMinimumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) アイコンやテキストを正しくレンダリングするのに必要な最小サイズを返します。SynthGraphicsUtils.getPreferredSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex) アイコンやテキストを正しくレンダリングするのに必要な推奨サイズを返します。SynthGraphicsUtils.layoutText(SynthContext ss, FontMetrics fm, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int iconTextGap) テキストとアイコンを配置する位置を参照で返すテキストとアイコンをレイアウトします。static voidSynthGraphicsUtils.paintIcon(Icon icon, SynthContext context, Graphics g, int x, int y, int width, int height) アイコンをペイントします。voidSynthGraphicsUtils.paintText(SynthContext ss, Graphics g, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex, int textOffset) アイコンとテキストをペイントします。 -
javax.swing.textでのIconの使用
Iconを返すjavax.swing.textのメソッド型Iconのパラメータを持つjavax.swing.textのメソッド -
javax.swing.text.htmlでのIconの使用
Iconを返すjavax.swing.text.htmlのメソッド修飾子と型メソッド説明ImageView.getLoadingImageIcon()イメージのロード処理中に使うアイコンを返します。ImageView.getNoImageIcon()イメージが見つからない場合に使用するアイコンを返します。 -
javax.swing.treeでのIconの使用
Iconとして宣言されたjavax.swing.treeのフィールド修飾子と型フィールド説明protected IconDefaultTreeCellRenderer.closedIcon展開されていない、葉以外のノードを表示するのに使うアイコンです。protected IconDefaultTreeCellEditor.editingIcon編集時に使うアイコンです。protected IconDefaultTreeCellRenderer.leafIcon葉ノードを表示するのに使うアイコンです。protected IconDefaultTreeCellRenderer.openIcon展開されている、葉以外のノードを表示するのに使うアイコンです。Iconを返すjavax.swing.treeのメソッド修飾子と型メソッド説明DefaultTreeCellRenderer.getClosedIcon()展開されていない葉以外のノードを表すために使用するアイコンを返します。DefaultTreeCellRenderer.getDefaultClosedIcon()展開されていない葉以外のノードを表すために使用する、現在の葉のデフォルト・アイコンを返します。DefaultTreeCellRenderer.getDefaultLeafIcon()葉ノードを表すために使用する、現在の葉のデフォルト・アイコンを返します。DefaultTreeCellRenderer.getDefaultOpenIcon()展開されている葉以外のノードを表すために使用する、現在の葉のデフォルト・アイコンを返します。DefaultTreeCellRenderer.getLeafIcon()葉ノードを表すために使用するアイコンを返します。DefaultTreeCellRenderer.getOpenIcon()展開されている葉以外のノードを表すために使用するアイコンを返します。型Iconのパラメータを持つjavax.swing.treeのメソッド修飾子と型メソッド説明voidDefaultTreeCellRenderer.setClosedIcon(Icon newIcon) 展開されていない葉以外のノードを表すために使用するアイコンを設定します。voidDefaultTreeCellRenderer.setLeafIcon(Icon newIcon) 葉ノードを表すために使用するアイコンを設定します。voidDefaultTreeCellRenderer.setOpenIcon(Icon newIcon) 展開されている葉以外のノードを表すために使用するアイコンを設定します。