ActionPopupTransitionAwareUI, org.pushingpixels.substance.internal.animation.TransitionAwareUISubstanceCommandToggleMenuButtonUIpublic class SubstanceCommandToggleButtonUI extends BasicCommandToggleButtonUI implements ActionPopupTransitionAwareUI
JCommandToggleButton in Substance look and feel.| Modifier and Type | Field | Description |
|---|---|---|
protected org.pushingpixels.substance.internal.utils.ButtonBackgroundDelegate |
backgroundDelegate |
Delegate for painting the background.
|
protected GlowingResizableIcon |
glowingIcon |
The matching glowing icon.
|
protected java.beans.PropertyChangeListener |
substancePropertyListener |
Property change listener.
|
protected CommandButtonVisualStateTracker |
substanceVisualStateTracker |
Tracker for visual state transitions.
|
basicPopupButtonListener, commandButton, disposePopupsActionListener, DONT_DISPOSE_POPUPS, EMULATE_SQUARE_BUTTON, layoutInfo, layoutManager, popupActionIcon, popupActionListener, propertyChangeListener| Constructor | Description |
|---|---|
SubstanceCommandToggleButtonUI() |
Creates a new UI delegate for ribbon button.
|
| Modifier and Type | Method | Description |
|---|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c) |
|
org.pushingpixels.substance.internal.animation.StateTransitionTracker |
getActionTransitionTracker() |
|
protected java.awt.Color |
getForegroundColor(org.pushingpixels.substance.internal.animation.StateTransitionTracker.ModelStateInfo modelStateInfo) |
|
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 |
paintButtonIcon(java.awt.Graphics g,
java.awt.Rectangle iconRect) |
|
protected void |
syncDisabledIcon() |
|
protected void |
trackGlowingIcon() |
Tracks possible usage of glowing icon.
|
protected void |
uninstallListeners() |
Uninstalls listeners from the associated command button.
|
protected void |
updateBorder() |
createButtonListener, createPopupActionIcon, createPopupActionListener, getIconToPaint, getKeyTipAnchorCenterPoint, getLayoutGap, getLayoutInfo, installComponents, installKeyboardActions, installUI, processPopupAction, syncIconDimension, toUseDisabledIcon, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI, update, updateCustomDimensionupdatePopupActionIconprotected org.pushingpixels.substance.internal.utils.ButtonBackgroundDelegate backgroundDelegate
protected java.beans.PropertyChangeListener substancePropertyListener
protected CommandButtonVisualStateTracker substanceVisualStateTracker
protected GlowingResizableIcon glowingIcon
AnimationConfigurationManager.isAnimationAllowed(AnimationFacet, Component) returns
true on SubstanceSlices.AnimationFacet.ICON_GLOW.public SubstanceCommandToggleButtonUI()
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
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 paintButtonIcon(java.awt.Graphics g,
java.awt.Rectangle iconRect)
protected boolean isPaintingBackground()
BasicCommandButtonUIisPaintingBackground in class BasicCommandButtonUItrue if the button background is painted.protected boolean isPaintingSeparators()
BasicCommandButtonUIisPaintingSeparators in class BasicCommandToggleButtonUItrue if the action-popup areas separator is painted.public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.ComponentUIprotected java.awt.Color getForegroundColor(org.pushingpixels.substance.internal.animation.StateTransitionTracker.ModelStateInfo modelStateInfo)
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class BasicCommandButtonUIprotected void trackGlowingIcon()
protected void syncDisabledIcon()
syncDisabledIcon in class BasicCommandButtonUIpublic org.pushingpixels.substance.internal.animation.StateTransitionTracker getActionTransitionTracker()
getActionTransitionTracker in interface ActionPopupTransitionAwareUIpublic org.pushingpixels.substance.internal.animation.StateTransitionTracker getPopupTransitionTracker()
getPopupTransitionTracker in interface ActionPopupTransitionAwareUIpublic 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.TransitionAwareUI