public interface

SynthConstants

javax.swing.plaf.synth.SynthConstants
Known Indirect Subclasses

Class Overview

Constants used by Synth. Not all Components support all states. A Component will at least be in one of the primary states. That is, the return value from SynthContext.getComponentState() will at least be one of ENABLED, MOUSE_OVER, PRESSED or DISABLED, and may also contain FOCUSED, SELECTED or DEFAULT.

Summary

Constants
int DEFAULT Indicates the region is the default.
int DISABLED Primary state indicating the region is not enabled.
int ENABLED Primary state indicating the component is enabled.
int FOCUSED Indicates the region has focus.
int MOUSE_OVER Primary state indicating the mouse is over the region.
int PRESSED Primary state indicating the region is in a pressed state.
int SELECTED Indicates the region is selected.

Constants

public static final int DEFAULT

Indicates the region is the default. This is typically used for buttons to indicate this button is somehow special.

Constant Value: 1024 (0x00000400)

public static final int DISABLED

Primary state indicating the region is not enabled.

Constant Value: 8 (0x00000008)

public static final int ENABLED

Primary state indicating the component is enabled.

Constant Value: 1 (0x00000001)

public static final int FOCUSED

Indicates the region has focus.

Constant Value: 256 (0x00000100)

public static final int MOUSE_OVER

Primary state indicating the mouse is over the region.

Constant Value: 2 (0x00000002)

public static final int PRESSED

Primary state indicating the region is in a pressed state. Pressed does not necessarily mean the user has pressed the mouse button.

Constant Value: 4 (0x00000004)

public static final int SELECTED

Indicates the region is selected.

Constant Value: 512 (0x00000200)