public class HomeTexture extends Object implements TextureImage, Serializable
| Constructor and Description |
|---|
HomeTexture(TextureImage texture)
Creates a home texture from an existing one.
|
HomeTexture(TextureImage texture,
float angle)
Creates a home texture from an existing one with customized angle and offset.
|
HomeTexture(TextureImage texture,
float angle,
boolean leftToRightOriented)
Creates a home texture from an existing one with customized angle and offset.
|
HomeTexture(TextureImage texture,
float angle,
float scale,
boolean leftToRightOriented)
Creates a home texture from an existing one with customized angle and offset.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns
true if the object in parameter is equal to this texture. |
float |
getAngle()
Returns the angle of rotation in radians applied to this texture.
|
String |
getCatalogId()
Returns the catalog ID of this texture or
null if it doesn't exist. |
String |
getCreator()
Returns the creator of this texture.
|
float |
getHeight()
Returns the height of the image in centimeters.
|
Content |
getImage()
Returns the content of the image used for this texture.
|
String |
getName()
Returns the name of this texture.
|
float |
getScale()
Returns the scale applied to 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 HomeTexture(TextureImage texture, float angle)
texture - the texture from which data are copiedangle - the rotation angle applied to the texturepublic HomeTexture(TextureImage texture, float angle, boolean leftToRightOriented)
texture - the texture from which data are copiedangle - the rotation angle applied to the textureleftToRightOriented - orientation used on the texture when applied on objects seen from frontpublic HomeTexture(TextureImage texture, float angle, float scale, boolean leftToRightOriented)
texture - the texture from which data are copiedangle - the rotation angle applied to the texturescale - the scale applied to the textureleftToRightOriented - orientation used on the texture when applied on objects seen from frontpublic String getCatalogId()
null if it doesn't exist.public String getName()
getName in interface TextureImagepublic String getCreator()
getCreator in interface TextureImagepublic Content getImage()
getImage in interface TextureImagepublic float getWidth()
getWidth in interface TextureImagepublic float getHeight()
getHeight in interface TextureImagepublic float getAngle()
public float getScale()
public boolean isLeftToRightOriented()
true if the objects using this texture should take into account
the orientation of the texture.public boolean equals(Object obj)
true if the object in parameter is equal to this texture.

© Copyrights 2006-2017 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License