Class RadianceThemingSlices.ContainerColorTokensAssociationKind
java.lang.Object
org.pushingpixels.radiance.theming.api.RadianceThemingSlices.ContainerColorTokensAssociationKind
- Enclosing class:
RadianceThemingSlices
Allows associating different color tokens to different visual parts of UI components. For
example, the
JCheckBox's checkmark can be configured with MARK.
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 TypeFieldDescriptionThe default visual area that is used for the inner part of most controls.Fallback for this association kind.Highlight visual areas for lists, tables, trees and menus.Highlight visual areas for text components.Visual area of marks.private StringName for this association kind.Visual area ofJSeparators.Visual area of tabs inJTabbedPanes.private static Set<RadianceThemingSlices.ContainerColorTokensAssociationKind> All known association kind values. -
Constructor Summary
ConstructorsConstructorDescriptionContainerColorTokensAssociationKind(String name, RadianceThemingSlices.ContainerColorTokensAssociationKind fallback) Creates 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 tokens is associated with this kind. For example,HIGHLIGHT_TEXTspecifies that its fallback isHIGHLIGHT. When theJTextFieldUI delegate is painting its selected part, it will try to use the color tokens associated withHIGHLIGHT_TEXT. If none was registered, it will fall back to use the color tokens associated withHIGHLIGHT, and if that is not registered as well, will use the color tokens associated withDEFAULT. -
DEFAULT
The default visual area that is used for the inner part of most controls. -
TAB
Visual area of tabs inJTabbedPanes. -
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. -
HIGHLIGHT
Highlight visual areas for lists, tables, trees and menus. -
HIGHLIGHT_TEXT
Highlight visual areas for text components. -
SEPARATOR
Visual area ofJSeparators.
-
-
Constructor Details
-
ContainerColorTokensAssociationKind
public ContainerColorTokensAssociationKind(String name, RadianceThemingSlices.ContainerColorTokensAssociationKind fallback) Creates a new association kind.- Parameters:
name- Association kind name.fallback- Fallback association kind. This is used when no color tokens are associated with this kind. For example,TABspecifies that its fallback isDEFAULT. When theJTabbedPaneUI delegate is painting the tabs, it will try to use the color tokens associated withTAB. If none was registered, it will fall back to use the color tokens associated withDEFAULT.
-
-
Method Details
-
toString
-
values
Returns all available association kinds.- Returns:
- All available association kinds.
-
getFallback
-