|
Sweet Home 3D 3.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eteks.sweethome3d.model.CatalogTexture
public class CatalogTexture
A texture in textures catalog.
| Constructor Summary | |
|---|---|
CatalogTexture(String name,
Content image,
float width,
float height)
Creates an unmodifiable catalog texture. |
|
CatalogTexture(String name,
Content image,
float width,
float height,
boolean modifiable)
Creates a catalog texture. |
|
CatalogTexture(String id,
String name,
Content image,
float width,
float height,
String creator)
Creates a catalog texture. |
|
CatalogTexture(String id,
String name,
Content image,
float width,
float height,
String creator,
boolean modifiable)
|
|
| Method Summary | |
|---|---|
int |
compareTo(CatalogTexture texture)
Compares the names of this texture and the one in parameter. |
boolean |
equals(Object obj)
Returns true if this texture and the one in parameter have the same name. |
TexturesCategory |
getCategory()
Returns the category of this texture. |
String |
getCreator()
Returns the creator of this texture or null. |
float |
getHeight()
Returns the height of the image in centimeters. |
String |
getId()
Returns the ID of this texture or null. |
Content |
getImage()
Returns the content of the image used for this texture. |
String |
getName()
Returns the name of this texture. |
float |
getWidth()
Returns the width of the image in centimeters. |
int |
hashCode()
Returns a hash code computed from the name of this texture. |
boolean |
isModifiable()
Returns true if this texture is modifiable (not read from resources). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CatalogTexture(String name,
Content image,
float width,
float height)
name - the name of this textureimage - the content of the image used for this texturewidth - the width of the texture in centimetersheight - the height of the texture in centimeters
public CatalogTexture(String id,
String name,
Content image,
float width,
float height,
String creator)
id - the id of the texturename - the name of this textureimage - the content of the image used for this texturewidth - the width of the texture in centimetersheight - the height of the texture in centimeterscreator - the creator of this texture
public CatalogTexture(String name,
Content image,
float width,
float height,
boolean modifiable)
name - the name of this textureimage - the content of the image used for this texturewidth - the width of the texture in centimetersheight - the height of the texture in centimetersmodifiable - true if this texture can be modified
public CatalogTexture(String id,
String name,
Content image,
float width,
float height,
String creator,
boolean modifiable)
| Method Detail |
|---|
public String getId()
null.
public String getName()
getName in interface TextureImagepublic Content getImage()
getImage in interface TextureImagepublic float getWidth()
getWidth in interface TextureImagepublic float getHeight()
getHeight in interface TextureImagepublic String getCreator()
null.
public boolean isModifiable()
true if this texture is modifiable (not read from resources).
public TexturesCategory getCategory()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(CatalogTexture texture)
compareTo in interface Comparable<CatalogTexture>
|
Sweet Home 3D 3.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
![]() |
© Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License |