Class BasicRibbonTaskToggleButtonUI
- 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.common.BasicCommandToggleButtonUI
-
- org.pushingpixels.flamingo.internal.ui.ribbon.BasicRibbonTaskToggleButtonUI
-
public class BasicRibbonTaskToggleButtonUI extends BasicCommandToggleButtonUI
Basic UI for toggle button of ribbon tasksJRibbonTaskToggleButton.
-
-
Field Summary
Fields Modifier and Type Field Description protected PopupPanelManager.PopupListenerpopupListener-
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
-
-
Constructor Summary
Constructors Constructor Description BasicRibbonTaskToggleButtonUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUIcreateUI(JComponent c)DimensiongetMinimumSize(JComponent c)DimensiongetPreferredSize(JComponent c)protected voidinstallDefaults()Installs defaults on the associated command button.protected voidinstallListeners()Installs listeners on the associated command button.protected voidpaintButtonBackground(Graphics graphics, Rectangle toFill)Paints the button background.protected voidpaintText(Graphics g)protected voiduninstallListeners()Uninstalls listeners from the associated command button.voidupdate(Graphics g, JComponent c)-
Methods inherited from class org.pushingpixels.flamingo.internal.ui.common.BasicCommandToggleButtonUI
createRendererButton, isPaintingSeparators, updatePopupActionIcon
-
Methods inherited from class org.pushingpixels.flamingo.internal.ui.common.BasicCommandButtonUI
configureRenderer, createButtonListener, createPopupActionIcon, createPopupActionListener, getForegroundColor, getIconToPaint, getKeyTipAnchorCenterPoint, getLayoutGap, getLayoutInfo, installComponents, installKeyboardActions, installUI, isPaintingBackground, paint, paintButtonBackground, paintButtonHorizontalSeparator, paintButtonIcon, paintButtonVerticalSeparator, paintPopupActionIcon, processPopupAction, syncDisabledIcon, syncIconDimension, toUseDisabledIcon, unconfigureRenderer, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI, updateBorder, updateCustomDimension
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize
-
-
-
-
Field Detail
-
popupListener
protected PopupPanelManager.PopupListener popupListener
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installDefaults
protected void installDefaults()
Description copied from class:BasicCommandButtonUIInstalls defaults on the associated command button.- Overrides:
installDefaultsin classBasicCommandButtonUI
-
installListeners
protected void installListeners()
Description copied from class:BasicCommandButtonUIInstalls listeners on the associated command button.- Overrides:
installListenersin classBasicCommandButtonUI
-
uninstallListeners
protected void uninstallListeners()
Description copied from class:BasicCommandButtonUIUninstalls listeners from the associated command button.- Overrides:
uninstallListenersin classBasicCommandButtonUI
-
update
public void update(Graphics g, JComponent c)
- Overrides:
updatein classBasicCommandButtonUI
-
paintText
protected void paintText(Graphics g)
-
paintButtonBackground
protected void paintButtonBackground(Graphics graphics, Rectangle toFill)
Paints the button background.- Overrides:
paintButtonBackgroundin classBasicCommandButtonUI- Parameters:
graphics- Graphics context.toFill- Rectangle to fill.
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSizein classBasicCommandButtonUI
-
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Overrides:
getMinimumSizein classComponentUI
-
-