public class

BasicToggleButtonUI

extends BasicButtonUI
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.ButtonUI
       ↳ javax.swing.plaf.basic.BasicButtonUI
         ↳ javax.swing.plaf.basic.BasicToggleButtonUI
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

BasicToggleButton implementation

Summary

[Expand]
Inherited Fields
From class javax.swing.plaf.basic.BasicButtonUI
Public Constructors
BasicToggleButtonUI()
Public Methods
static ComponentUI createUI(JComponent b)
void paint(Graphics g, JComponent c)
Paints the specified component appropriate for the look and feel.
Protected Methods
String getPropertyPrefix()
int getTextShiftOffset()
Overriden so that the text will not be rendered as shifted for Toggle buttons and subclasses.
void paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
[Expand]
Inherited Methods
From class javax.swing.plaf.basic.BasicButtonUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object

Public Constructors

public BasicToggleButtonUI ()

Public Methods

public static ComponentUI createUI (JComponent b)

public void paint (Graphics g, JComponent c)

Paints the specified component appropriate for the look and feel. This method is invoked from the 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.

Parameters
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

Protected Methods

protected String getPropertyPrefix ()

protected int getTextShiftOffset ()

Overriden so that the text will not be rendered as shifted for Toggle buttons and subclasses.

protected void paintIcon (Graphics g, AbstractButton b, Rectangle iconRect)