javax.swing.plaf.basic
クラス BasicMenuItemUI
java.lang.Object
|
+--javax.swing.plaf.ComponentUI
|
+--javax.swing.plaf.ButtonUI
|
+--javax.swing.plaf.MenuItemUI
|
+--javax.swing.plaf.basic.BasicMenuItemUI
- 直接の既知のサブクラス:
- BasicCheckBoxMenuItemUI, BasicMenuUI, BasicRadioButtonMenuItemUI
- public class BasicMenuItemUI
- extends MenuItemUI
BasicMenuItem の実装です。
メソッドの概要 |
protected MenuDragMouseListener |
createMenuDragMouseListener(JComponent c)
|
protected MenuKeyListener |
createMenuKeyListener(JComponent c)
|
protected MouseInputListener |
createMouseInputListener(JComponent c)
|
static ComponentUI |
createUI(JComponent c)
|
Dimension |
getMaximumSize(JComponent c)
|
Dimension |
getMinimumSize(JComponent c)
|
MenuElement[] |
getPath()
|
protected Dimension |
getPreferredMenuItemSize(JComponent c,
Icon checkIcon,
Icon arrowIcon,
int defaultTextIconGap)
|
Dimension |
getPreferredSize(JComponent c)
|
protected String |
getPropertyPrefix()
|
protected void |
installDefaults()
|
protected void |
installKeyboardActions()
|
protected void |
installListeners()
|
void |
installUI(JComponent c)
|
void |
paint(Graphics g,
JComponent c)
|
protected void |
paintMenuItem(Graphics g,
JComponent c,
Icon checkIcon,
Icon arrowIcon,
Color background,
Color foreground,
int defaultTextIconGap)
|
protected void |
uninstallDefaults()
|
protected void |
uninstallKeyboardActions()
|
protected void |
uninstallListeners()
|
void |
uninstallUI(JComponent c)
|
void |
update(Graphics g,
JComponent c)
paintMenuItem() でバックグラウンドを描画します。 |
クラス java.lang.Object から継承したメソッド |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
menuItem
protected JMenuItem menuItem
selectionBackground
protected Color selectionBackground
selectionForeground
protected Color selectionForeground
disabledForeground
protected Color disabledForeground
acceleratorForeground
protected Color acceleratorForeground
acceleratorSelectionForeground
protected Color acceleratorSelectionForeground
defaultTextIconGap
protected int defaultTextIconGap
acceleratorFont
protected Font acceleratorFont
mouseInputListener
protected MouseInputListener mouseInputListener
menuDragMouseListener
protected MenuDragMouseListener menuDragMouseListener
menuKeyListener
protected MenuKeyListener menuKeyListener
arrowIcon
protected Icon arrowIcon
checkIcon
protected Icon checkIcon
oldBorderPainted
protected boolean oldBorderPainted
BasicMenuItemUI
public BasicMenuItemUI()
createUI
public static ComponentUI createUI(JComponent c)
installUI
public void installUI(JComponent c)
- オーバーライド:
- クラス ComponentUI 内の installUI
installDefaults
protected void installDefaults()
getPropertyPrefix
protected String getPropertyPrefix()
installListeners
protected void installListeners()
installKeyboardActions
protected void installKeyboardActions()
uninstallUI
public void uninstallUI(JComponent c)
- オーバーライド:
- クラス ComponentUI 内の uninstallUI
uninstallDefaults
protected void uninstallDefaults()
uninstallListeners
protected void uninstallListeners()
uninstallKeyboardActions
protected void uninstallKeyboardActions()
createMouseInputListener
protected MouseInputListener createMouseInputListener(JComponent c)
createMenuDragMouseListener
protected MenuDragMouseListener createMenuDragMouseListener(JComponent c)
createMenuKeyListener
protected MenuKeyListener createMenuKeyListener(JComponent c)
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- オーバーライド:
- クラス ComponentUI 内の getMinimumSize
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- オーバーライド:
- クラス ComponentUI 内の getPreferredSize
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- オーバーライド:
- クラス ComponentUI 内の getMaximumSize
getPreferredMenuItemSize
protected Dimension getPreferredMenuItemSize(JComponent c,
Icon checkIcon,
Icon arrowIcon,
int defaultTextIconGap)
update
public void update(Graphics g,
JComponent c)
- paintMenuItem() でバックグラウンドを描画します。そのために、デフォルトで不透明なコンポーネントのバックグラウンドを塗りつぶす update をオーバーライドして、paint() を呼び出すだけにします。
- オーバーライド:
- クラス ComponentUI 内の update
paint
public void paint(Graphics g,
JComponent c)
- オーバーライド:
- クラス ComponentUI 内の paint
paintMenuItem
protected void paintMenuItem(Graphics g,
JComponent c,
Icon checkIcon,
Icon arrowIcon,
Color background,
Color foreground,
int defaultTextIconGap)
getPath
public MenuElement[] getPath()
バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.