クラスBasicCheckBoxMenuItemUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
javax.swing.plaf.basic.BasicMenuItemUI
javax.swing.plaf.basic.BasicCheckBoxMenuItemUI
public class BasicCheckBoxMenuItemUI extends BasicMenuItemUI
BasicCheckboxMenuItem実装です
-
ネストされたクラスのサマリー
クラス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選択の前景の色。 -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明static ComponentUIBasicCheckBoxMenuItemUIの新しいインスタンスを構築します。voidprocessMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager) マウス・イベントが発生したときに呼び出されます。クラスで宣言されたメソッド BasicMenuItemUI
createMenuDragMouseListener, createMenuKeyListener, createMouseInputListener, createPropertyChangeListener, doClick, getPath, getPreferredMenuItemSize, getPropertyPrefix, installComponents, installDefaults, installKeyboardActions, installListeners, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, update修飾子と型メソッド説明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リスナーを登録解除します。voidupdate(Graphics g, JComponent c) paintMenuItem()でバックグラウンドを描画するため、update (デフォルトでは不透明なコンポーネントのバックグラウンドを塗りつぶす)をオーバーライドしてpaint()を呼び出してください。クラスで宣言されたメソッド ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, 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に応じて適切に構成します。voidpaint(Graphics g, JComponent c) 指定されたコンポーネントを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であるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
コンストラクタの詳細
-
BasicCheckBoxMenuItemUI
public BasicCheckBoxMenuItemUI()BasicCheckBoxMenuItemUIを構築します。
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent c) BasicCheckBoxMenuItemUIの新しいインスタンスを構築します。- パラメータ:
c- コンポーネント- 戻り値:
BasicCheckBoxMenuItemUIの新しいインスタンス
-
processMouseEvent
public void processMouseEvent(JMenuItem item, MouseEvent e, MenuElement[] path, MenuSelectionManager manager) マウス・イベントが発生したときに呼び出されます。- パラメータ:
item- メニュー項目e- マウス・イベントpath-MenuElementの配列manager-MenuSelectionManagerのインスタンス
-