public class ColorSchemeAssociationKind
extends java.lang.Object
JCheckBox
has three different visual
areas:
Applications can create custom instances of this class to further refine the
control over the painting. In this case, the custom UI delegates must be
created to use these new association kinds.Modifier and Type | Field | Description |
---|---|---|
static ColorSchemeAssociationKind |
BORDER |
Border visual area of non-tab controls.
|
static ColorSchemeAssociationKind |
FILL |
The default visual area that is used for the inner part of most controls.
|
static ColorSchemeAssociationKind |
HIGHLIGHT |
Highlight visual areas for lists, tables, trees and menus.
|
static ColorSchemeAssociationKind |
HIGHLIGHT_BORDER |
Border visual areas for highlighted regions of lists, tables, trees and
menus.
|
static ColorSchemeAssociationKind |
HIGHLIGHT_MARK |
Visual area of marks in highlighted regions of lists, tables, trees and
menus.
|
static ColorSchemeAssociationKind |
MARK |
Visual area of marks.
|
static ColorSchemeAssociationKind |
SEPARATOR |
Visual area of separators.
|
static ColorSchemeAssociationKind |
TAB |
Fill visual area of the tabs.
|
static ColorSchemeAssociationKind |
TAB_BORDER |
Border visual area of the tabs.
|
static ColorSchemeAssociationKind |
TEXT_HIGHLIGHT |
Highlight visual areas for text components.
|
Constructor | Description |
---|---|
ColorSchemeAssociationKind(java.lang.String name,
ColorSchemeAssociationKind fallback) |
Creates a new association kind.
|
Modifier and Type | Method | Description |
---|---|---|
ColorSchemeAssociationKind |
getFallback() |
Returns the fallback for this association kind.
|
java.lang.String |
toString() |
|
static java.util.Set<ColorSchemeAssociationKind> |
values() |
Returns all available association kinds.
|
public static final ColorSchemeAssociationKind FILL
public static final ColorSchemeAssociationKind SEPARATOR
public static final ColorSchemeAssociationKind TAB
public static final ColorSchemeAssociationKind BORDER
public static final ColorSchemeAssociationKind MARK
public static final ColorSchemeAssociationKind TAB_BORDER
public static final ColorSchemeAssociationKind HIGHLIGHT
public static final ColorSchemeAssociationKind TEXT_HIGHLIGHT
public static final ColorSchemeAssociationKind HIGHLIGHT_BORDER
public static final ColorSchemeAssociationKind HIGHLIGHT_MARK
public ColorSchemeAssociationKind(java.lang.String name, ColorSchemeAssociationKind fallback)
name
- Association kind name.fallback
- Fallback association kind. This is used when no color scheme
is associated with this kind. For example, TAB_BORDER
specifies that its fallback is BORDER
. When the
JTabbedPane
UI delegate is painting the tabs, it will
try to use the color scheme associated with
TAB_BORDER
. If none was registered, it will fall back
to use the color scheme associated with BORDER
, and
if that is not registered as well, will use the color scheme
associated with FILL
.public java.lang.String toString()
toString
in class java.lang.Object
public static java.util.Set<ColorSchemeAssociationKind> values()
public ColorSchemeAssociationKind getFallback()