com.birosoft.liquid
Class LiquidButtonUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ButtonUI
          extended by javax.swing.plaf.basic.BasicButtonUI
              extended by com.birosoft.liquid.LiquidButtonUI
Direct Known Subclasses:
LiquidSpinnerButtonUI, LiquidToggleButtonUI, LiquidWindowButtonUI

public class LiquidButtonUI
extends javax.swing.plaf.basic.BasicButtonUI

This class represents the UI delegate for the JButton component.


Field Summary
static boolean HINT_DO_NOT_PAINT_TOOLBARBUTTON_IF_NO_MOUSE_OVER
           
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
LiquidButtonUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Creates the UI delegate for the given component.
 Skin getSkinButton()
           
 Skin getSkinToolbar()
           
 void installDefaults(javax.swing.AbstractButton b)
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
protected  void paintButtonPressed(java.awt.Graphics g, javax.swing.AbstractButton b)
          We don't want to paint the pressed state here - the skin does it for us.
protected  void paintFocus(java.awt.Graphics g, javax.swing.AbstractButton b, java.awt.Rectangle viewRect, java.awt.Rectangle textRect, java.awt.Rectangle iconRect)
           
 void paintFocus(java.awt.Graphics g, int offset)
           
 void uninstallDefaults(javax.swing.AbstractButton b)
           
 void update(java.awt.Graphics g, javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintIcon, paintText, 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

HINT_DO_NOT_PAINT_TOOLBARBUTTON_IF_NO_MOUSE_OVER

public static final boolean HINT_DO_NOT_PAINT_TOOLBARBUTTON_IF_NO_MOUSE_OVER
See Also:
Constant Field Values
Constructor Detail

LiquidButtonUI

public LiquidButtonUI()
Method Detail

installDefaults

public void installDefaults(javax.swing.AbstractButton b)
Overrides:
installDefaults in class javax.swing.plaf.basic.BasicButtonUI

uninstallDefaults

public void uninstallDefaults(javax.swing.AbstractButton b)
Overrides:
uninstallDefaults in class javax.swing.plaf.basic.BasicButtonUI

paintFocus

protected void paintFocus(java.awt.Graphics g,
                          javax.swing.AbstractButton b,
                          java.awt.Rectangle viewRect,
                          java.awt.Rectangle textRect,
                          java.awt.Rectangle iconRect)
Overrides:
paintFocus in class javax.swing.plaf.basic.BasicButtonUI

paintFocus

public void paintFocus(java.awt.Graphics g,
                       int offset)

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Creates the UI delegate for the given component.

Parameters:
c - The component to create its UI delegate.
Returns:
The UI delegate for the given component.

paintButtonPressed

protected void paintButtonPressed(java.awt.Graphics g,
                                  javax.swing.AbstractButton b)
We don't want to paint the pressed state here - the skin does it for us.

Overrides:
paintButtonPressed in class javax.swing.plaf.basic.BasicButtonUI
See Also:
BasicButtonUI.paintButtonPressed(Graphics, AbstractButton)

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.basic.BasicButtonUI

getSkinButton

public Skin getSkinButton()

getSkinToolbar

public Skin getSkinToolbar()

update

public void update(java.awt.Graphics g,
                   javax.swing.JComponent c)
Overrides:
update in class javax.swing.plaf.ComponentUI