public class MetalJideSplitButtonUI extends MetalMenuUI
Modifier and Type | Class and Description |
---|---|
protected class |
MetalJideSplitButtonUI.MouseInputHandler |
MetalMenuUI.ChangeHandler
Modifier and Type | Field and Description |
---|---|
protected Color |
_darkShadowColor |
protected Color |
_highlight |
protected Color |
_lightHighlightColor |
protected ThemePainter |
_painter |
protected PropertyChangeListener |
_propertyChangeListener |
protected Color |
_shadowColor |
changeListener, menuListener, propertyChangeListener
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground
Constructor and Description |
---|
MetalJideSplitButtonUI() |
appendPath, createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createPropertyChangeListener, isMouseOver, setMouseOver, setupPostTimer
doClick, getPainter, getPath, getPreferredMenuItemSize, installComponents, installUI, isDownArrowVisible, paint, paintMenuItem, uninstallComponents, uninstallUI, update
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
protected ThemePainter _painter
protected Color _shadowColor
protected Color _darkShadowColor
protected Color _highlight
protected Color _lightHighlightColor
protected PropertyChangeListener _propertyChangeListener
protected String getPropertyPrefix()
getPropertyPrefix
in class MetalMenuUI
public static ComponentUI createUI(JComponent c)
protected void installDefaults()
installDefaults
in class MetalMenuUI
protected void uninstallDefaults()
uninstallDefaults
in class MetalMenuUI
protected void installListeners()
installListeners
in class MetalMenuUI
protected void uninstallListeners()
uninstallListeners
in class MetalMenuUI
protected PropertyChangeListener createSplitButtonPropertyChangeListener(JComponent c)
public InputMap getInputMap(int condition, JComponent c)
condition
. Called as part of
installKeyboardActions
.protected void installKeyboardActions()
installKeyboardActions
in class MetalMenuUI
protected void uninstallKeyboardActions()
uninstallKeyboardActions
in class MetalMenuUI
protected MouseInputListener createMouseInputListener(JComponent c)
createMouseInputListener
in class MetalMenuUI
protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)
MetalMenuUI
paintBackground
in class MetalMenuUI
g
- the paint graphicsmenuItem
- menu item to be paintedbgColor
- selection background colorprotected void paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)
MetalMenuItemUI
paintText
in class MetalMenuItemUI
g
- graphics contextmenuItem
- menu item to rendertextRect
- bounding rectangle for rendering the texttext
- string to renderpublic Dimension getMinimumSize(JComponent c)
getMinimumSize
in class MetalMenuItemUI
public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class MetalMenuUI
public Dimension getMaximumSize(JComponent c)
getMaximumSize
in class MetalMenuUI
protected int getOffset()
protected boolean isAlwaysDropdown(JMenuItem menuItem)
public static void loadActionMap(LazyActionMap map)
protected static void downButtonPressed(JMenu menu)
protected int getRightMargin()
getRightMargin
in class MetalMenuItemUI