Sweet Home 3D 2.5

com.eteks.sweethome3d.model
Class HomeLight

java.lang.Object
  extended by com.eteks.sweethome3d.model.HomePieceOfFurniture
      extended by com.eteks.sweethome3d.model.HomeLight
All Implemented Interfaces:
Light, PieceOfFurniture, Selectable, Serializable, Cloneable

public class HomeLight
extends HomePieceOfFurniture
implements Light

A light in home.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class com.eteks.sweethome3d.model.HomePieceOfFurniture
HomePieceOfFurniture.Property, HomePieceOfFurniture.SortableProperty
 
Constructor Summary
HomeLight(Light light)
          Creates a home light from an existing one.
 
Method Summary
 HomeLight clone()
          Returns a clone of this light.
 LightSource[] getLightSources()
          Returns the sources managed by this light.
 
Methods inherited from class com.eteks.sweethome3d.model.HomePieceOfFurniture
addPropertyChangeListener, containsPoint, getAngle, getCatalogId, getColor, getDepth, getDescription, getElevation, getFurnitureComparator, getHeight, getIcon, getModel, getModelRotation, getName, getNameStyle, getNameXOffset, getNameYOffset, getPlanIcon, getPoints, getPrice, getPriceValueAddedTaxIncluded, getTexture, getValueAddedTax, getValueAddedTaxPercentage, getWidth, getX, getY, intersectsRectangle, isBackFaceShown, isBottomLeftPointAt, isBottomRightPointAt, isDoorOrWindow, isModelMirrored, isMovable, isNameCenterPointAt, isNameVisible, isPointAt, isResizable, isTopLeftPointAt, isTopRightPointAt, isVisible, move, removePropertyChangeListener, setAngle, setColor, setDepth, setDescription, setElevation, setHeight, setModelMirrored, setName, setNameStyle, setNameVisible, setNameXOffset, setNameYOffset, setTexture, setVisible, setWidth, setX, setY
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eteks.sweethome3d.model.PieceOfFurniture
getColor, getDepth, getDescription, getElevation, getHeight, getIcon, getModel, getModelRotation, getName, getPlanIcon, getPrice, getValueAddedTaxPercentage, getWidth, isBackFaceShown, isDoorOrWindow, isMovable, isResizable
 

Constructor Detail

HomeLight

public HomeLight(Light light)
Creates a home light from an existing one.

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

getLightSources

public LightSource[] getLightSources()
Returns the sources managed by this light. Each light source point is a percentage of the width, the depth and the height of this light. with the abscissa origin at the left side of the piece, the ordinate origin at the front side of the piece and the elevation origin at the bottom side of the piece.

Specified by:
getLightSources in interface Light
Returns:
a copy of light sources array.

clone

public HomeLight clone()
Returns a clone of this light.

Specified by:
clone in interface Selectable
Overrides:
clone in class HomePieceOfFurniture

Sweet Home 3D 2.5

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