Package org.pushingpixels.substance.api
Class ColorSchemeAssociationKind
java.lang.Object
org.pushingpixels.substance.api.ColorSchemeAssociationKind
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.- Since:
- version 5.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ColorSchemeAssociationKind
Border visual area of non-tab controls.static final ColorSchemeAssociationKind
The default visual area that is used for the inner part of most controls.static final ColorSchemeAssociationKind
Highlight visual areas for lists, tables, trees and menus.static final ColorSchemeAssociationKind
Border visual areas for highlighted regions of lists, tables, trees and menus.static final ColorSchemeAssociationKind
Visual area of marks in highlighted regions of lists, tables, trees and menus.static final ColorSchemeAssociationKind
Visual area of marks.static final ColorSchemeAssociationKind
Visual area of separators.static final ColorSchemeAssociationKind
Fill visual area of the tabs.static final ColorSchemeAssociationKind
Border visual area of the tabs.static final ColorSchemeAssociationKind
Highlight visual areas for text components. -
Constructor Summary
ConstructorsConstructorDescriptionColorSchemeAssociationKind
(String name, ColorSchemeAssociationKind fallback) Creates a new association kind. -
Method Summary
Modifier and TypeMethodDescriptionReturns the fallback for this association kind.toString()
static Set
<ColorSchemeAssociationKind> values()
Returns all available association kinds.
-
Field Details
-
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. -
TAB_BORDER
Border visual area of the tabs. -
HIGHLIGHT
Highlight visual areas for lists, tables, trees and menus. -
TEXT_HIGHLIGHT
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
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