Package org.pushingpixels.substance.api
Class ColorSchemeAssociationKind
- java.lang.Object
-
- org.pushingpixels.substance.api.ColorSchemeAssociationKind
-
public class ColorSchemeAssociationKind extends Object
Allows associating different color schemes to different visual parts of UI components. For example, theJCheckBoxhas 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
Fields Modifier and Type Field Description static ColorSchemeAssociationKindBORDERBorder visual area of non-tab controls.static ColorSchemeAssociationKindFILLThe default visual area that is used for the inner part of most controls.static ColorSchemeAssociationKindHIGHLIGHTHighlight visual areas for lists, tables, trees and menus.static ColorSchemeAssociationKindHIGHLIGHT_BORDERBorder visual areas for highlighted regions of lists, tables, trees and menus.static ColorSchemeAssociationKindHIGHLIGHT_MARKVisual area of marks in highlighted regions of lists, tables, trees and menus.static ColorSchemeAssociationKindMARKVisual area of marks.static ColorSchemeAssociationKindSEPARATORVisual area of separators.static ColorSchemeAssociationKindTABFill visual area of the tabs.static ColorSchemeAssociationKindTAB_BORDERBorder visual area of the tabs.static ColorSchemeAssociationKindTEXT_HIGHLIGHTHighlight visual areas for text components.
-
Constructor Summary
Constructors Constructor Description ColorSchemeAssociationKind(String name, ColorSchemeAssociationKind fallback)Creates a new association kind.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorSchemeAssociationKindgetFallback()Returns the fallback for this association kind.StringtoString()static Set<ColorSchemeAssociationKind>values()Returns all available association kinds.
-
-
-
Field Detail
-
FILL
public static final ColorSchemeAssociationKind FILL
The default visual area that is used for the inner part of most controls.
-
SEPARATOR
public static final ColorSchemeAssociationKind SEPARATOR
Visual area of separators.
-
TAB
public static final ColorSchemeAssociationKind TAB
Fill visual area of the tabs.
-
BORDER
public static final ColorSchemeAssociationKind BORDER
Border visual area of non-tab controls.
-
MARK
public static final ColorSchemeAssociationKind 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
public static final ColorSchemeAssociationKind TAB_BORDER
Border visual area of the tabs.
-
HIGHLIGHT
public static final ColorSchemeAssociationKind HIGHLIGHT
Highlight visual areas for lists, tables, trees and menus.
-
TEXT_HIGHLIGHT
public static final ColorSchemeAssociationKind TEXT_HIGHLIGHT
Highlight visual areas for text components.
-
HIGHLIGHT_BORDER
public static final ColorSchemeAssociationKind HIGHLIGHT_BORDER
Border visual areas for highlighted regions of lists, tables, trees and menus.
-
HIGHLIGHT_MARK
public static final ColorSchemeAssociationKind HIGHLIGHT_MARK
Visual area of marks in highlighted regions of lists, tables, trees and menus.
-
-
Constructor Detail
-
ColorSchemeAssociationKind
public ColorSchemeAssociationKind(String name, 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_BORDERspecifies that its fallback isBORDER. When theJTabbedPaneUI 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 Detail
-
values
public static Set<ColorSchemeAssociationKind> values()
Returns all available association kinds.- Returns:
- All available association kinds.
-
getFallback
public ColorSchemeAssociationKind getFallback()
Returns the fallback for this association kind.- Returns:
- The fallback for this association kind.
-
-