| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final ComponentUI |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ComponentUI | Returns: an instance ofBasicToggleButtonUIa component b)Hides javax. Returns an instance of |
| protected String | getPropertyPrefix()
Overrides javax. Returns the property prefix. |
| protected int | getTextShiftOffset()
Overrides javax. Overridden so that the text will not be rendered as shifted for Toggle buttons and subclasses. |
| public void | paint(Graphics g, JComponent c)
Overrides javax. Paints the specified component appropriately for the look and feel. |
| protected void | paintIcon(Graphics
an instance of g, AbstractButton Graphicsan instance of b, Rectangle Buttonbounds of an icon iconRect)Paints an icon in the specified location. |
| propertyPrefix | back to summary |
|---|---|
| private static final String propertyPrefix | |
| UI | back to summary |
|---|---|
| private static final ComponentUI UI | |
| BasicToggleButtonUI | back to summary |
|---|---|
| public BasicToggleButtonUI() Constructs a | |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent b) Hides javax. Returns an instance of
| |
| getPropertyPrefix | back to summary |
|---|---|
| protected String getPropertyPrefix() Overrides javax. Doc from javax. Returns the property prefix. | |
| getTextShiftOffset | back to summary |
|---|---|
| protected int getTextShiftOffset() Overrides javax. Overridden so that the text will not be rendered as shifted for Toggle buttons and subclasses. | |
| paint | back to summary |
|---|---|
| public void paint(Graphics g, JComponent c) Overrides javax. Doc from javax. Paints the specified component appropriately for the look and feel.
This method is invoked from the | |
| paintIcon | back to summary |
|---|---|
| protected void paintIcon(Graphics g, AbstractButton b, Rectangle iconRect) Paints an icon in the specified location.
| |