public class BasicToggleButtonUI extends BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset| Constructor and Description |
|---|
BasicToggleButtonUI()
|
| Modifier and Type | Method and Description |
|---|---|
static ComponentUI |
createUI(JComponent
|
protected String |
getPropertyPrefix()
|
protected int |
getTextShiftOffset()
Overriden so that the text will not be rendered as shifted for Toggle buttons and subclasses.
|
void |
paint(Graphics
Paints the specified component appropriately for the look and feel.
|
protected void |
paintIcon(Graphics
|
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 ComponentUIcreateUI(JComponent b)
protected StringgetPropertyPrefix()
public void paint(Graphicsg, JComponent c)
ComponentUI
ComponentUI.update method when the specified component is being painted. Subclasses should override this method and use the specified
Graphics object to render the content of the component.
paint in class
BasicButtonUI
g - the
Graphics context in which to paint
c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
protected void paintIcon(Graphicsg, AbstractButton b, Rectangle iconRect)
protected int getTextShiftOffset()