Package com.jidesoft.plaf.eclipse
Class EclipseJideSplitButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
com.jidesoft.plaf.eclipse.EclipseMenuItemUI
com.jidesoft.plaf.eclipse.EclipseMenuUI
com.jidesoft.plaf.eclipse.EclipseJideSplitButtonUI
EclipseJideSplitButtonUI implementation.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.jidesoft.plaf.eclipse.EclipseMenuUI
EclipseMenuUI.ChangeHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Color
protected Color
protected Color
protected ThemePainter
protected Color
protected int
protected int
Fields inherited from class com.jidesoft.plaf.eclipse.EclipseMenuUI
changeListener, menuListener, propertyChangeListener
Fields inherited from class com.jidesoft.plaf.eclipse.EclipseMenuItemUI
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultAccelEndGap, defaultShadowWidth, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground, shadowColor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MouseInputListener
static ComponentUI
protected static void
downButtonPressed
(JMenu menu) protected Rectangle
getButtonRect
(JComponent c, int orientation, int width, int height) Gets the bounds for the button part of theJideSplitButton
.protected Rectangle
getDropDownRect
(JComponent c, int orientation, int width, int height) Gets the bounds for the drop down part of theJideSplitButton
.protected static Container
getInputMap
(int condition, JComponent c) Returns the InputMap for conditioncondition
.protected int
protected String
protected void
protected void
protected void
static void
Populates Buttons actions.protected void
paintArrow
(JMenuItem menuItem, Graphics g) protected void
paintBackground
(Graphics g, JMenuItem menuItem, Color bgColor) Draws the background of the menu item.protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
Methods inherited from class com.jidesoft.plaf.eclipse.EclipseMenuUI
appendPath, createActionMap, createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createPropertyChangeListener, getActionMap, isMouseOver, paintText, setMouseOver, setupPostTimer
Methods inherited from class com.jidesoft.plaf.eclipse.EclipseMenuItemUI
createInputMap, doClick, getPainter, getPath, getPreferredMenuItemSize, installComponents, installUI, isDownArrowVisible, paint, paintMenuItem, uninstallComponents, uninstallUI, update
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
-
Field Details
-
_painter
-
_shadowColor
-
_darkShadowColor
-
_highlight
-
_lightHighlightColor
-
_splitButtonMargin
protected int _splitButtonMargin -
_splitButtonMarginOnMenu
protected int _splitButtonMarginOnMenu
-
-
Constructor Details
-
EclipseJideSplitButtonUI
public EclipseJideSplitButtonUI()
-
-
Method Details
-
getPropertyPrefix
- Overrides:
getPropertyPrefix
in classEclipseMenuUI
-
createUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classEclipseMenuUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaults
in classEclipseMenuUI
-
installListeners
protected void installListeners()- Overrides:
installListeners
in classEclipseMenuUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListeners
in classEclipseMenuUI
-
getInputMap
Returns the InputMap for conditioncondition
. Called as part ofinstallKeyboardActions
.- Parameters:
condition
- the conditionc
- the component- Returns:
- the input map.
-
installKeyboardActions
protected void installKeyboardActions()- Overrides:
installKeyboardActions
in classEclipseMenuUI
-
uninstallKeyboardActions
protected void uninstallKeyboardActions()- Overrides:
uninstallKeyboardActions
in classEclipseMenuUI
-
createMouseInputListener
- Overrides:
createMouseInputListener
in classEclipseMenuUI
-
getButtonRect
Gets the bounds for the button part of theJideSplitButton
.- Parameters:
c
- the component. In this case, it is theJideSplitButton
.orientation
- the orientation.width
- the width of theJideSplitButton
height
- the height of theJideSplitButton
.- Returns:
- the bounds for the button part of the
JideSplitButton
.
-
getDropDownRect
Gets the bounds for the drop down part of theJideSplitButton
.- Parameters:
c
- the component. In this case, it is theJideSplitButton
.orientation
- the orientation.width
- the width of theJideSplitButton
height
- the height of theJideSplitButton
.- Returns:
- the bounds for the drop down part of the
JideSplitButton
.
-
paintSunkenBorder
-
paintSunken2Border
-
paintRaisedBorder
-
paintRaised2Border
-
paintBackground
Description copied from class:EclipseMenuUI
Draws the background of the menu item.- Overrides:
paintBackground
in classEclipseMenuUI
- Parameters:
g
- the paint graphicsmenuItem
- menu item to be paintedbgColor
- selection background color
-
paintArrow
-
getMinimumSize
- Overrides:
getMinimumSize
in classEclipseMenuItemUI
-
getMaximumSize
- Overrides:
getMaximumSize
in classEclipseMenuUI
-
getPreferredSize
- Overrides:
getPreferredSize
in classEclipseMenuUI
-
paintIcon
-
getOffset
protected int getOffset() -
loadActionMap
Populates Buttons actions.- Parameters:
map
- the action map to load
-
updateMnemonicBinding
protected void updateMnemonicBinding()- Overrides:
updateMnemonicBinding
in classEclipseMenuUI
-
downButtonPressed
-
getFirstParentMenuElement
-