public class HomeEnvironment extends HomeObject implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
HomeEnvironment.DrawingMode
The various modes used to draw home in 3D.
|
static class |
HomeEnvironment.Property
The environment properties that may change.
|
Constructor and Description |
---|
HomeEnvironment()
Creates default environment.
|
HomeEnvironment(int groundColor,
HomeTexture groundTexture,
int skyColor,
HomeTexture skyTexture,
int lightColor,
float wallsAlpha)
Creates home environment from parameters.
|
HomeEnvironment(int groundColor,
HomeTexture groundTexture,
int skyColor,
int lightColor,
float wallsAlpha)
Creates home environment from parameters.
|
HomeEnvironment(java.lang.String id)
Creates default environment.
|
HomeEnvironment(java.lang.String id,
int groundColor,
HomeTexture groundTexture,
int skyColor,
HomeTexture skyTexture,
int lightColor,
float wallsAlpha)
Creates home environment from parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(HomeEnvironment.Property property,
java.beans.PropertyChangeListener listener)
Adds the property change
listener in parameter to this environment. |
HomeEnvironment |
clone()
Returns a clone of this environment.
|
int |
getCeillingLightColor()
Returns the color of ceiling lights.
|
HomeEnvironment.DrawingMode |
getDrawingMode()
Returns the drawing mode of this environment.
|
int |
getGroundColor()
Returns the ground color of this environment.
|
HomeTexture |
getGroundTexture()
Returns the ground texture of this environment.
|
int |
getLightColor()
Returns the light color of this environment.
|
AspectRatio |
getPhotoAspectRatio()
Returns the preferred photo aspect ratio.
|
int |
getPhotoHeight()
Returns the preferred photo height.
|
int |
getPhotoQuality()
Returns the preferred photo quality.
|
int |
getPhotoWidth()
Returns the preferred photo width.
|
int |
getSkyColor()
Returns the sky color of this environment.
|
HomeTexture |
getSkyTexture()
Returns the sky texture of this environment.
|
float |
getSubpartSizeUnderLight()
Returns the size of subparts under home lights in this environment.
|
AspectRatio |
getVideoAspectRatio()
Returns the preferred video aspect ratio.
|
java.util.List<Camera> |
getVideoCameraPath()
Returns the preferred video camera path.
|
int |
getVideoFrameRate()
Returns the preferred video frame rate.
|
int |
getVideoHeight()
Returns the preferred video height.
|
int |
getVideoQuality()
Returns preferred video quality.
|
float |
getVideoSpeed()
Returns the preferred speed of movements in videos in m/s.
|
int |
getVideoWidth()
Returns the preferred video width.
|
float |
getWallsAlpha()
Returns the walls transparency alpha factor of this environment.
|
boolean |
isAllLevelsVisible()
Returns whether all levels should be visible or not.
|
boolean |
isBackgroundImageVisibleOnGround3D()
Returns
true if the background image should be displayed on the ground in 3D. |
boolean |
isObserverCameraElevationAdjusted()
Returns
true if the observer elevation should be adjusted according
to the elevation of the selected level. |
void |
removePropertyChangeListener(HomeEnvironment.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this environment. |
void |
setAllLevelsVisible(boolean allLevelsVisible)
Sets whether all levels should be visible or not and fires a
PropertyChangeEvent . |
void |
setBackgroundImageVisibleOnGround3D(boolean backgroundImageVisibleOnGround3D)
Sets whether the background image should be displayed on the ground in 3D and
fires a
PropertyChangeEvent . |
void |
setCeillingLightColor(int ceilingLightColor)
Sets the color of ceiling lights and fires a
PropertyChangeEvent . |
void |
setDrawingMode(HomeEnvironment.DrawingMode drawingMode)
Sets the drawing mode of this environment and fires a
PropertyChangeEvent . |
void |
setGroundColor(int groundColor)
Sets the ground color of this environment and fires a
PropertyChangeEvent . |
void |
setGroundTexture(HomeTexture groundTexture)
Sets the ground texture of this environment and fires a
PropertyChangeEvent . |
void |
setLightColor(int lightColor)
Sets the color that lights this environment and fires a
PropertyChangeEvent . |
void |
setObserverCameraElevationAdjusted(boolean observerCameraElevationAdjusted)
Sets whether the observer elevation should be adjusted according
to the elevation of the selected level and fires a
PropertyChangeEvent . |
void |
setPhotoAspectRatio(AspectRatio photoAspectRatio)
Sets the preferred photo aspect ratio, and notifies
listeners of this change.
|
void |
setPhotoHeight(int photoHeight)
Sets the preferred photo height, and notifies
listeners of this change.
|
void |
setPhotoQuality(int photoQuality)
Sets preferred photo quality, and notifies
listeners of this change.
|
void |
setPhotoWidth(int photoWidth)
Sets the preferred photo width, and notifies
listeners of this change.
|
void |
setSkyColor(int skyColor)
Sets the sky color of this environment and fires a
PropertyChangeEvent . |
void |
setSkyTexture(HomeTexture skyTexture)
Sets the sky texture of this environment and fires a
PropertyChangeEvent . |
void |
setSubpartSizeUnderLight(float subpartSizeUnderLight)
Sets the size of subparts under home lights of this environment and fires a
PropertyChangeEvent . |
void |
setVideoAspectRatio(AspectRatio videoAspectRatio)
Sets the preferred video aspect ratio, and notifies
listeners of this change.
|
void |
setVideoCameraPath(java.util.List<Camera> cameraPath)
Sets the preferred video camera path, and notifies
listeners of this change.
|
void |
setVideoFrameRate(int videoFrameRate)
Sets the preferred video frame rate, and notifies
listeners of this change.
|
void |
setVideoQuality(int videoQuality)
Sets the preferred video quality, and notifies
listeners of this change.
|
void |
setVideoSpeed(float videoSpeed)
Sets the preferred speed of movements in videos in m/s.
|
void |
setVideoWidth(int videoWidth)
Sets the preferred video width, and notifies
listeners of this change.
|
void |
setWallsAlpha(float wallsAlpha)
Sets the walls transparency alpha of this environment and fires a
PropertyChangeEvent . |
addPropertyChangeListener, addPropertyChangeListener, createId, duplicate, firePropertyChange, getContentProperty, getId, getProperty, getPropertyNames, isContentProperty, removePropertyChangeListener, removePropertyChangeListener, setProperty, setProperty
public HomeEnvironment()
public HomeEnvironment(java.lang.String id)
public HomeEnvironment(int groundColor, HomeTexture groundTexture, int skyColor, int lightColor, float wallsAlpha)
public HomeEnvironment(int groundColor, HomeTexture groundTexture, int skyColor, HomeTexture skyTexture, int lightColor, float wallsAlpha)
public HomeEnvironment(java.lang.String id, int groundColor, HomeTexture groundTexture, int skyColor, HomeTexture skyTexture, int lightColor, float wallsAlpha)
public void addPropertyChangeListener(HomeEnvironment.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this environment.
Properties change will be notified with an event of PropertyChangeEvent
class which property name
will be equal to the value returned by Enum.name()
call.public void removePropertyChangeListener(HomeEnvironment.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this environment.public boolean isObserverCameraElevationAdjusted()
true
if the observer elevation should be adjusted according
to the elevation of the selected level.public void setObserverCameraElevationAdjusted(boolean observerCameraElevationAdjusted)
PropertyChangeEvent
.public int getGroundColor()
public void setGroundColor(int groundColor)
PropertyChangeEvent
.public HomeTexture getGroundTexture()
public void setGroundTexture(HomeTexture groundTexture)
PropertyChangeEvent
.public boolean isBackgroundImageVisibleOnGround3D()
true
if the background image should be displayed on the ground in 3D.public void setBackgroundImageVisibleOnGround3D(boolean backgroundImageVisibleOnGround3D)
PropertyChangeEvent
.public int getSkyColor()
public void setSkyColor(int skyColor)
PropertyChangeEvent
.public HomeTexture getSkyTexture()
public void setSkyTexture(HomeTexture skyTexture)
PropertyChangeEvent
.public int getLightColor()
public void setLightColor(int lightColor)
PropertyChangeEvent
.public int getCeillingLightColor()
public void setCeillingLightColor(int ceilingLightColor)
PropertyChangeEvent
.public float getWallsAlpha()
public void setWallsAlpha(float wallsAlpha)
PropertyChangeEvent
.wallsAlpha
- a value between 0 and 1, 0 meaning opaque and 1 invisible.public HomeEnvironment.DrawingMode getDrawingMode()
public void setDrawingMode(HomeEnvironment.DrawingMode drawingMode)
PropertyChangeEvent
.public float getSubpartSizeUnderLight()
public void setSubpartSizeUnderLight(float subpartSizeUnderLight)
PropertyChangeEvent
.public boolean isAllLevelsVisible()
public void setAllLevelsVisible(boolean allLevelsVisible)
PropertyChangeEvent
.public int getPhotoWidth()
public void setPhotoWidth(int photoWidth)
public int getPhotoHeight()
public void setPhotoHeight(int photoHeight)
public AspectRatio getPhotoAspectRatio()
public void setPhotoAspectRatio(AspectRatio photoAspectRatio)
public int getPhotoQuality()
public void setPhotoQuality(int photoQuality)
public int getVideoWidth()
public void setVideoWidth(int videoWidth)
public int getVideoHeight()
public AspectRatio getVideoAspectRatio()
public void setVideoAspectRatio(AspectRatio videoAspectRatio)
public int getVideoQuality()
public void setVideoQuality(int videoQuality)
public float getVideoSpeed()
public void setVideoSpeed(float videoSpeed)
public int getVideoFrameRate()
public void setVideoFrameRate(int videoFrameRate)
public java.util.List<Camera> getVideoCameraPath()
public void setVideoCameraPath(java.util.List<Camera> cameraPath)
public HomeEnvironment clone()
clone
in class HomeObject
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License