public class DefaultTexturesCatalog extends TexturesCatalog
Modifier and Type | Class and Description |
---|---|
static class |
DefaultTexturesCatalog.PropertyKey
The keys of the properties values read in
.properties files. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PLUGIN_TEXTURES_CATALOG_FAMILY
The name of
.properties family files in plugin textures catalog files. |
Constructor and Description |
---|
DefaultTexturesCatalog()
Creates a default textures catalog read from resources.
|
DefaultTexturesCatalog(java.io.File texturesPluginFolder)
Creates a default textures catalog read from resources and
textures plugin folder if
texturesPluginFolder isn't null . |
DefaultTexturesCatalog(java.net.URL[] pluginTexturesCatalogUrls)
Creates a default textures catalog read only from resources in the given URLs.
|
DefaultTexturesCatalog(java.net.URL[] pluginTexturesCatalogUrls,
java.net.URL texturesResourcesUrlBase)
Creates a default textures catalog read only from resources in the given URLs.
|
DefaultTexturesCatalog(UserPreferences preferences,
java.io.File texturesPluginFolder)
Creates a default textures catalog read from resources and
textures plugin folder if
texturesPluginFolder isn't null . |
DefaultTexturesCatalog(UserPreferences preferences,
java.io.File[] texturesPluginFolders)
Creates a default textures catalog read from resources and
textures plugin folders if
texturesPluginFolders isn't null . |
Modifier and Type | Method and Description |
---|---|
java.util.List<Library> |
getLibraries()
Returns the furniture libraries at initialization.
|
protected CatalogTexture |
readTexture(java.util.ResourceBundle resource,
int index,
java.net.URL texturesUrl,
java.net.URL texturesResourcesUrlBase)
Reads each texture described in
resource bundle. |
protected TexturesCategory |
readTexturesCategory(java.util.ResourceBundle resource,
int index)
Returns the category of a texture at the given
index of a
localized resource bundle. |
add, addTexturesListener, delete, getCategories, getCategoriesCount, getCategory, removeTexturesListener
public static final java.lang.String PLUGIN_TEXTURES_CATALOG_FAMILY
.properties
family files in plugin textures catalog files.public DefaultTexturesCatalog()
public DefaultTexturesCatalog(java.io.File texturesPluginFolder)
texturesPluginFolder
isn't null
.public DefaultTexturesCatalog(UserPreferences preferences, java.io.File texturesPluginFolder)
texturesPluginFolder
isn't null
.public DefaultTexturesCatalog(UserPreferences preferences, java.io.File[] texturesPluginFolders)
texturesPluginFolders
isn't null
.public DefaultTexturesCatalog(java.net.URL[] pluginTexturesCatalogUrls)
public DefaultTexturesCatalog(java.net.URL[] pluginTexturesCatalogUrls, java.net.URL texturesResourcesUrlBase)
texturesResourcesUrlBase
if it isn't null
.public java.util.List<Library> getLibraries()
protected CatalogTexture readTexture(java.util.ResourceBundle resource, int index, java.net.URL texturesUrl, java.net.URL texturesResourcesUrlBase)
resource
bundle.
Resources described in texture properties will be loaded from texturesUrl
if it isn't null
.protected TexturesCategory readTexturesCategory(java.util.ResourceBundle resource, int index)
index
of a
localized resource
bundle.java.util.MissingResourceException
- if mandatory keys are not defined.
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License