public class Theme
extends java.lang.Object
Constructor and Description |
---|
Theme(java.lang.Class<?> localClass,
java.lang.String name,
java.lang.String... styleSheets)
Creates a new theme with the given name and styled by the given style sheets.
|
Theme(java.lang.String name,
java.lang.String... styleSheets)
Creates a new theme with the given name and styled by the given style sheets.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the name of this theme.
|
com.google.common.collect.ImmutableList<java.lang.String> |
getStyleSheets()
Gets the style sheets in this theme.
|
java.lang.String |
toString() |
public Theme(java.lang.String name, java.lang.String... styleSheets)
Themes defined in plugins MUST NOT use this constructor. Themes defined in plugin jars will be unable to find their stylesheets, since those stylesheets are in a JAR somewhere that shuffleboard will not necessarily be aware of.
name
- the name of the themestyleSheets
- the locations of the style sheets that the theme usespublic Theme(java.lang.Class<?> localClass, java.lang.String name, java.lang.String... styleSheets)
localClass
- a class defined in the plugin. This parameter allows Shuffleboard to be able to locate the
stylesheets within the plugin JAR.name
- the name of the themestyleSheets
- the locations of the style sheets that the theme usespublic java.lang.String getName()
public com.google.common.collect.ImmutableList<java.lang.String> getStyleSheets()
public java.lang.String toString()
toString
in class java.lang.Object