com.birosoft.liquid
Class LiquidSpinnerButtonUI

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
                  extended by com.birosoft.liquid.LiquidSpinnerButtonUI

public class LiquidSpinnerButtonUI
extends LiquidButtonUI

A button placed in the title frame of a internal frame to enable closing, iconifying and maximizing of the internal frame.


Field Summary
 
Fields inherited from class com.birosoft.liquid.LiquidButtonUI
HINT_DO_NOT_PAINT_TOOLBARBUTTON_IF_NO_MOUSE_OVER
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  Skin getArrowSkin(int type)
          returns the spinner button's arrow
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
           
static Skin getSkin(int type)
          returns the spinner button
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
 
Methods inherited from class com.birosoft.liquid.LiquidButtonUI
getSkinButton, getSkinToolbar, installDefaults, paintButtonPressed, paintFocus, paintFocus, uninstallDefaults, update
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, 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
 

Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

paint

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

getSkin

public static Skin getSkin(int type)
returns the spinner button

Parameters:
type -
Returns:
Skin

getArrowSkin

protected Skin getArrowSkin(int type)
returns the spinner button's arrow

Parameters:
type -
Returns:
Skin

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Overrides:
getPreferredSize in class javax.swing.plaf.basic.BasicButtonUI
See Also:
BasicButtonUI.getPreferredSize(javax.swing.JComponent)