Class TadukooThemeFactory
java.lang.Object
com.github.tadukoo.view.lookandfeel.TadukooThemeFactory
Tadukoo Theme Factory provides some standard
TadukooTheme
s 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
ModifierConstructorDescriptionprivate
Not allowed to build a Tadukoo Theme Factory -
Method Summary
Modifier and TypeMethodDescriptioncopyMetalTheme
(TadukooTheme.TadukooThemeBuilder themeBuilder, MetalTheme metalTheme) Copies the colors and fonts from the givenMetalTheme
to the givenTadukooThemeBuilder
and returns the TadukooThemeBuilder to easily continue building theTadukooTheme
.static TadukooTheme
static TadukooTheme
static TadukooTheme
static TadukooTheme
-
Constructor Details
-
TadukooThemeFactory
private TadukooThemeFactory()Not allowed to build a Tadukoo Theme Factory
-
-
Method Details
-
defaultThemeBuilder
- Returns:
- A
TadukooThemeBuilder
that has the default customizations
-
createDefaultTheme
- Returns:
- A
TadukooTheme
that has the default customizations - Throws:
IOException
- If something goes wrong in loading fontsFontFormatException
- If something goes wrong in loading fonts
-
metalThemeBuilder
- Returns:
- A
TadukooThemeBuilder
that uses theMetalLookAndFeel
Component UIs and Borders, but uses the regularTadukooLookAndFeel
colors and fonts.
-
createMetalTheme
- Returns:
- A
TadukooTheme
that uses theMetalLookAndFeel
Component UIs and Borders, but uses the regularTadukooLookAndFeel
colors and fonts. - Throws:
IOException
- If something goes wrong in loading fontsFontFormatException
- If something goes wrong in loading fonts
-
defaultMetalThemeBuilder
- Returns:
- A
TadukooThemeBuilder
that uses theMetalLookAndFeel
Component UIs and Borders and uses theDefaultMetalTheme
for colors and fonts.
-
createDefaultMetalTheme
- Returns:
- A
TadukooTheme
that uses theMetalLookAndFeel
Component UIs and Borders and uses theDefaultMetalTheme
for colors and fonts. - Throws:
IOException
- If something goes wrong in loading fontsFontFormatException
- If something goes wrong in loading fonts
-
oceanThemeBuilder
- Returns:
- A
TadukooThemeBuilder
that uses theMetalLookAndFeel
Component UIs and Borders and uses theOceanTheme
for colors and fonts.
-
createOceanTheme
- Returns:
- A
TadukooTheme
that uses theMetalLookAndFeel
Component UIs and Borders and uses theOceanTheme
for 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 givenMetalTheme
to the givenTadukooThemeBuilder
and returns the TadukooThemeBuilder to easily continue building theTadukooTheme
.- Parameters:
themeBuilder
- TheTadukooThemeBuilder
to add parameters tometalTheme
- TheMetalTheme
to grab colors and fonts from- Returns:
- The
TadukooThemeBuilder
, to continue building a theme
-