Sweet Home 3D 4.0

com.eteks.sweethome3d.model
Class HomeMaterial

java.lang.Object
  extended by com.eteks.sweethome3d.model.HomeMaterial
All Implemented Interfaces:
Serializable

public class HomeMaterial
extends Object
implements Serializable

The color and other properties of a material.

Since:
4.0
Author:
Emmanuel Puybaret
See Also:
Serialized Form

Constructor Summary
HomeMaterial(String name, Integer color, HomeTexture texture, Float shininess)
          Creates a material instance from parameters.
 
Method Summary
 Integer getColor()
          Returns the color of this material.
 String getName()
          Returns the name of this material.
 Float getShininess()
          Returns the shininess of this material.
 HomeTexture getTexture()
          Returns the texture of this material.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HomeMaterial

public HomeMaterial(String name,
                    Integer color,
                    HomeTexture texture,
                    Float shininess)
Creates a material instance from parameters.

Since:
4.0
Method Detail

getName

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

Returns:
the name of the material or null if material has no name.
Since:
4.0

getColor

public Integer getColor()
Returns the color of this material.

Returns:
the color of the material as RGB code or null if material color is unchanged.
Since:
4.0

getTexture

public HomeTexture getTexture()
Returns the texture of this material.

Returns:
the texture of the material or null if material texture is unchanged.
Since:
4.0

getShininess

public Float getShininess()
Returns the shininess of this material.

Returns:
a value between 0 (matt) and 1 (very shiny) or null if material shininess is unchanged.
Since:
4.0

Sweet Home 3D 4.0

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