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 Colorprotected Colorprotected Colorprotected ThemePainterprotected Colorprotected intprotected intFields inherited from class com.jidesoft.plaf.eclipse.EclipseMenuUI
changeListener, menuListener, propertyChangeListenerFields 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 MouseInputListenerstatic ComponentUIprotected static voiddownButtonPressed(JMenu menu) protected RectanglegetButtonRect(JComponent c, int orientation, int width, int height) Gets the bounds for the button part of theJideSplitButton.protected RectanglegetDropDownRect(JComponent c, int orientation, int width, int height) Gets the bounds for the drop down part of theJideSplitButton.protected static ContainergetInputMap(int condition, JComponent c) Returns the InputMap for conditioncondition.protected intprotected Stringprotected voidprotected voidprotected voidstatic voidPopulates Buttons actions.protected voidpaintArrow(JMenuItem menuItem, Graphics g) protected voidpaintBackground(Graphics g, JMenuItem menuItem, Color bgColor) Draws the background of the menu item.protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidMethods inherited from class com.jidesoft.plaf.eclipse.EclipseMenuUI
appendPath, createActionMap, createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createPropertyChangeListener, getActionMap, isMouseOver, paintText, setMouseOver, setupPostTimerMethods inherited from class com.jidesoft.plaf.eclipse.EclipseMenuItemUI
createInputMap, doClick, getPainter, getPath, getPreferredMenuItemSize, installComponents, installUI, isDownArrowVisible, paint, paintMenuItem, uninstallComponents, uninstallUI, updateMethods 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:
getPropertyPrefixin classEclipseMenuUI
-
createUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classEclipseMenuUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaultsin classEclipseMenuUI
-
installListeners
protected void installListeners()- Overrides:
installListenersin classEclipseMenuUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin 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:
installKeyboardActionsin classEclipseMenuUI
-
uninstallKeyboardActions
protected void uninstallKeyboardActions()- Overrides:
uninstallKeyboardActionsin classEclipseMenuUI
-
createMouseInputListener
- Overrides:
createMouseInputListenerin 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 theJideSplitButtonheight- 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 theJideSplitButtonheight- the height of theJideSplitButton.- Returns:
- the bounds for the drop down part of the
JideSplitButton.
-
paintSunkenBorder
-
paintSunken2Border
-
paintRaisedBorder
-
paintRaised2Border
-
paintBackground
Description copied from class:EclipseMenuUIDraws the background of the menu item.- Overrides:
paintBackgroundin classEclipseMenuUI- Parameters:
g- the paint graphicsmenuItem- menu item to be paintedbgColor- selection background color
-
paintArrow
-
getMinimumSize
- Overrides:
getMinimumSizein classEclipseMenuItemUI
-
getMaximumSize
- Overrides:
getMaximumSizein classEclipseMenuUI
-
getPreferredSize
- Overrides:
getPreferredSizein classEclipseMenuUI
-
paintIcon
-
getOffset
protected int getOffset() -
loadActionMap
Populates Buttons actions.- Parameters:
map- the action map to load
-
updateMnemonicBinding
protected void updateMnemonicBinding()- Overrides:
updateMnemonicBindingin classEclipseMenuUI
-
downButtonPressed
-
getFirstParentMenuElement
-