org.pushingpixels.flamingo.internal.ui.ribbon.appmenu
Class BasicRibbonApplicationMenuButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
org.pushingpixels.flamingo.internal.ui.common.CommandButtonUI
org.pushingpixels.flamingo.internal.ui.common.BasicCommandButtonUI
org.pushingpixels.flamingo.internal.ui.ribbon.appmenu.BasicRibbonApplicationMenuButtonUI
public class BasicRibbonApplicationMenuButtonUI
- extends BasicCommandButtonUI
Basic UI for ribbon application menu button
JRibbonApplicationMenuButton
.
Fields inherited from class org.pushingpixels.flamingo.internal.ui.common.BasicCommandButtonUI |
basicPopupButtonListener, buttonRendererPane, commandButton, disposePopupsActionListener, DONT_DISPOSE_POPUPS, EMULATE_SQUARE_BUTTON, isUnderMouse, layoutInfo, layoutManager, popupActionIcon, popupActionListener, propertyChangeListener, rendererButton, rendererSeparator |
Method Summary |
protected void |
configureRenderer()
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
protected void |
installComponents()
Installs subcomponents on the associated command button. |
protected void |
installDefaults()
Installs defaults on the associated command button. |
void |
installUI(javax.swing.JComponent c)
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
protected void |
paintButtonBackground(java.awt.Graphics graphics,
java.awt.Rectangle toFill)
Paints the button background. |
protected void |
unconfigureRenderer()
|
Methods inherited from class org.pushingpixels.flamingo.internal.ui.common.BasicCommandButtonUI |
createButtonListener, createPopupActionIcon, createPopupActionListener, createRendererButton, getForegroundColor, getIconToPaint, getKeyTipAnchorCenterPoint, getLayoutGap, getLayoutInfo, getPreferredSize, installKeyboardActions, installListeners, isPaintingBackground, isPaintingSeparators, paintButtonBackground, paintButtonHorizontalSeparator, paintButtonIcon, paintButtonVerticalSeparator, paintPopupActionIcon, processPopupAction, syncDisabledIcon, syncIconDimension, toUseDisabledIcon, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, updateBorder, updateCustomDimension, updatePopupActionIcon |
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
applicationMenuButton
protected JRibbonApplicationMenuButton applicationMenuButton
- The associated application menu button.
BasicRibbonApplicationMenuButtonUI
public BasicRibbonApplicationMenuButtonUI()
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI
in class BasicCommandButtonUI
installDefaults
protected void installDefaults()
- Description copied from class:
BasicCommandButtonUI
- Installs defaults on the associated command button.
- Overrides:
installDefaults
in class BasicCommandButtonUI
configureRenderer
protected void configureRenderer()
- Overrides:
configureRenderer
in class BasicCommandButtonUI
unconfigureRenderer
protected void unconfigureRenderer()
- Overrides:
unconfigureRenderer
in class BasicCommandButtonUI
installComponents
protected void installComponents()
- Description copied from class:
BasicCommandButtonUI
- Installs subcomponents on the associated command button.
- Overrides:
installComponents
in class BasicCommandButtonUI
paint
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
- Overrides:
paint
in class BasicCommandButtonUI
paintButtonBackground
protected void paintButtonBackground(java.awt.Graphics graphics,
java.awt.Rectangle toFill)
- Paints the button background.
- Overrides:
paintButtonBackground
in class BasicCommandButtonUI
- Parameters:
graphics
- Graphics context.toFill
- Rectangle to fill.