public class Theme
Class that defines the attributes for a theme. For example, the permutations for a normal 6-sided die
Constructor and Description |
---|
Theme(ThemeStyles style,
boolean vibrate,
boolean wiggleAnimation,
boolean changeAnimation)
Class that defines the attributes for a theme.
For example, the permutations for a normal 6-sided die
|
Modifier and Type | Method and Description |
---|---|
boolean |
getChangeAnimation()
:
|
ThemeStyles |
getStyle()
:
|
java.util.HashMap<java.lang.String,java.lang.Integer> |
getThemeColors(android.content.Context context)
Calculates the Theme's colour values
|
boolean |
getVibrate()
:
|
boolean |
getWiggleAnimation()
:
|
public Theme(ThemeStyles style, boolean vibrate, boolean wiggleAnimation, boolean changeAnimation)
Class that defines the attributes for a theme. For example, the permutations for a normal 6-sided die
style
- : The style of the theme. Used to define which images to use for the dievibrate
- : Can be set to true to enable vibratingwiggleAnimation
- : Can be set to true to enable a wiggle animationchangeAnimation
- : Can be set to true to enable an animation that changes the eyes of the die while it is rollingstyle
- : The style of the theme. Used to define which images to use for the dievibrate
- : Can be set to true to enable vibratingwiggleAnimation
- : Can be set to true to enable a wiggle animationchangeAnimation
- : Can be set to true to enable an animation that
changes the eyes of the die while it is rollingpublic java.util.HashMap<java.lang.String,java.lang.Integer> getThemeColors(android.content.Context context)
Calculates the Theme's colour values
context
- : The currently active activitypublic ThemeStyles getStyle()
:
The style of the theme. Used to define which images to use for the die
public boolean getVibrate()
:
Can be set to true to enable vibrating
public boolean getWiggleAnimation()
:
Can be set to true to enable a wiggle animation
public boolean getChangeAnimation()
:
Can be set to true to enable an animation that changes the eyes of the die while it is rolling