Sky View Café - Java

org.shetline.gui.laf.zinc
Class ZincButtonUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ButtonUI
          extended by javax.swing.plaf.basic.BasicButtonUI
              extended by javax.swing.plaf.metal.MetalButtonUI
                  extended by org.shetline.gui.laf.zinc.ZincButtonUI

public class ZincButtonUI
extends MetalButtonUI


Nested Class Summary
static class ZincButtonUI.ZincButtonBorder
           
 
Field Summary
protected  Color background
           
static Insets BORDER_INSETS
           
static Insets BORDER_INSETS_FOR_COMBO_BOX
           
protected  Color borderColor
           
protected  Color borderColorDisabled
           
protected  Color borderColorEmphasized
           
static Insets BUTTON_MARGIN
           
static int BUTTON_ROUNDING
           
static int BUTTON_ROUNDING_CLIP
           
static Border BUTTON_SHARED_BORDER
           
static Border COMBO_BOX_BUTTON_SHARED_BORDER
           
protected  Color fillColor
           
protected  Color fillColorDisabled
           
protected  Color fillColorEmphasized
           
protected  Color gradientBase
           
protected  Color gradientBaseEmphasized
           
protected  Color gradientHighlight
           
protected  Color gradientHighlightEmphasized
           
protected  TexturePaint texture
           
protected  TexturePaint textureEmphasized
           
protected  int textureLastHeight
           
 
Fields inherited from class javax.swing.plaf.metal.MetalButtonUI
disabledTextColor, focusColor, selectColor
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
ZincButtonUI()
           
 
Method Summary
static ComponentUI createUI(JComponent comp)
           
 Dimension getMinimumSize(JComponent c)
           
 Dimension getPreferredSize(JComponent c)
           
 void installDefaults(AbstractButton b)
           
 void installUI(JComponent c)
           
 void paintButtonInterior(Graphics g, JComponent c, boolean pressed)
           
protected  void paintButtonPressed(Graphics g, AbstractButton b)
           
protected  void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
 void update(Graphics g, JComponent c)
           
 
Methods inherited from class javax.swing.plaf.metal.MetalButtonUI
createButtonListener, getDisabledTextColor, getFocusColor, getSelectColor, paintText, uninstallDefaults
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, paint, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BORDER_INSETS

public static final Insets BORDER_INSETS

BORDER_INSETS_FOR_COMBO_BOX

public static final Insets BORDER_INSETS_FOR_COMBO_BOX

BUTTON_MARGIN

public static final Insets BUTTON_MARGIN

BUTTON_ROUNDING

public static final int BUTTON_ROUNDING
See Also:
Constant Field Values

BUTTON_ROUNDING_CLIP

public static final int BUTTON_ROUNDING_CLIP
See Also:
Constant Field Values

background

protected Color background

borderColor

protected Color borderColor

borderColorDisabled

protected Color borderColorDisabled

borderColorEmphasized

protected Color borderColorEmphasized

fillColor

protected Color fillColor

fillColorDisabled

protected Color fillColorDisabled

fillColorEmphasized

protected Color fillColorEmphasized

gradientBase

protected Color gradientBase

gradientBaseEmphasized

protected Color gradientBaseEmphasized

gradientHighlight

protected Color gradientHighlight

gradientHighlightEmphasized

protected Color gradientHighlightEmphasized

texture

protected TexturePaint texture

textureEmphasized

protected TexturePaint textureEmphasized

textureLastHeight

protected int textureLastHeight

BUTTON_SHARED_BORDER

public static Border BUTTON_SHARED_BORDER

COMBO_BOX_BUTTON_SHARED_BORDER

public static Border COMBO_BOX_BUTTON_SHARED_BORDER
Constructor Detail

ZincButtonUI

public ZincButtonUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent comp)

installUI

public void installUI(JComponent c)
Overrides:
installUI in class BasicButtonUI

installDefaults

public void installDefaults(AbstractButton b)
Overrides:
installDefaults in class MetalButtonUI

getMinimumSize

public Dimension getMinimumSize(JComponent c)
Overrides:
getMinimumSize in class BasicButtonUI

getPreferredSize

public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class BasicButtonUI

update

public void update(Graphics g,
                   JComponent c)
Overrides:
update in class MetalButtonUI

paintButtonInterior

public void paintButtonInterior(Graphics g,
                                JComponent c,
                                boolean pressed)

paintButtonPressed

protected void paintButtonPressed(Graphics g,
                                  AbstractButton b)
Overrides:
paintButtonPressed in class MetalButtonUI

paintFocus

protected void paintFocus(Graphics g,
                          AbstractButton b,
                          Rectangle viewRect,
                          Rectangle textRect,
                          Rectangle iconRect)
Overrides:
paintFocus in class MetalButtonUI

Sky View Café - Java