public static class SubstanceSkin.ColorSchemes
extends java.lang.Object
SubstanceSkin.getColorSchemes(URL)
API. Note that the custom
skins should only use the get(String)
API. The rest of the API
is currently internal and is used in the Jitterbug
visual editor.Constructor and Description |
---|
SubstanceSkin.ColorSchemes()
Creates an object with empty list of color schemes.
|
SubstanceSkin.ColorSchemes(java.util.List<SubstanceColorScheme> schemes)
Creates an object based on the specified list of color schemes.
|
Modifier and Type | Method and Description |
---|---|
void |
add(SubstanceColorScheme scheme)
Adds the specified color scheme to the end of the list.
|
void |
delete(java.lang.String displayName)
Deletes the color scheme that has the specified display name.
|
SubstanceColorScheme |
get(int index)
Returns the color scheme at the specified index.
|
SubstanceColorScheme |
get(java.lang.String displayName)
Returns the color scheme based on its display name.
|
void |
replace(java.lang.String displayName,
SubstanceColorScheme scheme)
Finds the index of the color scheme that has the specified display
name and replaces it with (possibly another) color scheme.
|
int |
size()
Returns the number of color schemes in this object.
|
void |
switchWithNext(java.lang.String displayName)
Moves the color scheme with the specified display name one position
towards the end of the list.
|
void |
switchWithPrevious(java.lang.String displayName)
Moves the color scheme with the specified display name one position
towards the beginning of the list.
|
public SubstanceSkin.ColorSchemes()
public SubstanceSkin.ColorSchemes(java.util.List<SubstanceColorScheme> schemes)
schemes
- List of color schemes.public int size()
public SubstanceColorScheme get(int index)
index
- Index.public SubstanceColorScheme get(java.lang.String displayName)
displayName
- Display name of a color scheme.public void replace(java.lang.String displayName, SubstanceColorScheme scheme)
displayName
- Display name of a color scheme.scheme
- Color scheme that will replace the existing color scheme
(based on the display name) at the same index in the list.public void delete(java.lang.String displayName)
displayName
- Display name of the color scheme to delete from the list.public void add(SubstanceColorScheme scheme)
scheme
- Color scheme to add to the end of the list.public void switchWithPrevious(java.lang.String displayName)
displayName
- Display name of the color scheme to move one position
towards the beginning of the list.public void switchWithNext(java.lang.String displayName)
displayName
- Display name of the color scheme to move one position
towards the end of the list.