| javax.swing.plaf.basic.BasicButtonUI javax.swing.plaf.basic.BasicToggleButtonUI org.jvnet.substance.SubstanceToggleButtonUI
All known Subclasses: org.jvnet.substance.netbeans.NetbeansSubstanceToggleButtonUI,
SubstanceToggleButtonUI | public class SubstanceToggleButtonUI extends BasicToggleButtonUI (Code) | | UI for toggle buttons in Substance look and feel.
author: Kirill Grouchnikov |
Method Summary | |
public boolean | contains(JComponent c, int x, int y) | protected BasicButtonListener | createButtonListener(AbstractButton b) | public static ComponentUI | createUI(JComponent b) | public Dimension | getPreferredSize(JComponent c) | public void | installDefaults(AbstractButton b) | protected void | installListeners(AbstractButton b) | public void | paint(Graphics g, JComponent c) | protected float | paintButtonText(Graphics g, AbstractButton button, Rectangle textRect, String text) Paints the text. | protected void | paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) | protected void | paintIcon(Graphics g, AbstractButton b, Rectangle iconRect) | protected void | trackGlowingIcon(AbstractButton b) Tracks possible usage of glowing icon. | public void | uninstallDefaults(AbstractButton b) | protected void | uninstallListeners(AbstractButton b) | public void | update(Graphics g, JComponent c) |
glowingIcon | protected GlowingIcon glowingIcon(Code) | | The matching glowing icon. Is used only when
FadeConfigurationManager.fadeAllowed(FadeKindComponent) returns
true on
FadeKind.ICON_GLOW .
|
substanceFadeStateListener | protected FadeStateListener substanceFadeStateListener(Code) | | Listener for fade animations.
|
SubstanceToggleButtonUI | public SubstanceToggleButtonUI()(Code) | | Simple constructor.
|
paintButtonText | protected float paintButtonText(Graphics g, AbstractButton button, Rectangle textRect, String text)(Code) | | Paints the text.
Parameters: g - Graphic context Parameters: button - Button Parameters: textRect - Text rectangle Parameters: text - Text to paint Text alpha channel. |
trackGlowingIcon | protected void trackGlowingIcon(AbstractButton b)(Code) | | Tracks possible usage of glowing icon.
Parameters: b - Button. |
Methods inherited from javax.swing.plaf.basic.BasicButtonUI | protected void clearTextShiftOffset()(Code)(Java Doc) protected BasicButtonListener createButtonListener(AbstractButton b)(Code)(Java Doc) public static ComponentUI createUI(JComponent c)(Code)(Java Doc) public int getBaseline(JComponent c, int width, int height)(Code)(Java Doc) public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)(Code)(Java Doc) public int getDefaultTextIconGap(AbstractButton b)(Code)(Java Doc) public Dimension getMaximumSize(JComponent c)(Code)(Java Doc) public Dimension getMinimumSize(JComponent c)(Code)(Java Doc) public Dimension getPreferredSize(JComponent c)(Code)(Java Doc) protected String getPropertyPrefix()(Code)(Java Doc) protected int getTextShiftOffset()(Code)(Java Doc) protected void installDefaults(AbstractButton b)(Code)(Java Doc) protected void installKeyboardActions(AbstractButton b)(Code)(Java Doc) protected void installListeners(AbstractButton b)(Code)(Java Doc) public void installUI(JComponent c)(Code)(Java Doc) public void paint(Graphics g, JComponent c)(Code)(Java Doc) protected void paintButtonPressed(Graphics g, AbstractButton b)(Code)(Java Doc) protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)(Code)(Java Doc) protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect)(Code)(Java Doc) protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text)(Code)(Java Doc) protected void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)(Code)(Java Doc) protected void setTextShiftOffset()(Code)(Java Doc) protected void uninstallDefaults(AbstractButton b)(Code)(Java Doc) protected void uninstallKeyboardActions(AbstractButton b)(Code)(Java Doc) protected void uninstallListeners(AbstractButton b)(Code)(Java Doc) public void uninstallUI(JComponent c)(Code)(Java Doc)
|
|
|