public class EclipseJideSplitButtonUI extends EclipseMenuUI
Modifier and Type | Class | Description |
---|---|---|
protected class |
EclipseJideSplitButtonUI.MouseInputHandler |
EclipseMenuUI.ChangeHandler
Modifier and Type | Field | Description |
---|---|---|
protected java.awt.Color |
_darkShadowColor |
|
protected java.awt.Color |
_highlight |
|
protected java.awt.Color |
_lightHighlightColor |
|
protected ThemePainter |
_painter |
|
protected java.awt.Color |
_shadowColor |
|
protected int |
_splitButtonMargin |
|
protected int |
_splitButtonMarginOnMenu |
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultAccelEndGap, defaultShadowWidth, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground, shadowColor
changeListener, menuListener, propertyChangeListener
Constructor | Description |
---|---|
EclipseJideSplitButtonUI() |
Modifier and Type | Method | Description |
---|---|---|
protected javax.swing.event.MouseInputListener |
createMouseInputListener(javax.swing.JComponent c) |
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c) |
|
protected static void |
downButtonPressed(javax.swing.JMenu menu) |
|
protected java.awt.Rectangle |
getButtonRect(javax.swing.JComponent c,
int orientation,
int width,
int height) |
Gets the bounds for the button part of the
JideSplitButton . |
protected java.awt.Rectangle |
getDropDownRect(javax.swing.JComponent c,
int orientation,
int width,
int height) |
Gets the bounds for the drop down part of the
JideSplitButton . |
protected static java.awt.Container |
getFirstParentMenuElement(java.awt.Component comp) |
|
javax.swing.InputMap |
getInputMap(int condition,
javax.swing.JComponent c) |
Returns the InputMap for condition
condition . |
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c) |
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c) |
|
protected int |
getOffset() |
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
|
protected java.lang.String |
getPropertyPrefix() |
|
protected void |
installDefaults() |
|
protected void |
installKeyboardActions() |
|
protected void |
installListeners() |
|
static void |
loadActionMap(LazyActionMap map) |
Populates Buttons actions.
|
protected void |
paintArrow(javax.swing.JMenuItem menuItem,
java.awt.Graphics g) |
|
protected void |
paintBackground(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Color bgColor) |
Draws the background of the menu item.
|
protected void |
paintIcon(javax.swing.JMenuItem b,
java.awt.Graphics g) |
|
protected void |
paintRaised2Border(java.awt.Graphics g,
java.awt.Rectangle b) |
|
protected void |
paintRaisedBorder(java.awt.Graphics g,
java.awt.Rectangle b) |
|
protected void |
paintSunken2Border(java.awt.Graphics g,
java.awt.Rectangle b) |
|
protected void |
paintSunkenBorder(java.awt.Graphics g,
java.awt.Rectangle b) |
|
protected void |
uninstallDefaults() |
|
protected void |
uninstallKeyboardActions() |
|
protected void |
uninstallListeners() |
|
protected void |
updateMnemonicBinding() |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
createInputMap, doClick, getPainter, getPath, getPreferredMenuItemSize, installComponents, installUI, isDownArrowVisible, paint, paintMenuItem, uninstallComponents, uninstallUI, update
appendPath, createActionMap, createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createPropertyChangeListener, getActionMap, isMouseOver, paintText, setMouseOver, setupPostTimer
protected ThemePainter _painter
protected java.awt.Color _shadowColor
protected java.awt.Color _darkShadowColor
protected java.awt.Color _highlight
protected java.awt.Color _lightHighlightColor
protected int _splitButtonMargin
protected int _splitButtonMarginOnMenu
protected java.lang.String getPropertyPrefix()
getPropertyPrefix
in class EclipseMenuUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
protected void installDefaults()
installDefaults
in class EclipseMenuUI
protected void uninstallDefaults()
uninstallDefaults
in class EclipseMenuUI
protected void installListeners()
installListeners
in class EclipseMenuUI
protected void uninstallListeners()
uninstallListeners
in class EclipseMenuUI
public javax.swing.InputMap getInputMap(int condition, javax.swing.JComponent c)
condition
. Called as part of
installKeyboardActions
.condition
- the conditionc
- the componentprotected void installKeyboardActions()
installKeyboardActions
in class EclipseMenuUI
protected void uninstallKeyboardActions()
uninstallKeyboardActions
in class EclipseMenuUI
protected javax.swing.event.MouseInputListener createMouseInputListener(javax.swing.JComponent c)
createMouseInputListener
in class EclipseMenuUI
protected java.awt.Rectangle getButtonRect(javax.swing.JComponent c, int orientation, int width, int height)
JideSplitButton
.c
- the component. In this case, it is the JideSplitButton
.orientation
- the orientation.width
- the width of the JideSplitButton
height
- the height of the JideSplitButton
.JideSplitButton
.protected java.awt.Rectangle getDropDownRect(javax.swing.JComponent c, int orientation, int width, int height)
JideSplitButton
.c
- the component. In this case, it is the JideSplitButton
.orientation
- the orientation.width
- the width of the JideSplitButton
height
- the height of the JideSplitButton
.JideSplitButton
.protected void paintSunkenBorder(java.awt.Graphics g, java.awt.Rectangle b)
protected void paintSunken2Border(java.awt.Graphics g, java.awt.Rectangle b)
protected void paintRaisedBorder(java.awt.Graphics g, java.awt.Rectangle b)
protected void paintRaised2Border(java.awt.Graphics g, java.awt.Rectangle b)
protected void paintBackground(java.awt.Graphics g, javax.swing.JMenuItem menuItem, java.awt.Color bgColor)
EclipseMenuUI
paintBackground
in class EclipseMenuUI
g
- the paint graphicsmenuItem
- menu item to be paintedbgColor
- selection background colorprotected void paintArrow(javax.swing.JMenuItem menuItem, java.awt.Graphics g)
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize
in class EclipseMenuItemUI
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize
in class EclipseMenuUI
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class EclipseMenuUI
protected void paintIcon(javax.swing.JMenuItem b, java.awt.Graphics g)
protected int getOffset()
public static void loadActionMap(LazyActionMap map)
map
- the action map to loadprotected void updateMnemonicBinding()
updateMnemonicBinding
in class EclipseMenuUI
protected static void downButtonPressed(javax.swing.JMenu menu)
protected static java.awt.Container getFirstParentMenuElement(java.awt.Component comp)