public interface SkinFactory
Modifier and Type | Method and Description |
---|---|
Skin |
createSkin(java.lang.String typeIdentifier)
Creates a skin for the given type identifier
Throws a addon exception if the type identifier is not supported.
|
AddonMetadata |
getMetadata(java.lang.String typeIdentifier)
Returns the metadata (like human readable name) for a given skin.
|
java.lang.String[] |
getSupportedTypeIdentifiers()
Returns a list of all skin type identifiers supported by this factory.
|
boolean |
isSupportingTypeIdentifier(java.lang.String typeIdentifier)
Returns true if this factory supports skins with the given ID, false otherwise.
|
Skin createSkin(java.lang.String typeIdentifier) throws AddonException
typeIdentifier
- Type identifier of the look and feel.AddonException
- Thrown if an error occurred during the construction.java.lang.String[] getSupportedTypeIdentifiers()
boolean isSupportingTypeIdentifier(java.lang.String typeIdentifier)
typeIdentifier
- The ID of the skin for which it should be queried if this factory supports its construction.AddonMetadata getMetadata(java.lang.String typeIdentifier) throws AddonException
typeIdentifier
- The type identifier of the skin for which the metadata should be returned.AddonException
- Thrown if identifier is not supported by the addon.