public class TexturesCatalog
extends java.lang.Object
Constructor and Description |
---|
TexturesCatalog() |
Modifier and Type | Method and Description |
---|---|
void |
add(TexturesCategory category,
CatalogTexture texture)
Adds
texture of a given category to this catalog. |
void |
addTexturesListener(CollectionListener<CatalogTexture> listener)
Adds the texture
listener in parameter to this catalog. |
void |
delete(CatalogTexture texture)
Deletes the
texture from this catalog. |
java.util.List<TexturesCategory> |
getCategories()
Returns the categories list sorted by name.
|
int |
getCategoriesCount()
Returns the count of categories in this catalog.
|
TexturesCategory |
getCategory(int index)
Returns the category at a given
index . |
void |
removeTexturesListener(CollectionListener<CatalogTexture> listener)
Removes the texture
listener in parameter from this catalog. |
public java.util.List<TexturesCategory> getCategories()
public int getCategoriesCount()
public TexturesCategory getCategory(int index)
index
.public void addTexturesListener(CollectionListener<CatalogTexture> listener)
listener
in parameter to this catalog.public void removeTexturesListener(CollectionListener<CatalogTexture> listener)
listener
in parameter from this catalog.public void add(TexturesCategory category, CatalogTexture texture)
texture
of a given category
to this catalog.
Once the texture
is added, texture listeners added to this catalog will receive a
collectionChanged
notification.category
- the category of the texture.texture
- a texture.public void delete(CatalogTexture texture)
texture
from this catalog.
If then texture category is empty, it will be removed from the categories of this catalog.
Once the texture
is deleted, texture listeners added to this catalog will receive a
collectionChanged
notification.texture
- a texture.
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License