インタフェース
javax.swing.Iconの使用
| パッケージ | 説明 |
|---|---|
| javax.swing |
すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。
|
| javax.swing.border |
Swingコンポーネントの周囲に各種ボーダーを描画するためのクラスおよびインタフェースを提供します。
|
| javax.swing.colorchooser |
JColorChooserコンポーネントによって使用されるクラスとインタフェースが含まれています。 |
| javax.swing.filechooser |
JFileChooserコンポーネントによって使用されるクラスとインタフェースが含まれています。 |
| javax.swing.plaf |
1つのインタフェースおよび多くのabstractクラスを提供しており、Swingはプラグイン可能なLook & Feel機能を提供するためにこれらを利用します。
|
| javax.swing.plaf.basic |
基本Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。
|
| javax.swing.plaf.metal |
デフォルトのLook & FeelであるJava Look & Feel (以前のコード名はMetal)に従って構築されたユーザー・インタフェース・オブジェクトを提供します。
|
| javax.swing.plaf.synth |
Synthは、すべてのペイントが委譲されるスキン設定可能なLook & Feelです。
|
| javax.swing.text |
編集可能なテキスト・コンポーネントと編集不能なテキスト・コンポーネントを処理するクラスとインタフェースを提供します。
|
| javax.swing.text.html |
HTMLテキスト・エディタを作成するためのクラス
HTMLEditorKitとサポート・クラスを提供します。 |
| javax.swing.tree |
javax.swing.JTreeを処理するためのクラスとインタフェースを提供します。 |
-
javax.swingでのIconの使用
Iconを実装しているjavax.swing内のクラス 修飾子と型 クラス 説明 classImageIconアイコンをイメージからペイントするIconインタフェースの実装です。Iconとして宣言されているjavax.swing内のフィールド 修飾子と型 フィールド 説明 protected IconJInternalFrame. frameIcon内部フレームの左上隅に表示されるアイコンです。protected IconJOptionPane. iconペインで使用されるアイコンです。Iconを返すjavax.swing内のメソッド 修飾子と型 メソッド 説明 IconAbstractButton. getDisabledIcon()無効な状態のボタンのアイコンを返します。IconJLabel. getDisabledIcon()無効な状態のラベルのアイコンを返します。IconLookAndFeel. getDisabledIcon(JComponent component, Icon icon)無効な状態のIconを返します。IconJTabbedPane. getDisabledIconAt(int index)indexのタブの使用不可のアイコンを返します。IconAbstractButton. getDisabledSelectedIcon()無効で、かつ選択されている状態のボタンのアイコンを返します。IconLookAndFeel. getDisabledSelectedIcon(JComponent component, Icon icon)無効で、かつ選択されているコンポーネントによって使用されるIconを返します。IconJInternalFrame. getFrameIcon()この内部フレームのタイトル・バー(通常は左上隅)に表示されるイメージを返します。IconAbstractButton. getIcon()デフォルトのアイコンを返します。IconJFileChooser. getIcon(File f)このファイルまたはファイル・タイプのアイコンを返します。どちらが返されるかは、システムによって異なります。IconJLabel. getIcon()ラベルに表示するグラフィック・イメージ(グリフやアイコン)を返します。IconJOptionPane. getIcon()このペインが表示するアイコンを返します。IconUIDefaults. getIcon(Object key)keyの値がIconである場合はそれを返し、それ以外の場合はnullを返します。IconUIDefaults. getIcon(Object key, Locale l)指定されたLocaleのkeyの値がIconである場合はそれを返し、それ以外の場合はnullを返します。static IconUIManager. getIcon(Object key)デフォルトからIconを返します。static IconUIManager. getIcon(Object key, Locale l)デフォルトから、指定されたロケールに適したIconを返します。IconJTabbedPane. getIconAt(int index)indexのタブのアイコンを返します。IconAbstractButton. getPressedIcon()押された状態のボタンのアイコンを返します。IconAbstractButton. getRolloverIcon()反転した状態のボタンのアイコンを返します。IconAbstractButton. getRolloverSelectedIcon()反転して選択された状態のボタンのアイコンを返します。IconAbstractButton. getSelectedIcon()選択された状態のボタンのアイコンを返します。IconTransferHandler. getVisualRepresentation(Transferable t)転送の外観を設定するオブジェクトを返します。Icon型のパラメータを持つjavax.swing内のメソッド 修飾子と型 メソッド 説明 voidJTabbedPane. addTab(String title, Icon icon, Component component)titleまたはicon、あるいはその両方(どちらかはnullでもかまわない)で表されるcomponentを追加します。voidJTabbedPane. addTab(String title, Icon icon, Component component, String tip)titleまたはicon、あるいはその両方(どちらかはnullでもかまわない)で表されるcomponentおよびtipを追加します。static MatteBorderBorderFactory. createMatteBorder(int top, int left, int bottom, int right, Icon tileIcon)指定されたアイコンの複数のタイルで構成される飾り縁ボーダーを生成します。IconLookAndFeel. getDisabledIcon(JComponent component, Icon icon)無効な状態のIconを返します。IconLookAndFeel. getDisabledSelectedIcon(JComponent component, Icon icon)無効で、かつ選択されているコンポーネントによって使用されるIconを返します。intJTabbedPane. indexOfTab(Icon icon)指定されたiconを持つ最初のタブ・インデックスを返します。そのアイコンを持つタブがない場合は -1を返します。protected voidAbstractButton. init(String text, Icon icon)AbstractButtonの初期化。protected voidJMenuItem. init(String text, Icon icon)指定されたテキストおよびアイコンでメニュー項目を初期化します。voidJTextPane. insertIcon(Icon g)現在選択されているコンテンツの置換後の内容としてドキュメントにアイコンを挿入します。voidJTabbedPane. insertTab(String title, Icon icon, Component component, String tip, int index)指定された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)この内部フレームのタイトル・バー(通常は左上隅)に表示するイメージを設定します。voidAbstractButton. setIcon(Icon defaultIcon)ボタンのデフォルトのアイコンを設定します。voidJLabel. setIcon(Icon icon)このコンポーネントが表示するアイコンを定義します。voidJOptionPane. setIcon(Icon newIcon)表示するアイコンを設定します。voidJTabbedPane. setIconAt(int index, Icon icon)indexのアイコンを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を作成します。JButton(String text, Icon icon)初期テキストおよびアイコン付きのボタンを生成します。JButton(Icon icon)アイコン付きのボタンを生成します。JCheckBox(String text, Icon icon)初期状態で選択されていない、指定されたテキストおよびアイコン付きのチェックボックスを生成します。JCheckBox(String text, Icon icon, boolean selected)テキストおよびアイコン付きのチェックボックスを生成し、それが初期状態で選択されるかどうかを指定します。JCheckBox(Icon icon)初期状態で選択されていない、アイコン付きのチェックボックスを生成します。JCheckBox(Icon icon, boolean selected)アイコン付きのチェックボックスを生成し、それが初期状態で選択されるかどうかを指定します。JCheckBoxMenuItem(String text, Icon icon)初期状態で選択されていない、指定されたテキストおよびアイコン付きのチェックボックス・メニュー項目を生成します。JCheckBoxMenuItem(String text, Icon icon, boolean b)指定されたテキスト、アイコン、および選択状態を持つチェックボックス・メニュー項目を生成します。JCheckBoxMenuItem(Icon icon)初期状態で選択されていない、アイコン付きのチェックボックス・メニュー項目を生成します。JLabel(String text, Icon icon, int horizontalAlignment)指定されたテキスト、イメージ、および水平方向の配置方法で、JLabelのインスタンスを作成します。JLabel(Icon image)JLabelのインスタンスを、指定されたイメージで作成します。JLabel(Icon image, int horizontalAlignment)JLabelのインスタンスを、指定されたイメージと水平方向の配置方法で作成します。JMenuItem(String text, Icon icon)指定されたテキストおよびアイコンでJMenuItemを作成します。JMenuItem(Icon icon)指定されたアイコンで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内のフィールド 修飾子と型 フィールド 説明 protected IconMatteBorder. tileIconボーダーのタイ・リングに使用されるアイコン。Iconを返すjavax.swing.border内のメソッド 修飾子と型 メソッド 説明 IconMatteBorder. getTileIcon()ボーダーのタイリングに使用したカラーを返します。べた一色が使用されている場合はnullを返します。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内のメソッド 修飾子と型 メソッド 説明 IconFileView. getIcon(File f)JFileChooserでこのファイルを表すアイコンです。IconFileSystemView. getSystemIcon(File f)システム・ファイル・ブラウザに表示されるファイル、ディレクトリ、またはフォルダのアイコンです。 -
javax.swing.plafでのIconの使用
Iconを実装しているjavax.swing.plaf内のクラス 修飾子と型 クラス 説明 classIconUIResourceUIResourceを実装するIconラッパー・クラスです。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内のフィールド 修飾子と型 フィールド 説明 protected Hashtable<File,Icon>BasicFileChooserUI.BasicFileView. iconCacheアイコン・キャッシュIconを返すjavax.swing.plaf.basic内のメソッド 修飾子と型 メソッド 説明 static IconBasicIconFactory. createEmptyFrameIcon()空のフレーム・アイコンを返します。IconBasicFileChooserUI.BasicFileView. getCachedIcon(File f)ファイルのキャッシュされたアイコンを返します。static IconBasicIconFactory. getCheckBoxIcon()チェックボックスのアイコンを返します。static IconBasicIconFactory. getCheckBoxMenuItemIcon()チェックボックスのメニュー・アイテム・アイコンを返します。IconBasicTreeUI. getCollapsedIcon()折りたたまれたアイコンを返します。IconBasicRadioButtonUI. getDefaultIcon()デフォルトのアイコンを返します。IconBasicTreeUI. 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内のメソッド 修飾子と型 メソッド 説明 voidBasicFileChooserUI.BasicFileView. cacheIcon(File f, Icon i)ファイルのアイコンをキャッシュします。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内のクラス 修飾子と型 クラス 説明 classMetalCheckBoxIconOrganicCheckBoxUIに使用するCheckboxIconの実装ですclassMetalComboBoxIconMetalComboBoxを示す水平線を描画するユーティリティ・クラスです。static classMetalIconFactory.FileIcon16警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static classMetalIconFactory.FolderIcon16警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static classMetalIconFactory.PaletteCloseIconPaletteクローズのアイコンを定義します。static classMetalIconFactory.TreeControlIcon警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static classMetalIconFactory.TreeFolderIcon警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。static classMetalIconFactory.TreeLeafIconクラスはツリーのリーフのアイコンを表します。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によって使用されるアイコンを返します。IconMetalComboBoxButton. getComboIcon()JComboBoxのアイコンを返します。IconMetalLookAndFeel. getDisabledIcon(JComponent component, Icon icon)無効な状態のIconを返します。IconMetalLookAndFeel. 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内のメソッド 修飾子と型 メソッド 説明 IconMetalLookAndFeel. getDisabledIcon(JComponent component, Icon icon)無効な状態のIconを返します。IconMetalLookAndFeel. getDisabledSelectedIcon(JComponent component, Icon icon)無効で、かつ選択されているコンポーネントによって使用されるIconを返します。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のサブインタフェース 修飾子と型 インタフェース 説明 interfaceSynthIconSynthContextを渡されたアイコン。Iconを返すjavax.swing.plaf.synth内のメソッド 修飾子と型 メソッド 説明 protected IconSynthButtonUI. getDefaultIcon(AbstractButton b)デフォルトのアイコンを返します。protected IconSynthButtonUI. getIcon(AbstractButton b)ボタンのペイントに使用するアイコンを返します。IconSynthStyle. 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)アイコンの幅を返します。DimensionSynthGraphicsUtils. getMaximumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)アイコンやテキストを正しくレンダリングするのに必要な最大サイズを返します。DimensionSynthGraphicsUtils. getMinimumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)アイコンやテキストを正しくレンダリングするのに必要な最小サイズを返します。DimensionSynthGraphicsUtils. getPreferredSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)アイコンやテキストを正しくレンダリングするのに必要な推奨サイズを返します。StringSynthGraphicsUtils. 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内のメソッド 修飾子と型 メソッド 説明 static IconStyleConstants. getIcon(AttributeSet a)属性リストからアイコンの設定を返します。Icon型のパラメータを持つjavax.swing.text内のメソッド 修飾子と型 メソッド 説明 static voidStyleConstants. setIcon(MutableAttributeSet a, Icon c)アイコンの属性を設定します。 -
javax.swing.text.htmlでのIconの使用
Iconを返すjavax.swing.text.html内のメソッド 修飾子と型 メソッド 説明 IconImageView. getLoadingImageIcon()イメージのロード処理中に使うアイコンを返します。IconImageView. 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内のメソッド 修飾子と型 メソッド 説明 IconDefaultTreeCellRenderer. getClosedIcon()展開されていない葉以外のノードを表すために使用するアイコンを返します。IconDefaultTreeCellRenderer. getDefaultClosedIcon()展開されていない葉以外のノードを表すために使用する、現在の葉のデフォルト・アイコンを返します。IconDefaultTreeCellRenderer. getDefaultLeafIcon()葉ノードを表すために使用する、現在の葉のデフォルト・アイコンを返します。IconDefaultTreeCellRenderer. getDefaultOpenIcon()展開されている葉以外のノードを表すために使用する、現在の葉のデフォルト・アイコンを返します。IconDefaultTreeCellRenderer. getLeafIcon()葉ノードを表すために使用するアイコンを返します。IconDefaultTreeCellRenderer. getOpenIcon()展開されている葉以外のノードを表すために使用するアイコンを返します。Icon型のパラメータを持つjavax.swing.tree内のメソッド 修飾子と型 メソッド 説明 voidDefaultTreeCellRenderer. setClosedIcon(Icon newIcon)展開されていない葉以外のノードを表すために使用するアイコンを設定します。voidDefaultTreeCellRenderer. setLeafIcon(Icon newIcon)葉ノードを表すために使用するアイコンを設定します。voidDefaultTreeCellRenderer. setOpenIcon(Icon newIcon)展開されている葉以外のノードを表すために使用するアイコンを設定します。