public class BasicToggleButtonUI extends BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset| Constructor and Description | 
|---|
| BasicToggleButtonUI() | 
| Modifier and Type | Method and Description | 
|---|---|
| static ComponentUI | createUI(JComponent b) | 
| protected String | getPropertyPrefix() | 
| protected int | getTextShiftOffset()
              覆盖,以便文本不会被转换为切换按钮和子类。 
             | 
| void | paint(Graphics g, JComponent c)
              适当地涂抹指定的组件的外观和感觉。 
             | 
| protected void | paintIcon(Graphics g, AbstractButton b, Rectangle iconRect) | 
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, installDefaults, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, updatepublic static ComponentUI createUI(JComponent b)
protected String getPropertyPrefix()
public void paint(Graphics g, JComponent c)
ComponentUI 
          ComponentUI.update指定组件正在被绘制时的方法。 
           子类应该覆盖此方法,并使用指定的Graphics对象来呈现Graphics的内容。 
          paint在 
            BasicButtonUI 
           g - 要绘画的 
            Graphics上下文 
           c - 正在涂漆的部件; 
            这个参数经常被忽略,但如果UI对象是无状态的并且被多个组件共享,则可能会被使用 
           ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) 
           protected void paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
protected int getTextShiftOffset()
getTextShiftOffset in class  
            BasicButtonUI 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.