public class VideoController extends java.lang.Object implements Controller
Modifier and Type | Class and Description |
---|---|
static class |
VideoController.Property
The properties that may be edited by the view associated to this controller.
|
Constructor and Description |
---|
VideoController(Home home,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(VideoController.Property property,
java.beans.PropertyChangeListener listener)
Adds the property change
listener in parameter to this controller. |
void |
displayView(View parentView)
Displays the view controlled by this controller.
|
AspectRatio |
getAspectRatio()
Returns the aspect ratio of the video.
|
java.util.List<Camera> |
getCameraPath()
Returns the camera path of the video.
|
int |
getCeilingLightColor()
Returns the edited ceiling light color.
|
ContentManager |
getContentManager()
Returns the content manager of this controller.
|
int |
getFrameRate()
Returns the frame rate of the video.
|
int |
getHeight()
Returns the height of the video.
|
int |
getQuality()
Returns the rendering quality of the video.
|
int |
getQualityLevelCount()
Returns the maximum value for quality.
|
java.lang.String |
getRenderer()
Returns the edited camera rendering engine.
|
float |
getSpeed()
Returns the preferred speed of movements in the video in m/s.
|
long |
getTime()
Returns the edited time in UTC time zone.
|
DialogView |
getView()
Returns the view associated with this controller.
|
int |
getWidth()
Returns the width of the video.
|
void |
removePropertyChangeListener(VideoController.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this controller. |
void |
setAspectRatio(AspectRatio aspectRatio)
Sets the aspect ratio of the video.
|
void |
setCameraPath(java.util.List<Camera> cameraPath)
Sets the camera locations of the video.
|
void |
setCeilingLightColor(int ceilingLightColor)
Sets the edited ceiling light color.
|
void |
setFrameRate(int frameRate)
Sets the frame rate of the video.
|
void |
setHeight(int height)
Sets the height of the video.
|
void |
setHomeProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Controls the change of value of a property in home.
|
void |
setQuality(int quality)
Sets the rendering quality of the video.
|
void |
setRenderer(java.lang.String renderer)
Sets the edited camera rendering engine.
|
void |
setSpeed(float speed)
Sets the preferred speed of movements in the video in m/s.
|
void |
setTime(long time)
Sets the edited time in UTC time zone.
|
void |
setVisualProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
Deprecated.
setVisualProperty should be replaced by a call to
setHomeProperty to ensure the property can be easily saved and read. |
void |
setWidth(int width)
Sets the width of the video.
|
protected void |
updateProperties()
Updates edited properties from the video creation preferences.
|
public VideoController(Home home, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
public DialogView getView()
getView
in interface Controller
public void displayView(View parentView)
public ContentManager getContentManager()
public void addPropertyChangeListener(VideoController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(VideoController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this controller.protected void updateProperties()
public void setAspectRatio(AspectRatio aspectRatio)
public AspectRatio getAspectRatio()
public void setFrameRate(int frameRate)
public int getFrameRate()
public void setWidth(int width)
public int getWidth()
public void setHeight(int height)
public int getHeight()
public void setQuality(int quality)
public int getQuality()
public void setSpeed(float speed)
public float getSpeed()
public int getQualityLevelCount()
public java.util.List<Camera> getCameraPath()
public void setCameraPath(java.util.List<Camera> cameraPath)
public void setTime(long time)
public long getTime()
public void setRenderer(java.lang.String renderer)
public java.lang.String getRenderer()
public void setCeilingLightColor(int ceilingLightColor)
public int getCeilingLightColor()
public void setVisualProperty(java.lang.String propertyName, java.lang.Object propertyValue)
setVisualProperty
should be replaced by a call to
setHomeProperty
to ensure the property can be easily saved and read.public void setHomeProperty(java.lang.String propertyName, java.lang.String propertyValue)
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License