|
Sweet Home 3D 4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.sweethome3d.model.HomePieceOfFurniture
com.eteks.sweethome3d.model.HomeLight
public class HomeLight
A light in home.
Nested Class Summary | |
---|---|
static class |
HomeLight.Property
The properties of a light that may change. |
Nested classes/interfaces inherited from class com.eteks.sweethome3d.model.HomePieceOfFurniture |
---|
HomePieceOfFurniture.SortableProperty |
Constructor Summary | |
---|---|
HomeLight(Light light)
Creates a home light from an existing one. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds the property change listener in parameter to this piece. |
HomeLight |
clone()
Returns a clone of this light. |
LightSource[] |
getLightSources()
Returns the sources managed by this light. |
float |
getPower()
Returns the power of this light. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes the property change listener in parameter from this piece. |
void |
setPower(float power)
Sets the power of this light. |
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, getCurrency, getDepth, getDescription, getElevation, getHeight, getIcon, getModel, getModelRotation, getName, getPlanIcon, getPrice, getStaircaseCutOutShape, getValueAddedTaxPercentage, getWidth, isBackFaceShown, isDeformable, isDoorOrWindow, isMovable, isResizable, isTexturable |
Constructor Detail |
---|
public HomeLight(Light light)
light
- the light from which data are copiedMethod Detail |
---|
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
in parameter to this piece.
addPropertyChangeListener
in class HomePieceOfFurniture
public void removePropertyChangeListener(PropertyChangeListener listener)
listener
in parameter from this piece.
removePropertyChangeListener
in class HomePieceOfFurniture
public LightSource[] getLightSources()
getLightSources
in interface Light
public float getPower()
public void setPower(float power)
public HomeLight clone()
clone
in interface Selectable
clone
in class HomePieceOfFurniture
|
Sweet Home 3D 4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License |