当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
WindowsSlidingButtonUI (Tab Control) - NetBeans API Javadoc (Current Development Version)
org.netbeans.swing.tabcontrol.plaf
Class WindowsSlidingButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.basic.BasicToggleButtonUI
org.netbeans.swing.tabcontrol.SlidingButtonUI
org.netbeans.swing.tabcontrol.plaf.WindowsSlidingButtonUI
- Direct Known Subclasses:
- WinXPSlidingButtonUI
public class WindowsSlidingButtonUI
- extends SlidingButtonUI
- See Also:
SlidingButtonUI
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
focusColor
protected Color focusColor
dashedRectGapX
protected static int dashedRectGapX
dashedRectGapY
protected static int dashedRectGapY
dashedRectGapWidth
protected static int dashedRectGapWidth
dashedRectGapHeight
protected static int dashedRectGapHeight
WindowsSlidingButtonUI
protected WindowsSlidingButtonUI()
- Private, no need for outer classes to instantiate
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