Sweet Home 3D 3.4

com.eteks.sweethome3d.model
Class TexturesCategory

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

public class TexturesCategory
extends java.lang.Object
implements java.lang.Comparable<TexturesCategory>

Category of textures.

Author:
Emmanuel Puybaret

Constructor Summary
TexturesCategory(java.lang.String name)
          Create a category.
 
Method Summary
 int compareTo(TexturesCategory category)
          Compares the names of this category and the one in parameter.
 boolean equals(java.lang.Object obj)
          Returns true if this category and the one in parameter have the same name.
 java.lang.String getName()
          Returns the name of this category.
 CatalogTexture getTexture(int index)
          Returns the texture at a given index.
 java.util.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(java.lang.String name)
Create a category.

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

getName

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


getTextures

public java.util.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.


equals

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

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

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

Specified by:
compareTo in interface java.lang.Comparable<TexturesCategory>

Sweet Home 3D 3.4

? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License