Class TadukooTheme
java.lang.Object
com.github.tadukoo.view.lookandfeel.TadukooTheme
Theme class for
TadukooLookAndFeel. You can use the builder via the
builder() method to construct it and specify whatever customizations you want.- Since:
- Alpha v.0.2
- Version:
- Alpha v.0.3
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PaintUIResourceThePaintUIResourceto use for the background on Buttonsprivate final BorderUIResourceTheBorderto use on Buttonsprivate final PaintUIResourceThePaintUIResourceto use for disabled text on Buttonsprivate final PaintUIResourceThePaintUIResourceto use for focus on Buttonsprivate final FontUIResourceTheFontUIResourceto use for Buttonsprivate final PaintUIResourceThePaintUIResourceto use for the foreground on Buttonsprivate final PaintUIResourceThePaintUIResourceto use for select on Buttonsprivate final ShapeInfoUIResourceTheShapeInfoUIResourceto use on Buttonsprivate final StringTheButtonUIclass to useprivate final Object[]Class defaults beyond those specified in the "Component UI Classes" sectionprivate final Object[]Component defaults beyond those specified in the other sectionsprivate final PaintUIResourceThePaintUIResourceto use for the background on Labelsprivate final BorderUIResourceTheBorderUIResourceto use on Labelsprivate final PaintUIResourceThePaintUIResourceto use for the disabled foreground on Labelsprivate final FontUIResourceTheFontUIResourceto use for Labelsprivate final PaintUIResourceThePaintUIResourceto use for the foreground on Labelsprivate final ShapeInfoUIResourceTheShapeInfoUIResourceto use on Labelsprivate final StringTheLabelUIclass to useprivate final Object[]System Color defaultsprivate final BorderUIResourceThe defaultBorderUIResourceto use in Titled Bordersprivate final ColorUIResourceThe default color to use in Titled Bordersprivate final FontUIResourceThe defaultFontUIResourceto use in Titled Bordersprivate final intThe default position for the title in Titled Borders -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTadukooTheme(String buttonUI, String labelUI, PaintUIResource buttonForegroundPaint, PaintUIResource buttonBackgroundPaint, PaintUIResource buttonFocusPaint, PaintUIResource buttonSelectPaint, PaintUIResource buttonDisabledTextPaint, FontUIResource buttonFont, ShapeInfoUIResource buttonShapeInfo, BorderUIResource buttonBorder, PaintUIResource labelForegroundPaint, PaintUIResource labelBackgroundPaint, PaintUIResource labelDisabledForegroundPaint, FontUIResource labelFont, ShapeInfoUIResource labelShapeInfo, BorderUIResource labelBorder, BorderUIResource titledBorderBorder, FontUIResource titledBorderFont, ColorUIResource titledBorderColor, int titledBorderPosition, Object[] classDefaults, Object[] systemColorDefaults, Object[] componentDefaults) Constructs a new TadukooTheme with the given customizations. -
Method Summary
-
Field Details
-
buttonUI
TheButtonUIclass to use -
labelUI
TheLabelUIclass to use -
buttonForegroundPaint
ThePaintUIResourceto use for the foreground on Buttons -
buttonBackgroundPaint
ThePaintUIResourceto use for the background on Buttons -
buttonFocusPaint
ThePaintUIResourceto use for focus on Buttons -
buttonSelectPaint
ThePaintUIResourceto use for select on Buttons -
buttonDisabledTextPaint
ThePaintUIResourceto use for disabled text on Buttons -
buttonFont
TheFontUIResourceto use for Buttons -
buttonShapeInfo
TheShapeInfoUIResourceto use on Buttons -
buttonBorder
TheBorderto use on Buttons -
labelForegroundPaint
ThePaintUIResourceto use for the foreground on Labels -
labelBackgroundPaint
ThePaintUIResourceto use for the background on Labels -
labelDisabledForegroundPaint
ThePaintUIResourceto use for the disabled foreground on Labels -
labelFont
TheFontUIResourceto use for Labels -
labelShapeInfo
TheShapeInfoUIResourceto use on Labels -
labelBorder
TheBorderUIResourceto use on Labels -
titledBorderBorder
The defaultBorderUIResourceto use in Titled Borders -
titledBorderFont
The defaultFontUIResourceto use in Titled Borders -
titledBorderColor
The default color to use in Titled Borders -
titledBorderPosition
private final int titledBorderPositionThe default position for the title in Titled Borders -
classDefaults
Class defaults beyond those specified in the "Component UI Classes" section -
systemColorDefaults
System Color defaults -
componentDefaults
Component defaults beyond those specified in the other sections
-
-
Constructor Details
-
TadukooTheme
private TadukooTheme(String buttonUI, String labelUI, PaintUIResource buttonForegroundPaint, PaintUIResource buttonBackgroundPaint, PaintUIResource buttonFocusPaint, PaintUIResource buttonSelectPaint, PaintUIResource buttonDisabledTextPaint, FontUIResource buttonFont, ShapeInfoUIResource buttonShapeInfo, BorderUIResource buttonBorder, PaintUIResource labelForegroundPaint, PaintUIResource labelBackgroundPaint, PaintUIResource labelDisabledForegroundPaint, FontUIResource labelFont, ShapeInfoUIResource labelShapeInfo, BorderUIResource labelBorder, BorderUIResource titledBorderBorder, FontUIResource titledBorderFont, ColorUIResource titledBorderColor, int titledBorderPosition, Object[] classDefaults, Object[] systemColorDefaults, Object[] componentDefaults) Constructs a new TadukooTheme with the given customizations.- Parameters:
buttonUI- TheButtonUIclass to uselabelUI- TheLabelUIclass to usebuttonForegroundPaint- ThePaintUIResourceto use for the foreground on ButtonsbuttonBackgroundPaint- ThePaintUIResourceto use for the background on ButtonsbuttonFocusPaint- ThePaintUIResourceto use for focus on ButtonsbuttonSelectPaint- ThePaintUIResourceto use for select on ButtonsbuttonDisabledTextPaint- ThePaintUIResourceto use for disabled text on ButtonsbuttonFont- TheFontUIResourceto use for ButtonsbuttonShapeInfo- TheShapeInfoUIResourceto use on ButtonsbuttonBorder- TheBorderto use on ButtonslabelForegroundPaint- ThePaintUIResourceto use for the foreground on LabelslabelBackgroundPaint- ThePaintUIResourceto use for the background on LabelslabelDisabledForegroundPaint- ThePaintUIResourceto use for the disabled foreground on LabelslabelFont- TheFontUIResourceto use for LabelslabelShapeInfo- TheShapeInfoUIResourceto use for LabelslabelBorder- TheBorderUIResourceto use for LabelstitledBorderBorder- The defaultBorderUIResourceto use in Titled BorderstitledBorderFont- The defaultFontUIResourceto use in Titled BorderstitledBorderColor- The default color to use in Titled BorderstitledBorderPosition- The default position for the title in Titled BordersclassDefaults- Class defaults beyond those specified in the "Component UI Classes" sectionsystemColorDefaults- System Color defaultscomponentDefaults- Component defaults beyond those specified in the other sections
-
-
Method Details
-
builder
- Returns:
- A
TadukooTheme.TadukooThemeBuilderto use in building a TadukooTheme
-
getButtonUI
- Returns:
- The
ButtonUIclass to use
-
getLabelUI
- Returns:
- The
LabelUIclass to use
-
getButtonForegroundPaint
- Returns:
- The
PaintUIResourceto use for the foreground on Buttons
-
getButtonBackgroundPaint
- Returns:
- The
PaintUIResourceto use for the background on Buttons
-
getButtonFocusPaint
- Returns:
- The
PaintUIResourceto use for focus on Buttons
-
getButtonSelectPaint
- Returns:
- The
PaintUIResourceto use for select on Buttons
-
getButtonDisabledTextPaint
- Returns:
- The
PaintUIResourceto use for disabled text on Buttons
-
getButtonFont
- Returns:
- The
FontUIResourceto use for Buttons
-
getButtonShapeInfo
- Returns:
- The
ShapeInfoUIResourceto use on Buttons
-
getButtonBorder
- Returns:
- The
BorderUIResourceto use on Buttons
-
getLabelForegroundPaint
- Returns:
- The
PaintUIResourceto use for the foreground on Labels
-
getLabelBackgroundPaint
- Returns:
- The
PaintUIResourceto use for the background on Labels
-
getLabelDisabledForegroundPaint
- Returns:
- The
PaintUIResourceto use for the disabled foreground on Labels
-
getLabelFont
- Returns:
- The
FontUIResourceto use for Labels
-
getLabelShapeInfo
- Returns:
- The
ShapeInfoUIResourceto use for Labels
-
getLabelBorder
- Returns:
- The
BorderUIResourceto use on Labels
-
getTitledBorderBorder
- Returns:
- The default
BorderUIResourceto use in Titled Borders
-
getTitledBorderFont
- Returns:
- The default
FontUIResourceto use in Titled Borders
-
getTitledBorderColor
- Returns:
- The default color to use in Titled Borders
-
getTitledBorderPosition
public int getTitledBorderPosition()- Returns:
- The default position for the title in Titled Borders
-
getClassDefaults
- Returns:
- Class defaults beyond those specified in the "Component UI Classes" section
-
getSystemColorDefaults
- Returns:
- System Color defaults
-
getComponentDefaults
- Returns:
- Component defaults beyond those specified in the other sections
-