ActionPopupTransitionAwareUI, org.pushingpixels.substance.internal.animation.TransitionAwareUISubstanceCommandMenuButtonUIpublic class SubstanceCommandButtonUI extends BasicCommandButtonUI implements ActionPopupTransitionAwareUI
JCommandButton in Substance look and feel.basicPopupButtonListener, commandButton, disposePopupsActionListener, DONT_DISPOSE_POPUPS, EMULATE_SQUARE_BUTTON, layoutInfo, layoutManager, popupActionIcon, popupActionListener, propertyChangeListener| Constructor | Description |
|---|---|
SubstanceCommandButtonUI(JCommandButton button) |
Creates a new UI delegate for ribbon button.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected org.pushingpixels.neon.icon.ResizableIcon |
createPopupActionIcon() |
Creates the icon for the popup area.
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent comp) |
|
org.pushingpixels.substance.internal.animation.StateTransitionTracker |
getActionTransitionTracker() |
|
org.pushingpixels.substance.internal.animation.StateTransitionTracker |
getPopupTransitionTracker() |
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
|
org.pushingpixels.substance.internal.animation.StateTransitionTracker |
getTransitionTracker() |
|
protected void |
installDefaults() |
Installs defaults on the associated command button.
|
protected void |
installListeners() |
Installs listeners on the associated command button.
|
boolean |
isInside(java.awt.event.MouseEvent me) |
|
protected boolean |
isPaintingBackground() |
Returns indication whether the button background is painted.
|
protected boolean |
isPaintingSeparators() |
Returns indication whether the action-popup areas separator is painted.
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
|
protected void |
syncDisabledIcon() |
|
protected void |
trackGlowingIcon() |
Tracks possible usage of glowing icon.
|
protected void |
uninstallListeners() |
Uninstalls listeners from the associated command button.
|
void |
update(java.awt.Graphics g,
javax.swing.JComponent c) |
|
protected void |
updateBorder() |
createButtonListener, createPopupActionListener, getIconToPaint, getKeyTipAnchorCenterPoint, getLayoutGap, getLayoutInfo, installComponents, installKeyboardActions, installUI, processPopupAction, syncIconDimension, toUseDisabledIcon, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI, updateCustomDimension, updatePopupActionIconpublic SubstanceCommandButtonUI(JCommandButton button)
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)
protected void installDefaults()
BasicCommandButtonUIinstallDefaults in class BasicCommandButtonUIprotected void updateBorder()
updateBorder in class BasicCommandButtonUIprotected void installListeners()
BasicCommandButtonUIinstallListeners in class BasicCommandButtonUIprotected void uninstallListeners()
BasicCommandButtonUIuninstallListeners in class BasicCommandButtonUIprotected void trackGlowingIcon()
protected boolean isPaintingBackground()
BasicCommandButtonUIisPaintingBackground in class BasicCommandButtonUItrue if the button background is painted.protected boolean isPaintingSeparators()
BasicCommandButtonUIisPaintingSeparators in class BasicCommandButtonUItrue if the action-popup areas separator is painted.protected org.pushingpixels.neon.icon.ResizableIcon createPopupActionIcon()
BasicCommandButtonUIcreatePopupActionIcon in class BasicCommandButtonUIpublic void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.ComponentUIpublic void update(java.awt.Graphics g,
javax.swing.JComponent c)
update in class BasicCommandButtonUIpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class BasicCommandButtonUIprotected void syncDisabledIcon()
syncDisabledIcon in class BasicCommandButtonUIpublic org.pushingpixels.substance.internal.animation.StateTransitionTracker getTransitionTracker()
getTransitionTracker in interface org.pushingpixels.substance.internal.animation.TransitionAwareUIpublic boolean isInside(java.awt.event.MouseEvent me)
isInside in interface org.pushingpixels.substance.internal.animation.TransitionAwareUIpublic org.pushingpixels.substance.internal.animation.StateTransitionTracker getActionTransitionTracker()
getActionTransitionTracker in interface ActionPopupTransitionAwareUIpublic org.pushingpixels.substance.internal.animation.StateTransitionTracker getPopupTransitionTracker()
getPopupTransitionTracker in interface ActionPopupTransitionAwareUI