クラスSynthCheckBoxMenuItemUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
javax.swing.plaf.basic.BasicMenuItemUI
javax.swing.plaf.synth.SynthMenuItemUI
javax.swing.plaf.synth.SynthCheckBoxMenuItemUI
- すべての実装されたインタフェース:
PropertyChangeListener, EventListener, SynthConstants, SynthUI
public class SynthCheckBoxMenuItemUI extends SynthMenuItemUI
JCheckBoxMenuItemのSynth L&F UIの委譲を提供します。- 導入されたバージョン:
- 1.7
-
ネストされたクラスのサマリー
クラスBasicMenuItemUIで宣言されたネストされたクラス/インタフェース
BasicMenuItemUI.MouseInputHandler修飾子と型クラス説明protected class削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。 -
フィールドのサマリー
クラスで宣言されたフィールド BasicMenuItemUI
acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground修飾子と型フィールド説明protected Stringアクセラレータ区切り文字列、'Ctrl+C'の'+'など。protected Fontアクセラレータ・フォント。protected Colorアクセラレータの前景の色。protected Colorアクセラレータ選択の色。protected Icon矢印アイコン。protected Iconチェック・アイコン。protected intテキストとアイコンの間のギャップ。protected Color障害のあるフォアグラウンドの色。protected MenuDragMouseListenerMenuDragMouseListenerのインスタンス。protected JMenuItemJMenuItemのインスタンス。protected MenuKeyListenerMenuKeyListenerのインスタンス。protected MouseInputListenerMouseInputListenerのインスタンス。protected boolean値は、古い枠線がペイントされているかどうかを表します。protected PropertyChangeListenercreatePropertyChangeListenerから返されたPropertyChangeListener。protected Color選択のバックグラウンドの色。protected Color選択の前景の色。インタフェースで宣言されたフィールド SynthConstants
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED修飾子と型フィールド説明static final int領域がデフォルトであることを示します。static final int領域が有効でないことを示すプライマリ状態です。static final intコンポーネントが有効であることを示すプライマリ状態です。static final int領域にフォーカスがあることを示します。static final intマウスが領域上にあることを示すプライマリ状態です。static final int領域が押された状態であることを示すプライマリ状態です。static final int領域が選択されていることを示します。 -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
クラスで宣言されたメソッド SynthMenuItemUI
getContext, paint, paint, paintBorder, propertyChange, update修飾子と型メソッド説明指定されたコンポーネントのコンテキストを返します。voidpaint(Graphics g, JComponent c) Look & Feelに従って、指定されたコンポーネントをペイントします。protected voidpaint(SynthContext context, Graphics g) 指定されたコンポーネントをペイントします。voidpaintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) ボーダーをペイントします。voidバウンド・プロパティの変更時に呼び出されます。voidupdate(Graphics g, JComponent c) このUI委譲に、指定されたコンポーネントを再ペイントするよう通知します。クラスで宣言されたメソッド BasicMenuItemUI
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getPath, getPreferredMenuItemSize, getPropertyPrefix, installComponents, installDefaults, installKeyboardActions, installListeners, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners修飾子と型メソッド説明protected MenuDragMouseListenerMenuDragMouseListenerのインスタンスを返します。protected MenuKeyListenerMenuKeyListenerのインスタンスを返します。protected MouseInputListenerMouseInputListenerのインスタンスを返します。protected PropertyChangeListenerメニュー項目に追加されるPropertyChangeListenerを作成します。protected voidメニュー項目の起動時に、このメソッドを呼び出します。getPath()メニュー要素のパスを返します。protected DimensiongetPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) メニュー項目の優先サイズを返します。protected Stringプロパティ・プレフィクスを返します。protected voidinstallComponents(JMenuItem menuItem) メニューのサブコンポーネントを登録します。protected voidデフォルトのプロパティをインストールします。protected voidキーボード操作を登録します。protected voidリスナーを登録します。protected voidpaintBackground(Graphics g, JMenuItem menuItem, Color bgColor) メニュー項目のバックグラウンドを描画します。protected voidpaintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) メニュー項目をペイントします。protected void現在のメニュー項目のテキストをレンダリングします。protected voiduninstallComponents(JMenuItem menuItem) コンポーネントの登録を解除します。protected void既定のプロパティをアンインストールします。protected voidキーボード操作の登録を解除します。protected voidリスナーを登録解除します。クラスで宣言されたメソッド ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, uninstallUI修飾子と型メソッド説明booleancontains(JComponent c, int x, int y) 指定された x,yの位置が、指定されたコンポーネントのLook & Feel定義の形状内にある場合は、trueを返します。getAccessibleChild(JComponent c, int i) オブジェクトのi番目のAccessibleの子を返します。intオブジェクト内のアクセシビリティ対応の子の数を返します。intgetBaseline(JComponent c, int width, int height) ベースラインを返します。サイズの変化に合わせてコンポーネントのベースラインがどのように変化するかを示す列挙を返します。指定されたコンポーネントの、Look & Feelに適した最大サイズを返します。指定されたコンポーネントの、Look & Feelに適した最小サイズを返します。指定されたコンポーネントの、Look & Feelに適した推奨サイズを返します。void指定されたコンポーネントをLook & Feelに応じて適切に構成します。voidinstallUI時に、指定されたコンポーネントに対して行われた構成を取り消します。クラスオブジェクトで宣言されたメソッド
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であるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
コンストラクタの詳細
-
SynthCheckBoxMenuItemUI
public SynthCheckBoxMenuItemUI()SynthCheckBoxMenuItemUIを構築します。
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent c) 指定されたコンポーネントの新しいUIオブジェクトを作成します。- パラメータ:
c- UIオブジェクトを作成するコンポーネント- 戻り値:
- UIオブジェクト
-