|
Sweet Home 3D 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.sweethome3d.model.TexturesCatalog
com.eteks.sweethome3d.io.DefaultTexturesCatalog
public class DefaultTexturesCatalog
Textures default catalog read from localized resources.
Nested Class Summary | |
---|---|
static class |
DefaultTexturesCatalog.PropertyKey
The keys of the properties values read in .properties files. |
Field Summary | |
---|---|
static String |
PLUGIN_TEXTURES_CATALOG_FAMILY
The name of .properties family files in plugin textures catalog files. |
Constructor Summary | |
---|---|
DefaultTexturesCatalog()
Creates a default textures catalog read from resources. |
|
DefaultTexturesCatalog(File texturesPluginFolder)
Creates a default textures catalog read from resources and textures plugin folder if texturesPluginFolder isn't null . |
|
DefaultTexturesCatalog(URL[] pluginTexturesCatalogUrls)
Creates a default textures catalog read only from resources in the given URLs. |
|
DefaultTexturesCatalog(URL[] pluginTexturesCatalogUrls,
URL texturesResourcesUrlBase)
Creates a default textures catalog read only from resources in the given URLs. |
|
DefaultTexturesCatalog(UserPreferences preferences,
File texturesPluginFolder)
Creates a default textures catalog read from resources and textures plugin folder if texturesPluginFolder isn't null . |
|
DefaultTexturesCatalog(UserPreferences preferences,
File[] texturesPluginFolders)
Creates a default textures catalog read from resources and textures plugin folders if texturesPluginFolders isn't null . |
Method Summary | |
---|---|
List<Library> |
getLibraries()
Returns the furniture libraries at initialization. |
protected CatalogTexture |
readTexture(ResourceBundle resource,
int index,
URL texturesUrl,
URL texturesResourcesUrlBase)
Reads each texture described in resource bundle. |
protected TexturesCategory |
readTexturesCategory(ResourceBundle resource,
int index)
Returns the category of a texture at the given index of a
localized resource bundle. |
Methods inherited from class com.eteks.sweethome3d.model.TexturesCatalog |
---|
add, addTexturesListener, delete, getCategories, getCategoriesCount, getCategory, removeTexturesListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PLUGIN_TEXTURES_CATALOG_FAMILY
.properties
family files in plugin textures catalog files.
Constructor Detail |
---|
public DefaultTexturesCatalog()
public DefaultTexturesCatalog(File texturesPluginFolder)
texturesPluginFolder
isn't null
.
public DefaultTexturesCatalog(UserPreferences preferences, File texturesPluginFolder)
texturesPluginFolder
isn't null
.
public DefaultTexturesCatalog(UserPreferences preferences, File[] texturesPluginFolders)
texturesPluginFolders
isn't null
.
public DefaultTexturesCatalog(URL[] pluginTexturesCatalogUrls)
public DefaultTexturesCatalog(URL[] pluginTexturesCatalogUrls, URL texturesResourcesUrlBase)
texturesResourcesUrlBase
if it isn't null
.
Method Detail |
---|
public List<Library> getLibraries()
protected CatalogTexture readTexture(ResourceBundle resource, int index, URL texturesUrl, URL texturesResourcesUrlBase)
resource
bundle.
Resources described in texture properties will be loaded from texturesUrl
if it isn't null
.
protected TexturesCategory readTexturesCategory(ResourceBundle resource, int index)
index
of a
localized resource
bundle.
MissingResourceException
- if mandatory keys are not defined.
|
Sweet Home 3D 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License |