站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

WindowsSlidingButtonUI (Tab Control) - NetBeans API Javadoc (Current Development Version)

org.netbeans.swing.tabcontrol 1.8

org.netbeans.swing.tabcontrol.plaf
Class WindowsSlidingButtonUI

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.basic.BasicToggleButtonUI
                  extended by org.netbeans.swing.tabcontrol.SlidingButtonUI
                      extended by org.netbeans.swing.tabcontrol.plaf.WindowsSlidingButtonUI
Direct Known Subclasses:
WinXPSlidingButtonUI

public class WindowsSlidingButtonUI
extends SlidingButtonUI

See Also:
SlidingButtonUI

Field Summary
protected static int dashedRectGapHeight
           
protected static int dashedRectGapWidth
           
protected static int dashedRectGapX
           
protected static int dashedRectGapY
           
protected  Color focusColor
           
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
protected WindowsSlidingButtonUI()
          Private, no need for outer classes to instantiate
 
Method Summary
static ComponentUI createUI(JComponent c)
           
protected  Color getFocusColor()
           
 Dimension getPreferredSize(JComponent c)
           
protected  void installBorder(AbstractButton b)
          Install a border on the button
 void installDefaults(AbstractButton b)
           
protected  void paintBackground(Graphics2D g, AbstractButton b)
           
protected  void paintButtonPressed(Graphics g, AbstractButton b)
           
protected  void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void uninstallDefaults(AbstractButton b)
           
 
Methods inherited from class org.netbeans.swing.tabcontrol.SlidingButtonUI
getMaximumSize, getMinimumSize, getPropertyPrefix, paint
 
Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
getTextShiftOffset, paintIcon
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getDefaultTextIconGap, installKeyboardActions, installListeners, installUI, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

focusColor

protected Color focusColor

dashedRectGapX

protected static int dashedRectGapX

dashedRectGapY

protected static int dashedRectGapY

dashedRectGapWidth

protected static int dashedRectGapWidth

dashedRectGapHeight

protected static int dashedRectGapHeight
Constructor Detail

WindowsSlidingButtonUI

protected WindowsSlidingButtonUI()
Private, no need for outer classes to instantiate

Method Detail

createUI

public static ComponentUI createUI(JComponent c)

installBorder

protected void installBorder(AbstractButton b)
Install a border on the button


installDefaults

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

uninstallDefaults

protected void uninstallDefaults(AbstractButton b)
Overrides:
uninstallDefaults in class BasicButtonUI

paintBackground

protected void paintBackground(Graphics2D g,
                               AbstractButton b)
Overrides:
paintBackground in class SlidingButtonUI

paintButtonPressed

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

paintFocus

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

getFocusColor

protected Color getFocusColor()

getPreferredSize

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

org.netbeans.swing.tabcontrol 1.8

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.