public class BasicJideButtonUI extends JideButtonUI
Modifier and Type | Field and Description |
---|---|
protected java.awt.Color |
_darkShadowColor |
protected java.awt.Color |
_focusColor |
protected java.awt.Color |
_highlight |
protected boolean |
_isFloatingIcon |
protected java.awt.Color |
_lightHighlightColor |
protected ThemePainter |
_painter |
protected java.awt.Color |
_shadowColor |
protected int |
defaultTextIconGap |
protected int |
defaultTextShiftOffset |
protected static java.awt.Rectangle |
iconRect |
protected static java.awt.Rectangle |
textRect |
protected static java.awt.Rectangle |
viewRect |
Constructor and Description |
---|
BasicJideButtonUI() |
Modifier and Type | Method and Description |
---|---|
protected void |
clearTextShiftOffset() |
protected javax.swing.plaf.basic.BasicButtonListener |
createButtonListener(javax.swing.AbstractButton b) |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c) |
int |
getDefaultTextIconGap(javax.swing.AbstractButton b) |
protected java.awt.Color |
getFocusColor() |
protected java.awt.Color |
getForegroundOfState(javax.swing.AbstractButton b) |
protected javax.swing.Icon |
getIcon(javax.swing.AbstractButton b) |
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c) |
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c) |
ThemePainter |
getPainter() |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
protected java.lang.String |
getPropertyPrefix() |
protected int |
getTextShiftOffset() |
protected void |
installDefaults(javax.swing.AbstractButton b) |
protected void |
installKeyboardActions(javax.swing.AbstractButton b) |
protected void |
installListeners(javax.swing.AbstractButton b) |
void |
installUI(javax.swing.JComponent c) |
protected boolean |
isFloatingIcon() |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
protected void |
paintBackground(java.awt.Graphics g,
javax.swing.AbstractButton b) |
protected void |
paintIcon(javax.swing.AbstractButton b,
java.awt.Graphics g) |
protected void |
paintText(java.awt.Graphics g,
javax.swing.AbstractButton b,
java.awt.Rectangle textRect,
java.lang.String text)
Method which renders the text of the current button.
|
protected void |
paintText(java.awt.Graphics g,
javax.swing.JComponent c,
java.awt.Rectangle textRect,
java.lang.String text)
As of Java 2 platform v 1.4 this method should not be used or overridden.
|
protected void |
setTextShiftOffset() |
static boolean |
shouldWrapText(java.awt.Component c)
Checks if we should wrap text on a button.
|
protected void |
uninstallDefaults(javax.swing.AbstractButton b) |
protected void |
uninstallKeyboardActions(javax.swing.AbstractButton b) |
protected void |
uninstallListeners(javax.swing.AbstractButton b) |
void |
uninstallUI(javax.swing.JComponent c) |
protected void |
updateMargin(javax.swing.AbstractButton b) |
protected int defaultTextIconGap
protected int defaultTextShiftOffset
protected ThemePainter _painter
protected java.awt.Color _shadowColor
protected java.awt.Color _darkShadowColor
protected java.awt.Color _highlight
protected java.awt.Color _lightHighlightColor
protected java.awt.Color _focusColor
protected boolean _isFloatingIcon
protected static java.awt.Rectangle viewRect
protected static java.awt.Rectangle textRect
protected static java.awt.Rectangle iconRect
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
protected java.lang.String getPropertyPrefix()
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.ComponentUI
protected void installDefaults(javax.swing.AbstractButton b)
protected void installListeners(javax.swing.AbstractButton b)
protected void installKeyboardActions(javax.swing.AbstractButton b)
public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.ComponentUI
protected void uninstallKeyboardActions(javax.swing.AbstractButton b)
protected void uninstallListeners(javax.swing.AbstractButton b)
protected void uninstallDefaults(javax.swing.AbstractButton b)
protected javax.swing.plaf.basic.BasicButtonListener createButtonListener(javax.swing.AbstractButton b)
public int getDefaultTextIconGap(javax.swing.AbstractButton b)
protected java.awt.Color getFocusColor()
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.ComponentUI
protected void paintIcon(javax.swing.AbstractButton b, java.awt.Graphics g)
protected javax.swing.Icon getIcon(javax.swing.AbstractButton b)
protected boolean isFloatingIcon()
protected void paintText(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle textRect, java.lang.String text)
protected java.awt.Color getForegroundOfState(javax.swing.AbstractButton b)
protected void paintText(java.awt.Graphics g, javax.swing.AbstractButton b, java.awt.Rectangle textRect, java.lang.String text)
g
- Graphics contextb
- Current button to rendertextRect
- Bounding rectangle to render the text.text
- String to renderprotected void paintBackground(java.awt.Graphics g, javax.swing.AbstractButton b)
protected void clearTextShiftOffset()
protected void setTextShiftOffset()
protected int getTextShiftOffset()
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize
in class javax.swing.plaf.ComponentUI
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.ComponentUI
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize
in class javax.swing.plaf.ComponentUI
public ThemePainter getPainter()
protected void updateMargin(javax.swing.AbstractButton b)
public static boolean shouldWrapText(java.awt.Component c)
c
-