public class ThemeFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static PgsTheme |
GOLD |
static PgsTheme |
GRAY |
static PgsTheme |
GREEN |
static PgsTheme |
RUBY |
static PgsTheme |
WIN |
static PgsTheme |
YELLOW |
| Constructor and Description |
|---|
ThemeFactory() |
| Modifier and Type | Method and Description |
|---|---|
static PgsTheme |
createTheme(Color primary) |
static PgsTheme |
createTheme(Color primary,
Color secondary,
Color text) |
static PgsTheme |
createTheme(Map map) |
static PgsTheme |
createTheme(String name,
Color primary) |
static PgsTheme |
createTheme(String name,
Color primary,
Color secondary,
Color text) |
static PgsTheme |
getDefaultTheme() |
static PgsTheme |
getTheme(String theme)
Supported formats are:
colors: [primary], [secondary], [text]theme: [gray|ruby|win|yellow|gold]res: [theme_source_file] |
static PgsTheme |
getThemeByColors(String colors) |
static PgsTheme |
getThemeByName(String theme) |
public static final PgsTheme GRAY
public static final PgsTheme YELLOW
public static final PgsTheme RUBY
public static final PgsTheme GOLD
public static final PgsTheme WIN
public static final PgsTheme GREEN
public static PgsTheme getDefaultTheme()
public static PgsTheme createTheme(String name, Color primary, Color secondary, Color text)
public static PgsTheme getTheme(String theme)
Supported formats are:
colors: [primary], [secondary], [text]
theme: [gray|ruby|win|yellow|gold]
res: [theme_source_file]
Copyright © 2015. All rights reserved.