public class HomeTexture extends java.lang.Object implements TextureImage, java.io.Serializable
Constructor and Description |
---|
HomeTexture(TextureImage texture)
Creates a home texture from an existing one.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns
true if the object in parameter is equal to this texture. |
float |
getHeight()
Returns the height of the image in centimeters.
|
Content |
getImage()
Returns the content of the image used for this texture.
|
java.lang.String |
getName()
Returns the name of this texture.
|
float |
getWidth()
Returns the width of the image in centimeters.
|
int |
hashCode()
Returns a hash code for this texture.
|
boolean |
isLeftToRightOriented()
Returns
true if the objects using this texture should take into account
the orientation of the texture. |
public HomeTexture(TextureImage texture)
texture
- the texture from which data are copiedpublic java.lang.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 boolean isLeftToRightOriented()
true
if the objects using this texture should take into account
the orientation of the texture.public boolean equals(java.lang.Object obj)
true
if the object in parameter is equal to this texture.equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
© Copyrights 2006-2014 eTeks - All rights reserved
Distributed under GNU General Public License