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.
- Author:
- Kirill Grouchnikov
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe default visual area that is used for the inner part of most controls.Highlight visual areas for lists, tables, trees and menus.Highlight visual areas for text components.Visual area of marks.Visual area ofJSeparators.Visual area of tabs inJTabbedPanes. -
Constructor Summary
ConstructorsConstructorDescriptionContainerColorTokensAssociationKind(String name, RadianceThemingSlices.ContainerColorTokensAssociationKind fallback) Creates a new association kind. -
Method Summary
-
Field Details
-
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
-