public class BasicJideButtonUI extends JideButtonUI
| Modifier and Type | Field and Description |
|---|---|
protected Color |
_darkShadowColor |
protected Color |
_focusColor |
protected Color |
_highlight |
protected boolean |
_isFloatingIcon |
protected Color |
_lightHighlightColor |
protected ThemePainter |
_painter |
protected Color |
_shadowColor |
protected int |
defaultTextIconGap |
protected int |
defaultTextShiftOffset |
protected static Rectangle |
iconRect |
protected static Rectangle |
textRect |
protected static Rectangle |
viewRect |
| Constructor and Description |
|---|
BasicJideButtonUI() |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, updateprotected int defaultTextIconGap
protected int defaultTextShiftOffset
protected ThemePainter _painter
protected Color _shadowColor
protected Color _darkShadowColor
protected Color _highlight
protected Color _lightHighlightColor
protected Color _focusColor
protected boolean _isFloatingIcon
protected static Rectangle viewRect
protected static Rectangle textRect
protected static Rectangle iconRect
public static ComponentUI createUI(JComponent c)
protected String getPropertyPrefix()
public void installUI(JComponent c)
installUI in class ComponentUIprotected void installDefaults(AbstractButton b)
protected void installListeners(AbstractButton b)
protected void installKeyboardActions(AbstractButton b)
public void uninstallUI(JComponent c)
uninstallUI in class ComponentUIprotected void uninstallKeyboardActions(AbstractButton b)
protected void uninstallListeners(AbstractButton b)
protected void uninstallDefaults(AbstractButton b)
protected BasicButtonListener createButtonListener(AbstractButton b)
public int getDefaultTextIconGap(AbstractButton b)
protected Color getFocusColor()
public void paint(Graphics g, JComponent c)
paint in class ComponentUIprotected void paintIcon(AbstractButton b, Graphics g)
protected Icon getIcon(AbstractButton b)
protected boolean isFloatingIcon()
protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text)
g - the Graphics instancec - the componenttextRect - the rectangle of the texttext - the text to paintprotected Color getForegroundOfState(AbstractButton b)
protected void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)
g - Graphics contextb - Current button to rendertextRect - Bounding rectangle to render the text.text - String to renderprotected void paintBackground(Graphics g, AbstractButton b)
protected void clearTextShiftOffset()
protected void setTextShiftOffset()
protected int getTextShiftOffset()
public Dimension getMinimumSize(JComponent c)
getMinimumSize in class ComponentUIpublic Dimension getPreferredSize(JComponent c)
getPreferredSize in class ComponentUIpublic Dimension getMaximumSize(JComponent c)
getMaximumSize in class ComponentUIpublic ThemePainter getPainter()
protected void updateMargin(AbstractButton b)
public static boolean shouldWrapText(Component c)
c - the componentCopyright © 2017. All rights reserved.