|
Sweet Home 3D 4.1 | |||||||||
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 are the same objects. |
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 default hash code. |
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 centimeterspublic 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 texturepublic 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 modifiedpublic 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 TextureImage
public Content getImage()
getImage
in interface TextureImage
public float getWidth()
getWidth
in interface TextureImage
public float getHeight()
getHeight
in interface TextureImage
public 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 Object
public int hashCode()
hashCode
in class Object
public int compareTo(CatalogTexture texture)
compareTo
in interface Comparable<CatalogTexture>
|
Sweet Home 3D 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License |