Class TadukooThemeFactory
java.lang.Object
com.github.tadukoo.view.lookandfeel.TadukooThemeFactory
Tadukoo Theme Factory provides some standard
TadukooThemes and
TadukooThemeBuilders, along with some util methods for making your own
TadukooTheme.- Since:
- Alpha v.0.2
- Version:
- Alpha v.0.3
- Author:
- Logan Ferree (Tadukoo)
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNot allowed to build a Tadukoo Theme Factory -
Method Summary
Modifier and TypeMethodDescriptioncopyMetalTheme(TadukooTheme.TadukooThemeBuilder themeBuilder, MetalTheme metalTheme) Copies the colors and fonts from the givenMetalThemeto the givenTadukooThemeBuilderand returns the TadukooThemeBuilder to easily continue building theTadukooTheme.static TadukooThemestatic TadukooThemestatic TadukooThemestatic TadukooTheme
-
Constructor Details
-
TadukooThemeFactory
private TadukooThemeFactory()Not allowed to build a Tadukoo Theme Factory
-
-
Method Details
-
defaultThemeBuilder
- Returns:
- A
TadukooThemeBuilderthat has the default customizations
-
createDefaultTheme
- Returns:
- A
TadukooThemethat has the default customizations - Throws:
IOException- If something goes wrong in loading fontsFontFormatException- If something goes wrong in loading fonts
-
metalThemeBuilder
- Returns:
- A
TadukooThemeBuilderthat uses theMetalLookAndFeelComponent UIs and Borders, but uses the regularTadukooLookAndFeelcolors and fonts.
-
createMetalTheme
- Returns:
- A
TadukooThemethat uses theMetalLookAndFeelComponent UIs and Borders, but uses the regularTadukooLookAndFeelcolors and fonts. - Throws:
IOException- If something goes wrong in loading fontsFontFormatException- If something goes wrong in loading fonts
-
defaultMetalThemeBuilder
- Returns:
- A
TadukooThemeBuilderthat uses theMetalLookAndFeelComponent UIs and Borders and uses theDefaultMetalThemefor colors and fonts.
-
createDefaultMetalTheme
- Returns:
- A
TadukooThemethat uses theMetalLookAndFeelComponent UIs and Borders and uses theDefaultMetalThemefor colors and fonts. - Throws:
IOException- If something goes wrong in loading fontsFontFormatException- If something goes wrong in loading fonts
-
oceanThemeBuilder
- Returns:
- A
TadukooThemeBuilderthat uses theMetalLookAndFeelComponent UIs and Borders and uses theOceanThemefor colors and fonts.
-
createOceanTheme
- Returns:
- A
TadukooThemethat uses theMetalLookAndFeelComponent UIs and Borders and uses theOceanThemefor colors and fonts. - Throws:
IOException- If something goes wrong in loading fontsFontFormatException- If something goes wrong in loading fonts
-
copyMetalTheme
public static TadukooTheme.TadukooThemeBuilder copyMetalTheme(TadukooTheme.TadukooThemeBuilder themeBuilder, MetalTheme metalTheme) Copies the colors and fonts from the givenMetalThemeto the givenTadukooThemeBuilderand returns the TadukooThemeBuilder to easily continue building theTadukooTheme.- Parameters:
themeBuilder- TheTadukooThemeBuilderto add parameters tometalTheme- TheMetalThemeto grab colors and fonts from- Returns:
- The
TadukooThemeBuilder, to continue building a theme
-