Sweet Home 3D 4.1

com.eteks.sweethome3d.model
Class TexturesCategory

java.lang.Object
  extended by com.eteks.sweethome3d.model.TexturesCategory
All Implemented Interfaces:
Comparable<TexturesCategory>

public class TexturesCategory
extends Object
implements Comparable<TexturesCategory>

Category of textures.

Author:
Emmanuel Puybaret

Constructor Summary
TexturesCategory(String name)
          Create a category.
 
Method Summary
 int compareTo(TexturesCategory category)
          Compares the names of this category and the one in parameter.
 boolean equals(Object obj)
          Returns true if this category and the one in parameter have the same name.
 int getIndexOfTexture(CatalogTexture texture)
          Returns the index of the given texture.
 String getName()
          Returns the name of this category.
 CatalogTexture getTexture(int index)
          Returns the texture at a given index.
 List<CatalogTexture> getTextures()
          Returns the textures list of this category sorted by name.
 int getTexturesCount()
          Returns the count of textures in this category.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TexturesCategory

public TexturesCategory(String name)
Create a category.

Parameters:
name - the name of the category.
Method Detail

getName

public String getName()
Returns the name of this category.


getTextures

public List<CatalogTexture> getTextures()
Returns the textures list of this category sorted by name.

Returns:
an unmodifiable list of furniture.

getTexturesCount

public int getTexturesCount()
Returns the count of textures in this category.


getTexture

public CatalogTexture getTexture(int index)
Returns the texture at a given index.


getIndexOfTexture

public int getIndexOfTexture(CatalogTexture texture)
Returns the index of the given texture.

Since:
3.6

equals

public boolean equals(Object obj)
Returns true if this category and the one in parameter have the same name.

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(TexturesCategory category)
Compares the names of this category and the one in parameter.

Specified by:
compareTo in interface Comparable<TexturesCategory>

Sweet Home 3D 4.1

© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License