Class EclipseJideSplitButtonUI


  • public class EclipseJideSplitButtonUI
    extends EclipseMenuUI
    EclipseJideSplitButtonUI implementation.
    • Field Detail

      • _shadowColor

        protected java.awt.Color _shadowColor
      • _darkShadowColor

        protected java.awt.Color _darkShadowColor
      • _highlight

        protected java.awt.Color _highlight
      • _lightHighlightColor

        protected java.awt.Color _lightHighlightColor
      • _splitButtonMargin

        protected int _splitButtonMargin
      • _splitButtonMarginOnMenu

        protected int _splitButtonMarginOnMenu
    • Constructor Detail

      • EclipseJideSplitButtonUI

        public EclipseJideSplitButtonUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      • getInputMap

        public javax.swing.InputMap getInputMap​(int condition,
                                                javax.swing.JComponent c)
        Returns the InputMap for condition condition. Called as part of installKeyboardActions.
        Parameters:
        condition - the condition
        c - the component
        Returns:
        the input map.
      • createMouseInputListener

        protected javax.swing.event.MouseInputListener createMouseInputListener​(javax.swing.JComponent c)
        Overrides:
        createMouseInputListener in class EclipseMenuUI
      • getButtonRect

        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.
        Parameters:
        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.
        Returns:
        the bounds for the button part of the JideSplitButton.
      • getDropDownRect

        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.
        Parameters:
        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.
        Returns:
        the bounds for the drop down part of the JideSplitButton.
      • paintSunkenBorder

        protected void paintSunkenBorder​(java.awt.Graphics g,
                                         java.awt.Rectangle b)
      • paintSunken2Border

        protected void paintSunken2Border​(java.awt.Graphics g,
                                          java.awt.Rectangle b)
      • paintRaisedBorder

        protected void paintRaisedBorder​(java.awt.Graphics g,
                                         java.awt.Rectangle b)
      • paintRaised2Border

        protected void paintRaised2Border​(java.awt.Graphics g,
                                          java.awt.Rectangle b)
      • paintBackground

        protected void paintBackground​(java.awt.Graphics g,
                                       javax.swing.JMenuItem menuItem,
                                       java.awt.Color bgColor)
        Description copied from class: EclipseMenuUI
        Draws the background of the menu item.
        Overrides:
        paintBackground in class EclipseMenuUI
        Parameters:
        g - the paint graphics
        menuItem - menu item to be painted
        bgColor - selection background color
      • paintArrow

        protected void paintArrow​(javax.swing.JMenuItem menuItem,
                                  java.awt.Graphics g)
      • getMaximumSize

        public java.awt.Dimension getMaximumSize​(javax.swing.JComponent c)
        Overrides:
        getMaximumSize in class EclipseMenuUI
      • getPreferredSize

        public java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)
        Overrides:
        getPreferredSize in class EclipseMenuUI
      • paintIcon

        protected void paintIcon​(javax.swing.JMenuItem b,
                                 java.awt.Graphics g)
      • getOffset

        protected int getOffset()
      • loadActionMap

        public static void loadActionMap​(LazyActionMap map)
        Populates Buttons actions.
        Parameters:
        map - the action map to load
      • downButtonPressed

        protected static void downButtonPressed​(javax.swing.JMenu menu)
      • getFirstParentMenuElement

        protected static java.awt.Container getFirstParentMenuElement​(java.awt.Component comp)