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
-
Field Summary
Modifier and TypeFieldDescriptionprivate final PaintUIResource
ThePaintUIResource
to use for the background on Buttonsprivate final BorderUIResource
TheBorder
to use on Buttonsprivate final PaintUIResource
ThePaintUIResource
to use for disabled text on Buttonsprivate final PaintUIResource
ThePaintUIResource
to use for focus on Buttonsprivate final FontUIResource
TheFontUIResource
to use for Buttonsprivate final PaintUIResource
ThePaintUIResource
to use for the foreground on Buttonsprivate final PaintUIResource
ThePaintUIResource
to use for select on Buttonsprivate final ShapeInfoUIResource
TheShapeInfoUIResource
to use on Buttonsprivate final String
TheButtonUI
class 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 PaintUIResource
ThePaintUIResource
to use for the background on Labelsprivate final BorderUIResource
TheBorderUIResource
to use on Labelsprivate final PaintUIResource
ThePaintUIResource
to use for the disabled foreground on Labelsprivate final FontUIResource
TheFontUIResource
to use for Labelsprivate final PaintUIResource
ThePaintUIResource
to use for the foreground on Labelsprivate final ShapeInfoUIResource
TheShapeInfoUIResource
to use on Labelsprivate final String
TheLabelUI
class to useprivate final Object[]
System Color defaultsprivate final BorderUIResource
The defaultBorderUIResource
to use in Titled Bordersprivate final ColorUIResource
The default color to use in Titled Bordersprivate final FontUIResource
The defaultFontUIResource
to use in Titled Bordersprivate final int
The default position for the title in Titled Borders -
Constructor Summary
ModifierConstructorDescriptionprivate
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. -
Method Summary
-
Field Details
-
buttonUI
TheButtonUI
class to use -
labelUI
TheLabelUI
class to use -
buttonForegroundPaint
ThePaintUIResource
to use for the foreground on Buttons -
buttonBackgroundPaint
ThePaintUIResource
to use for the background on Buttons -
buttonFocusPaint
ThePaintUIResource
to use for focus on Buttons -
buttonSelectPaint
ThePaintUIResource
to use for select on Buttons -
buttonDisabledTextPaint
ThePaintUIResource
to use for disabled text on Buttons -
buttonFont
TheFontUIResource
to use for Buttons -
buttonShapeInfo
TheShapeInfoUIResource
to use on Buttons -
buttonBorder
TheBorder
to use on Buttons -
labelForegroundPaint
ThePaintUIResource
to use for the foreground on Labels -
labelBackgroundPaint
ThePaintUIResource
to use for the background on Labels -
labelDisabledForegroundPaint
ThePaintUIResource
to use for the disabled foreground on Labels -
labelFont
TheFontUIResource
to use for Labels -
labelShapeInfo
TheShapeInfoUIResource
to use on Labels -
labelBorder
TheBorderUIResource
to use on Labels -
titledBorderBorder
The defaultBorderUIResource
to use in Titled Borders -
titledBorderFont
The defaultFontUIResource
to 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
- TheButtonUI
class to uselabelUI
- TheLabelUI
class to usebuttonForegroundPaint
- ThePaintUIResource
to use for the foreground on ButtonsbuttonBackgroundPaint
- ThePaintUIResource
to use for the background on ButtonsbuttonFocusPaint
- ThePaintUIResource
to use for focus on ButtonsbuttonSelectPaint
- ThePaintUIResource
to use for select on ButtonsbuttonDisabledTextPaint
- ThePaintUIResource
to use for disabled text on ButtonsbuttonFont
- TheFontUIResource
to use for ButtonsbuttonShapeInfo
- TheShapeInfoUIResource
to use on ButtonsbuttonBorder
- TheBorder
to use on ButtonslabelForegroundPaint
- ThePaintUIResource
to use for the foreground on LabelslabelBackgroundPaint
- ThePaintUIResource
to use for the background on LabelslabelDisabledForegroundPaint
- ThePaintUIResource
to use for the disabled foreground on LabelslabelFont
- TheFontUIResource
to use for LabelslabelShapeInfo
- TheShapeInfoUIResource
to use for LabelslabelBorder
- TheBorderUIResource
to use for LabelstitledBorderBorder
- The defaultBorderUIResource
to use in Titled BorderstitledBorderFont
- The defaultFontUIResource
to 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.TadukooThemeBuilder
to use in building a TadukooTheme
-
getButtonUI
- Returns:
- The
ButtonUI
class to use
-
getLabelUI
- Returns:
- The
LabelUI
class to use
-
getButtonForegroundPaint
- Returns:
- The
PaintUIResource
to use for the foreground on Buttons
-
getButtonBackgroundPaint
- Returns:
- The
PaintUIResource
to use for the background on Buttons
-
getButtonFocusPaint
- Returns:
- The
PaintUIResource
to use for focus on Buttons
-
getButtonSelectPaint
- Returns:
- The
PaintUIResource
to use for select on Buttons
-
getButtonDisabledTextPaint
- Returns:
- The
PaintUIResource
to use for disabled text on Buttons
-
getButtonFont
- Returns:
- The
FontUIResource
to use for Buttons
-
getButtonShapeInfo
- Returns:
- The
ShapeInfoUIResource
to use on Buttons
-
getButtonBorder
- Returns:
- The
BorderUIResource
to use on Buttons
-
getLabelForegroundPaint
- Returns:
- The
PaintUIResource
to use for the foreground on Labels
-
getLabelBackgroundPaint
- Returns:
- The
PaintUIResource
to use for the background on Labels
-
getLabelDisabledForegroundPaint
- Returns:
- The
PaintUIResource
to use for the disabled foreground on Labels
-
getLabelFont
- Returns:
- The
FontUIResource
to use for Labels
-
getLabelShapeInfo
- Returns:
- The
ShapeInfoUIResource
to use for Labels
-
getLabelBorder
- Returns:
- The
BorderUIResource
to use on Labels
-
getTitledBorderBorder
- Returns:
- The default
BorderUIResource
to use in Titled Borders
-
getTitledBorderFont
- Returns:
- The default
FontUIResource
to 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
-