Class RadianceThemingSlices.ColorSchemeAssociationKind
java.lang.Object
org.pushingpixels.radiance.theming.api.RadianceThemingSlices.ColorSchemeAssociationKind
- Enclosing class:
RadianceThemingSlices
Allows associating different color schemes to different visual parts of UI components. For
example, the
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RadianceThemingSlices.ColorSchemeAssociationKind
Border visual area of non-tab controls.Fallback for this association kind.static final RadianceThemingSlices.ColorSchemeAssociationKind
The default visual area that is used for the inner part of most controls.static final RadianceThemingSlices.ColorSchemeAssociationKind
Visual area of focus indication.static final RadianceThemingSlices.ColorSchemeAssociationKind
Highlight visual areas for lists, tables, trees and menus.static final RadianceThemingSlices.ColorSchemeAssociationKind
Border visual areas for highlighted regions of lists, tables, trees and menus.static final RadianceThemingSlices.ColorSchemeAssociationKind
Visual area of marks in highlighted regions of lists, tables, trees and menus.static final RadianceThemingSlices.ColorSchemeAssociationKind
Highlight visual areas for text components.static final RadianceThemingSlices.ColorSchemeAssociationKind
Visual area of marks.static final RadianceThemingSlices.ColorSchemeAssociationKind
Visual area of mark boxes.private String
Name for this association kind.static final RadianceThemingSlices.ColorSchemeAssociationKind
Visual area of separators.static final RadianceThemingSlices.ColorSchemeAssociationKind
Fill visual area of the tabs.static final RadianceThemingSlices.ColorSchemeAssociationKind
Border visual area of the tabs.private static Set
<RadianceThemingSlices.ColorSchemeAssociationKind> All known association kind values. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new association kind. -
Method Summary
-
Field Details
-
values
All known association kind values. -
name
Name for this association kind. -
fallback
Fallback for this association kind. This is used when no color scheme is associated with this kind. For example,TAB_BORDER
specifies that its fallback isBORDER
. When theJTabbedPane
UI delegate is painting the tabs, it will try to use the color scheme associated withTAB_BORDER
. If none was registered, it will fall back to use the color scheme associated withBORDER
, and if that is not registered as well, will use the color scheme associated withFILL
. -
FILL
The default visual area that is used for the inner part of most controls. -
SEPARATOR
Visual area of separators. -
TAB
Fill visual area of the tabs. -
BORDER
Border visual area of non-tab controls. -
MARK
Visual area of marks. Used for painting check marks of checkboxes and radio buttons, as well as arrow icons of combo boxes, spinners and more. -
MARK_BOX
Visual area of mark boxes. Used for painting the box of checkboxes and radio buttons. -
FOCUS
Visual area of focus indication. -
TAB_BORDER
Border visual area of the tabs. -
HIGHLIGHT
Highlight visual areas for lists, tables, trees and menus. -
HIGHLIGHT_TEXT
Highlight visual areas for text components. -
HIGHLIGHT_BORDER
Border visual areas for highlighted regions of lists, tables, trees and menus. -
HIGHLIGHT_MARK
Visual area of marks in highlighted regions of lists, tables, trees and menus.
-
-
Constructor Details
-
ColorSchemeAssociationKind
public ColorSchemeAssociationKind(String name, RadianceThemingSlices.ColorSchemeAssociationKind fallback) Creates a new association kind.- Parameters:
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 isBORDER
. When theJTabbedPane
UI delegate is painting the tabs, it will try to use the color scheme associated withTAB_BORDER
. If none was registered, it will fall back to use the color scheme associated withBORDER
, and if that is not registered as well, will use the color scheme associated withFILL
.
-
-
Method Details