Sweet Home 3D 4.1

com.eteks.sweethome3d.model
Class HomeTexture

java.lang.Object
  extended by com.eteks.sweethome3d.model.HomeTexture
All Implemented Interfaces:
TextureImage, Serializable

public class HomeTexture
extends Object
implements TextureImage, Serializable

An image used as texture on home 3D objects.

Author:
Emmanuel Puybaret
See Also:
Serialized Form

Constructor Summary
HomeTexture(TextureImage texture)
          Creates a home texture from an existing one.
 
Method Summary
 boolean equals(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.
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HomeTexture

public HomeTexture(TextureImage texture)
Creates a home texture from an existing one.

Parameters:
texture - the texture from which data are copied
Method Detail

getName

public String getName()
Returns the name of this texture.

Specified by:
getName in interface TextureImage

getImage

public Content getImage()
Returns the content of the image used for this texture.

Specified by:
getImage in interface TextureImage

getWidth

public float getWidth()
Returns the width of the image in centimeters.

Specified by:
getWidth in interface TextureImage

getHeight

public float getHeight()
Returns the height of the image in centimeters.

Specified by:
getHeight in interface TextureImage

isLeftToRightOriented

public boolean isLeftToRightOriented()
Returns true if the objects using this texture should take into account the orientation of the texture.

Since:
3.4

equals

public boolean equals(Object obj)
Returns true if the object in parameter is equal to this texture.

Overrides:
equals in class Object

hashCode

public int hashCode()
Returns a hash code for this texture.

Overrides:
hashCode in class Object

Sweet Home 3D 4.1

© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License