public class PatternsCatalog extends Object
Constructor and Description |
---|
PatternsCatalog(List<TextureImage> patterns)
Creates a patterns catalog.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public PatternsCatalog(List<TextureImage> patterns)
public List<TextureImage> getPatterns()
public int getPatternsCount()
public TextureImage getPattern(int index)
index
.public TextureImage getPattern(String name)
name
.IllegalArgumentException
- if no pattern with the given name
exists
© Copyrights 2006-2015 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License