| javax.swing.plaf.basic.BasicButtonUI org.jvnet.substance.SubstanceButtonUI
All known Subclasses: org.jvnet.substance.netbeans.NetbeansSubstanceButtonUI,
SubstanceButtonUI | public class SubstanceButtonUI extends BasicButtonUI (Code) | | UI for 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, JComponent c, 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) |
BORDER_COMPUTED | final public static String BORDER_COMPUTED(Code) | | Property used during the button shaper switch.
|
BORDER_COMPUTING | final public static String BORDER_COMPUTING(Code) | | Property used during the button shaper switch.
|
BORDER_ORIGINAL | final public static String BORDER_ORIGINAL(Code) | | Property used to store the original (pre-Substance) button
border.
|
ICON_ORIGINAL | final public static String ICON_ORIGINAL(Code) | | Property used to store the original button icon.
|
IS_TITLE_CLOSE_BUTTON | final public static String IS_TITLE_CLOSE_BUTTON(Code) | | Internal property used to mark close buttons on title panes.
|
LOCK_OPACITY | final public static String LOCK_OPACITY(Code) | | Property used to lock the original (pre-Substance) button
opacity.
|
OPACITY_ORIGINAL | final public static String OPACITY_ORIGINAL(Code) | | Property used to store the original (pre-Substance) button
opacity.
|
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.
|
SubstanceButtonUI | public SubstanceButtonUI()(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)
|
|
|