javax.swing.plaf.basic
public class BasicToggleButtonUI extends BasicButtonUI
| Method Summary | |
|---|---|
| static ComponentUI | createUI(JComponent component)
Returns a UI delegate for the specified component.
|
| protected String | getPropertyPrefix()
Returns the prefix for entries in the UIManager defaults table
( "ToggleButton." |
| void | paint(Graphics g, JComponent c)
Paint the component, which is an AbstractButton, according to
its current state.
|
| protected void | paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
Paints the icon for the toggle button. |
Parameters: component the component (should be an instance of JToggleButton).
Returns: An instance of BasicToggleButtonUI.
"ToggleButton." in this case).
Returns: "ToggleButton."
Parameters: g The graphics context to paint with c The component to paint the state of
Parameters: g the graphics context b the button to paint the icon for iconRect the area allocated for the icon