public class HomeLight extends HomePieceOfFurniture implements Light
Modifier and Type | Class and Description |
---|---|
static class |
HomeLight.Property
The properties of a light that may change.
|
HomePieceOfFurniture.SortableProperty
EMPTY_PROPERTY_ARRAY
DEFAULT_CUT_OUT_SHAPE, HIDE_EDGE_COLOR_MATERIAL, IDENTITY_ROTATION, SHOW_BACK_FACE
Constructor and Description |
---|
HomeLight(Light light)
Creates a home light from an existing one.
|
HomeLight(Light light,
java.lang.String[] copiedProperties)
Creates a home light from an existing one.
|
HomeLight(java.lang.String id,
Light light)
Creates a home light from an existing one.
|
HomeLight(java.lang.String id,
Light light,
java.lang.String[] copiedProperties)
Creates a home light from an existing one.
|
Modifier and Type | Method and Description |
---|---|
HomeLight |
clone()
Returns a clone of this light.
|
java.lang.String[] |
getLightSourceMaterialNames()
Returns the material names of the light sources in the 3D model managed by this light.
|
LightSource[] |
getLightSources()
Returns the sources managed by this light.
|
float |
getPower()
Returns the power of this light.
|
void |
setLightSourceMaterialNames(java.lang.String[] lightSourceMaterialNames)
Sets the material names of the light sources in the 3D model managed by this light.
|
void |
setLightSources(LightSource[] lightSources)
Sets the sources managed by this light.
|
void |
setPower(float power)
Sets the power of this light.
|
containsPoint, getAngle, getCatalogId, getColor, getCreator, getCurrency, getDepth, getDepthInPlan, getDescription, getDropOnTopElevation, getElevation, getFurnitureComparator, getGroundElevation, getHeight, getHeightInPlan, getIcon, getInformation, getLevel, getLicense, getModel, getModelFlags, getModelMaterials, getModelRotation, getModelSize, getModelTransformations, getName, getNameAngle, getNameStyle, getNameXOffset, getNameYOffset, getPitch, getPlanIcon, getPoints, getPrice, getPriceValueAddedTaxIncluded, getRoll, getShininess, getStaircaseCutOutShape, getTexture, getValueAddedTax, getValueAddedTaxPercentage, getWidth, getWidthInPlan, getX, getY, intersectsRectangle, isAtLevel, isBackFaceShown, isBottomLeftPointAt, isBottomRightPointAt, isDeformable, isDoorOrWindow, isHorizontallyRotatable, isHorizontallyRotated, isModelCenteredAtOrigin, isModelMirrored, isMovable, isNameCenterPointAt, isNameVisible, isParallelToWall, isPointAt, isResizable, isTexturable, isTopLeftPointAt, isTopRightPointAt, isVisible, isWidthDepthDeformable, move, scale, setAngle, setBackFaceShown, setCatalogId, setColor, setCreator, setCurrency, setDepth, setDepthInPlan, setDescription, setElevation, setHeight, setHeightInPlan, setIcon, setInformation, setLevel, setLicense, setModel, setModelCenteredAtOrigin, setModelFlags, setModelMaterials, setModelMirrored, setModelRotation, setModelSize, setModelTransformations, setMovable, setName, setNameAngle, setNameStyle, setNameVisible, setNameXOffset, setNameYOffset, setPitch, setPlanIcon, setPrice, setRoll, setShininess, setStaircaseCutOutShape, setTexture, setValueAddedTaxPercentage, setVisible, setWidth, setWidthInPlan, setX, setY
addPropertyChangeListener, addPropertyChangeListener, createId, duplicate, firePropertyChange, getContentProperty, getId, getProperty, getPropertyNames, isContentProperty, removePropertyChangeListener, removePropertyChangeListener, setProperty, setProperty
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColor, getContentProperty, getCreator, getCurrency, getDepth, getDescription, getDropOnTopElevation, getElevation, getHeight, getIcon, getInformation, getLicense, getModel, getModelFlags, getModelRotation, getModelSize, getName, getPlanIcon, getPrice, getProperty, getPropertyNames, getStaircaseCutOutShape, getValueAddedTaxPercentage, getWidth, isBackFaceShown, isContentProperty, isDeformable, isDoorOrWindow, isHorizontallyRotatable, isMovable, isResizable, isTexturable, isWidthDepthDeformable
public HomeLight(Light light)
light
- the light from which data are copiedpublic HomeLight(Light light, java.lang.String[] copiedProperties)
light
- the light from which data are copiedcopiedProperties
- the names of the additional properties which should be copied from the existing piece
or null
if all properties should be copied.public HomeLight(java.lang.String id, Light light)
id
- the ID of the lightlight
- the light from which data are copiedpublic HomeLight(java.lang.String id, Light light, java.lang.String[] copiedProperties)
id
- the ID of the lightlight
- the light from which data are copiedcopiedProperties
- the names of the additional properties which should be copied from the existing piece
or null
if all properties should be copied.public LightSource[] getLightSources()
getLightSources
in interface Light
public void setLightSources(LightSource[] lightSources)
lightSources
- sources of the lightpublic java.lang.String[] getLightSourceMaterialNames()
getLightSourceMaterialNames
in interface Light
public void setLightSourceMaterialNames(java.lang.String[] lightSourceMaterialNames)
lightSourceMaterialNames
- material names of the light sourcespublic float getPower()
public void setPower(float power)
power
- power of the lightpublic HomeLight clone()
clone
in interface Selectable
clone
in class HomePieceOfFurniture
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License