APIdia Launch Partner
Top Description Constructors Methods
javax.swing.plaf.synth

public Class SynthToggleButtonUI

extends SynthButtonUI
Class Inheritance
Known Direct Subclasses
javax.swing.plaf.synth.SynthRadioButtonUI
Imports
java.awt.Graphics, javax.swing.AbstractButton, .JComponent, javax.swing.plaf.ComponentUI

Provides the Synth L&F UI delegate for javax.swing.JToggleButton.
Author
Jeff Dinkins
Since
1.7

Constructor Summary

AccessConstructor and Description
public
SynthToggleButtonUI()

Constructs a SynthToggleButtonUI.

Method Summary

Modifier and TypeMethod and Description
public static ComponentUI

Returns:

the UI object
createUI
(JComponent
component to create UI object for
b
)

Hides javax.swing.plaf.synth.SynthButtonUI.createUI.

Creates a new UI object for the given component.

protected String
pack-priv void
public void
paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)

Overrides javax.swing.plaf.synth.SynthButtonUI.paintBorder.

Implements javax.swing.plaf.synth.SynthUI.paintBorder.

Paints the border.

Inherited from javax.swing.plaf.synth.SynthButtonUI:
getBaselinegetContextgetContextgetDefaultIcongetIcongetMaximumSizegetMinimumSizegetPreferredSizegetSizingIconinstallDefaultsinstallListenerspaintpaintpropertyChangeuninstallDefaultsuninstallListenersupdateupdateStyle

Constructor Detail

SynthToggleButtonUIback to summary
public SynthToggleButtonUI()

Constructs a SynthToggleButtonUI.

Method Detail

createUIback to summary
public static ComponentUI createUI(JComponent b)

Hides javax.swing.plaf.synth.SynthButtonUI.createUI.

Creates a new UI object for the given component.

Parameters
b:JComponent

component to create UI object for

Returns:ComponentUI

the UI object

getPropertyPrefixback to summary
protected String getPropertyPrefix()

Overrides javax.swing.plaf.basic.BasicButtonUI.getPropertyPrefix.

Doc from javax.swing.plaf.basic.BasicButtonUI.getPropertyPrefix.

Returns the property prefix.

Annotations
@Override
paintBackgroundback to summary
pack-priv void paintBackground(SynthContext context, Graphics g, JComponent c)

Overrides javax.swing.plaf.synth.SynthButtonUI.paintBackground.

Annotations
@Override
paintBorderback to summary
public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)

Overrides javax.swing.plaf.synth.SynthButtonUI.paintBorder.

Implements javax.swing.plaf.synth.SynthUI.paintBorder.

Doc from javax.swing.plaf.synth.SynthButtonUI.paintBorder.

Paints the border.

Annotations
@Override