public class UiTheme
extends java.lang.Object
UiContainer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_STYLE_ID |
static java.lang.String |
DEFAULT_THEME_ATLAS |
static java.lang.String |
DEFAULT_THEME_FILENAME |
Constructor and Description |
---|
UiTheme() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsButtonStyleRuleset(java.lang.String id) |
boolean |
containsCheckboxStyleRuleset(java.lang.String id) |
boolean |
containsColumnStyleRuleset(java.lang.String id) |
boolean |
containsImageStyleRuleset(java.lang.String id) |
boolean |
containsLabelStyleRuleset(java.lang.String id) |
java.util.Map<java.lang.String,ButtonStyleRuleset> |
getButtonRulesets() |
ButtonStyleRule |
getButtonStyleRule(java.lang.String styleId,
ScreenSize screenSize) |
java.util.Map<java.lang.String,CheckboxStyleRuleset> |
getCheckboxRulesets() |
CheckboxStyleRule |
getCheckboxStyleRule(java.lang.String styleId,
ScreenSize screenSize) |
java.util.Map<java.lang.String,ColumnStyleRuleset> |
getColumnRulesets() |
ParentStyleRule |
getColumnStyleRule(java.lang.String styleId,
ScreenSize screenSize) |
java.util.Map<java.lang.String,ContainerStyleRuleset> |
getContainerRulesets() |
ContainerStyleRule |
getContainerStyleRule(java.lang.String styleId,
ScreenSize screenSize) |
UiFont |
getFont(java.lang.String id) |
java.util.Map<java.lang.String,UiFont> |
getFonts() |
java.lang.String |
getId() |
java.util.Map<java.lang.String,DefaultStyleRuleset> |
getImageRulesets() |
java.util.Map<java.lang.String,LabelStyleRuleset> |
getLabelRulesets() |
LabelStyleRule |
getLabelStyleRule(java.lang.String styleId,
ScreenSize screenSize) |
java.util.Map<java.lang.String,ProgressBarStyleRuleset> |
getProgressBarRulesets() |
ProgressBarStyleRule |
getProgressBarStyleRule(java.lang.String styleId,
ScreenSize screenSize) |
java.util.Map<java.lang.String,RadioButtonStyleRuleset> |
getRadioButtonRulesets() |
RadioButtonStyleRule |
getRadioButtonStyleRule(java.lang.String styleId,
ScreenSize screenSize) |
java.util.Map<java.lang.String,ScrollBoxStyleRuleset> |
getScrollBoxRulesets() |
ScrollBoxStyleRule |
getScrollBoxStyleRule(java.lang.String styleId,
ScreenSize screenSize) |
java.util.Map<java.lang.String,SelectStyleRuleset> |
getSelectRulesets() |
SelectStyleRule |
getSelectStyleRule(java.lang.String styleId,
ScreenSize screenSize) |
java.util.Map<java.lang.String,SliderStyleRuleset> |
getSliderRulesets() |
SliderStyleRule |
getSliderStyleRule(java.lang.String styleId,
ScreenSize screenSize) |
ButtonStyleRule |
getStyleRule(Button button,
ScreenSize screenSize) |
CheckboxStyleRule |
getStyleRule(Checkbox checkbox,
ScreenSize screenSize) |
ParentStyleRule |
getStyleRule(Column column,
ScreenSize screenSize) |
ContainerStyleRule |
getStyleRule(Container container,
ScreenSize screenSize) |
StyleRule |
getStyleRule(Image image,
ScreenSize screenSize) |
LabelStyleRule |
getStyleRule(Label label,
ScreenSize screenSize) |
ProgressBarStyleRule |
getStyleRule(ProgressBar progressBar,
ScreenSize screenSize) |
RadioButtonStyleRule |
getStyleRule(RadioButton radioButton,
ScreenSize screenSize) |
ScrollBoxStyleRule |
getStyleRule(ScrollBox scrollBox,
ScreenSize screenSize) |
SelectStyleRule |
getStyleRule(Select<?> select,
ScreenSize screenSize) |
SliderStyleRule |
getStyleRule(Slider slider,
ScreenSize screenSize) |
TabStyleRule |
getStyleRule(TabView tabView,
ScreenSize screenSize) |
TextBoxStyleRule |
getStyleRule(TextBox textbox,
ScreenSize screenSize) |
java.util.Map<java.lang.String,TabStyleRuleset> |
getTabRulesets() |
TabStyleRule |
getTabStyleRule(java.lang.String styleId,
ScreenSize screenSize) |
java.util.Map<java.lang.String,TextBoxStyleRuleset> |
getTextBoxRulesets() |
TextBoxStyleRule |
getTextBoxStyleRule(java.lang.String styleId,
ScreenSize screenSize) |
com.badlogic.gdx.graphics.g2d.TextureAtlas |
getTextureAtlas() |
boolean |
isHeadless() |
void |
loadDependencies(com.badlogic.gdx.utils.Array<com.badlogic.gdx.assets.AssetDescriptor> dependencies,
boolean headless) |
void |
prepareAssets(com.badlogic.gdx.assets.loaders.FileHandleResolver fileHandleResolver,
com.badlogic.gdx.assets.AssetManager assetManager) |
void |
putButtonStyleRuleset(java.lang.String rulesetId,
ButtonStyleRuleset ruleset) |
void |
putColumnStyleRuleset(java.lang.String rulesetId,
ColumnStyleRuleset ruleset) |
void |
putContainerStyleRuleset(java.lang.String rulesetId,
ContainerStyleRuleset ruleset) |
void |
putFont(java.lang.String id,
java.lang.String path) |
void |
putImageStyleRuleset(java.lang.String rulesetId,
DefaultStyleRuleset ruleset) |
void |
putLabelStyleRuleset(java.lang.String rulesetId,
LabelStyleRuleset ruleset) |
void |
putProgressBarStyleRuleset(java.lang.String rulesetId,
ProgressBarStyleRuleset ruleset) |
void |
putScrollBoxStyleRuleset(java.lang.String rulesetId,
ScrollBoxStyleRuleset ruleset) |
void |
putSelectStyleRuleset(java.lang.String rulesetId,
SelectStyleRuleset ruleset) |
void |
putTabStyleRuleset(java.lang.String rulesetId,
TabStyleRuleset ruleset) |
void |
putTextBoxStyleRuleset(java.lang.String rulesetId,
TextBoxStyleRuleset ruleset) |
void |
setId(java.lang.String id) |
void |
validate() |
public static final java.lang.String DEFAULT_THEME_FILENAME
public static final java.lang.String DEFAULT_THEME_ATLAS
public static final java.lang.String DEFAULT_STYLE_ID
public void validate()
public void loadDependencies(com.badlogic.gdx.utils.Array<com.badlogic.gdx.assets.AssetDescriptor> dependencies, boolean headless)
public void prepareAssets(com.badlogic.gdx.assets.loaders.FileHandleResolver fileHandleResolver, com.badlogic.gdx.assets.AssetManager assetManager)
public boolean containsButtonStyleRuleset(java.lang.String id)
public boolean containsCheckboxStyleRuleset(java.lang.String id)
public boolean containsColumnStyleRuleset(java.lang.String id)
public boolean containsImageStyleRuleset(java.lang.String id)
public boolean containsLabelStyleRuleset(java.lang.String id)
public ButtonStyleRule getStyleRule(Button button, ScreenSize screenSize)
public CheckboxStyleRule getStyleRule(Checkbox checkbox, ScreenSize screenSize)
public ParentStyleRule getStyleRule(Column column, ScreenSize screenSize)
public ContainerStyleRule getStyleRule(Container container, ScreenSize screenSize)
public LabelStyleRule getStyleRule(Label label, ScreenSize screenSize)
public StyleRule getStyleRule(Image image, ScreenSize screenSize)
public ProgressBarStyleRule getStyleRule(ProgressBar progressBar, ScreenSize screenSize)
public RadioButtonStyleRule getStyleRule(RadioButton radioButton, ScreenSize screenSize)
public ScrollBoxStyleRule getStyleRule(ScrollBox scrollBox, ScreenSize screenSize)
public SelectStyleRule getStyleRule(Select<?> select, ScreenSize screenSize)
public SliderStyleRule getStyleRule(Slider slider, ScreenSize screenSize)
public TabStyleRule getStyleRule(TabView tabView, ScreenSize screenSize)
public TextBoxStyleRule getStyleRule(TextBox textbox, ScreenSize screenSize)
public UiFont getFont(java.lang.String id)
public ButtonStyleRule getButtonStyleRule(java.lang.String styleId, ScreenSize screenSize)
public CheckboxStyleRule getCheckboxStyleRule(java.lang.String styleId, ScreenSize screenSize)
public ParentStyleRule getColumnStyleRule(java.lang.String styleId, ScreenSize screenSize)
public ContainerStyleRule getContainerStyleRule(java.lang.String styleId, ScreenSize screenSize)
public LabelStyleRule getLabelStyleRule(java.lang.String styleId, ScreenSize screenSize)
public ProgressBarStyleRule getProgressBarStyleRule(java.lang.String styleId, ScreenSize screenSize)
public RadioButtonStyleRule getRadioButtonStyleRule(java.lang.String styleId, ScreenSize screenSize)
public ScrollBoxStyleRule getScrollBoxStyleRule(java.lang.String styleId, ScreenSize screenSize)
public SelectStyleRule getSelectStyleRule(java.lang.String styleId, ScreenSize screenSize)
public SliderStyleRule getSliderStyleRule(java.lang.String styleId, ScreenSize screenSize)
public TabStyleRule getTabStyleRule(java.lang.String styleId, ScreenSize screenSize)
public TextBoxStyleRule getTextBoxStyleRule(java.lang.String styleId, ScreenSize screenSize)
public void putButtonStyleRuleset(java.lang.String rulesetId, ButtonStyleRuleset ruleset)
public void putColumnStyleRuleset(java.lang.String rulesetId, ColumnStyleRuleset ruleset)
public void putContainerStyleRuleset(java.lang.String rulesetId, ContainerStyleRuleset ruleset)
public void putImageStyleRuleset(java.lang.String rulesetId, DefaultStyleRuleset ruleset)
public void putLabelStyleRuleset(java.lang.String rulesetId, LabelStyleRuleset ruleset)
public void putProgressBarStyleRuleset(java.lang.String rulesetId, ProgressBarStyleRuleset ruleset)
public void putScrollBoxStyleRuleset(java.lang.String rulesetId, ScrollBoxStyleRuleset ruleset)
public void putSelectStyleRuleset(java.lang.String rulesetId, SelectStyleRuleset ruleset)
public void putTabStyleRuleset(java.lang.String rulesetId, TabStyleRuleset ruleset)
public void putTextBoxStyleRuleset(java.lang.String rulesetId, TextBoxStyleRuleset ruleset)
public void putFont(java.lang.String id, java.lang.String path)
public java.lang.String getId()
public void setId(java.lang.String id)
public com.badlogic.gdx.graphics.g2d.TextureAtlas getTextureAtlas()
public boolean isHeadless()
public java.util.Map<java.lang.String,ButtonStyleRuleset> getButtonRulesets()
public java.util.Map<java.lang.String,CheckboxStyleRuleset> getCheckboxRulesets()
public java.util.Map<java.lang.String,ColumnStyleRuleset> getColumnRulesets()
public java.util.Map<java.lang.String,ContainerStyleRuleset> getContainerRulesets()
public java.util.Map<java.lang.String,UiFont> getFonts()
public java.util.Map<java.lang.String,DefaultStyleRuleset> getImageRulesets()
public java.util.Map<java.lang.String,LabelStyleRuleset> getLabelRulesets()
public java.util.Map<java.lang.String,ProgressBarStyleRuleset> getProgressBarRulesets()
public java.util.Map<java.lang.String,RadioButtonStyleRuleset> getRadioButtonRulesets()
public java.util.Map<java.lang.String,SelectStyleRuleset> getSelectRulesets()
public java.util.Map<java.lang.String,ScrollBoxStyleRuleset> getScrollBoxRulesets()
public java.util.Map<java.lang.String,SliderStyleRuleset> getSliderRulesets()
public java.util.Map<java.lang.String,TabStyleRuleset> getTabRulesets()
public java.util.Map<java.lang.String,TextBoxStyleRuleset> getTextBoxRulesets()