Sweet Home 3D 4.0

com.eteks.sweethome3d.model
Class PatternsCatalog

java.lang.Object
  extended by com.eteks.sweethome3d.model.PatternsCatalog

public class PatternsCatalog
extends Object

A catalog of texture images used as patterns to fill plan areas.

Since:
2.0
Author:
Emmanuel Puybaret

Constructor Summary
PatternsCatalog(List<TextureImage> patterns)
          Creates a patterns catalog.
 
Method Summary
 TextureImage getPattern(int index)
          Returns the pattern at a given index.
 TextureImage getPattern(String name)
          Returns the pattern with a given name.
 List<TextureImage> getPatterns()
          Returns the patterns list.
 int getPatternsCount()
          Returns the count of patterns in this category.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternsCatalog

public PatternsCatalog(List<TextureImage> patterns)
Creates a patterns catalog.

Method Detail

getPatterns

public List<TextureImage> getPatterns()
Returns the patterns list.

Returns:
an unmodifiable list of furniture.

getPatternsCount

public int getPatternsCount()
Returns the count of patterns in this category.


getPattern

public TextureImage getPattern(int index)
Returns the pattern at a given index.


getPattern

public TextureImage getPattern(String name)
Returns the pattern with a given name.

Throws:
IllegalArgumentException - if no pattern with the given name exists

Sweet Home 3D 4.0

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