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 {@link UIManager} defaults table
( "ToggleButton." in this case).
|
void | paint(Graphics g, JComponent c)
Paint the component, which is an {@link 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 {@link 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