Sweet Home 3D 4.0

com.eteks.sweethome3d.viewcontroller
Class VideoController

java.lang.Object
  extended by com.eteks.sweethome3d.viewcontroller.VideoController
All Implemented Interfaces:
Controller

public class VideoController
extends Object
implements Controller

The controller of the video creation view.

Author:
Emmanuel Puybaret

Nested Class Summary
static class VideoController.Property
          The properties that may be edited by the view associated to this controller.
 
Constructor Summary
VideoController(Home home, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
           
 
Method Summary
 void addPropertyChangeListener(VideoController.Property property, 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.
 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.
 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, 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(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 setQuality(int quality)
          Sets the rendering quality of the video.
 void setTime(long time)
          Sets the edited time in UTC time zone.
 void setVisualProperty(String propertyName, Object propertyValue)
          Controls the change of value of a visual property in home.
 void setWidth(int width)
          Sets the width of the video.
protected  void updateProperties()
          Updates edited properties from the video creation preferences.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoController

public VideoController(Home home,
                       UserPreferences preferences,
                       ViewFactory viewFactory,
                       ContentManager contentManager)
Method Detail

getView

public DialogView getView()
Returns the view associated with this controller.

Specified by:
getView in interface Controller

displayView

public void displayView(View parentView)
Displays the view controlled by this controller.


getContentManager

public ContentManager getContentManager()
Returns the content manager of this controller.


addPropertyChangeListener

public void addPropertyChangeListener(VideoController.Property property,
                                      PropertyChangeListener listener)
Adds the property change listener in parameter to this controller.


removePropertyChangeListener

public void removePropertyChangeListener(VideoController.Property property,
                                         PropertyChangeListener listener)
Removes the property change listener in parameter from this controller.


updateProperties

protected void updateProperties()
Updates edited properties from the video creation preferences.


setAspectRatio

public void setAspectRatio(AspectRatio aspectRatio)
Sets the aspect ratio of the video.


getAspectRatio

public AspectRatio getAspectRatio()
Returns the aspect ratio of the video.


setFrameRate

public void setFrameRate(int frameRate)
Sets the frame rate of the video.


getFrameRate

public int getFrameRate()
Returns the frame rate of the video.


setWidth

public void setWidth(int width)
Sets the width of the video.


getWidth

public int getWidth()
Returns the width of the video.


setHeight

public void setHeight(int height)
Sets the height of the video.


getHeight

public int getHeight()
Returns the height of the video.


setQuality

public void setQuality(int quality)
Sets the rendering quality of the video.


getQuality

public int getQuality()
Returns the rendering quality of the video.


getQualityLevelCount

public int getQualityLevelCount()
Returns the maximum value for quality.


getCameraPath

public List<Camera> getCameraPath()
Returns the camera path of the video.


setCameraPath

public void setCameraPath(List<Camera> cameraPath)
Sets the camera locations of the video.


setTime

public void setTime(long time)
Sets the edited time in UTC time zone.


getTime

public long getTime()
Returns the edited time in UTC time zone.


setCeilingLightColor

public void setCeilingLightColor(int ceilingLightColor)
Sets the edited ceiling light color.


getCeilingLightColor

public int getCeilingLightColor()
Returns the edited ceiling light color.


setVisualProperty

public void setVisualProperty(String propertyName,
                              Object propertyValue)
Controls the change of value of a visual property in home.


Sweet Home 3D 4.0

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