当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
SlidingButtonUI (Tab Control) - NetBeans API Javadoc (Current Development Version)
org.netbeans.swing.tabcontrol
Class SlidingButtonUI
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
- Direct Known Subclasses:
- AquaSlidingButtonUI, GtkSlidingButtonUI, MetalSlidingButtonUI, WindowsSlidingButtonUI
public class SlidingButtonUI
- extends BasicToggleButtonUI
Button UI for SlidingButton component that can paint rotated text.
To change appearance, provide a subclass of this class or subclass of ComponentUI
and register it via UIDefaults in standard Swing way.
Typically the methods of interest when
subclassing are paintBackground and paintIconAndText.
Instances of this class should be stateless, taking all data from model,
such that a single instance can manage any number of buttons.
- See Also:
SlidingButton
|
Constructor Summary |
protected |
SlidingButtonUI()
Private, no need for outer classes to instantiate |
| Methods inherited from class javax.swing.plaf.basic.BasicButtonUI |
clearTextShiftOffset, createButtonListener, getDefaultTextIconGap, installDefaults, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SlidingButtonUI
protected SlidingButtonUI()
- Private, no need for outer classes to instantiate
createUI
public static ComponentUI createUI(JComponent c)
getPropertyPrefix
protected String getPropertyPrefix()
- Overrides:
getPropertyPrefix in class BasicToggleButtonUI
paint
public void paint(Graphics g,
JComponent c)
- Overrides:
paint in class BasicToggleButtonUI
paintBackground
protected void paintBackground(Graphics2D g,
AbstractButton b)
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Overrides:
getMinimumSize in class BasicButtonUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize in class BasicButtonUI
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- Overrides:
getMaximumSize in class BasicButtonUI