public interface ThemeDefinition
Modifier and Type | Method and Description |
---|---|
ThemeStyle |
getActive()
The "active" style of this definition, which can be used when a component is being directly interacted with
|
char |
getCharacter(String name,
char fallback)
Retrieves a character from this theme definition by the specified name.
|
ThemeStyle |
getCustom(String name)
Retrieves a custom ThemeStyle, if one is available by this name.
|
ThemeStyle |
getInsensitive()
The insensitive style of this definition, which can be used when a component has been disabled or in some other
way isn't able to be interacted with.
|
ThemeStyle |
getNormal()
The normal style of the definition, which can be considered the default to be used.
|
ThemeStyle |
getPreLight()
The pre-light style of this definition, which can be used when a component has input focus but isn't active or
selected, similar to mouse-hoovering in modern GUIs
|
String |
getRenderer()
Returns the class name of the ComponentRenderer attached to this definition.
|
ThemeStyle |
getSelected()
The "selected" style of this definition, which can used when a component has been actively selected in some way.
|
ThemeStyle getNormal()
ThemeStyle getPreLight()
ThemeStyle getSelected()
ThemeStyle getActive()
ThemeStyle getInsensitive()
ThemeStyle getCustom(String name)
name
- Name of the style to look upnull
if there was no such stylechar getCharacter(String name, char fallback)
null
so
you need to give a fallback in case the definition didn't have any character by this name.name
- Name of the character to look upfallback
- Character to return if there was no character by the name supplied in this definitionfallback
if the definition didn't have
any character defined with this nameString getRenderer()
null
instead of going up in the hierarchy, unlike the other methods of this interface.null
Copyright © 2016. All rights reserved.