Sweet Home 3D 3.4

com.eteks.sweethome3d.viewcontroller
Class PhotoController

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

public class PhotoController
extends java.lang.Object
implements Controller

The controller of the photo creation view.

Author:
Emmanuel Puybaret

Nested Class Summary
static class PhotoController.Property
          The properties that may be edited by the view associated to this controller.
 
Constructor Summary
PhotoController(Home home, UserPreferences preferences, View view3D, ViewFactory viewFactory, ContentManager contentManager)
           
 
Method Summary
 void addPropertyChangeListener(PhotoController.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.
 View get3DView()
          Returns the 3D view used to compute aspect ratio bound to it.
 float get3DViewAspectRatio()
          Returns the aspect ratio of the 3D view.
 AspectRatio getAspectRatio()
          Returns the aspect ratio of the photo.
 int getCeilingLightColor()
          Returns the edited ceiling light color.
 ContentManager getContentManager()
          Returns the content manager of this controller.
 int getHeight()
          Returns the height of the photo.
 Camera.Lens getLens()
          Returns the edited camera lens.
 int getQuality()
          Returns the rendering quality of the photo.
 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 photo.
 void removePropertyChangeListener(PhotoController.Property property, java.beans.PropertyChangeListener listener)
          Removes the property change listener in parameter from this controller.
 void set3DViewAspectRatio(float view3DAspectRatio)
          Sets the aspect ratio of the 3D view.
 void setAspectRatio(AspectRatio aspectRatio)
          Sets the aspect ratio of the photo.
 void setCeilingLightColor(int ceilingLightColor)
          Sets the edited ceiling light color.
 void setHeight(int height)
          Sets the height of the photo.
 void setLens(Camera.Lens lens)
          Sets the edited camera lens.
 void setQuality(int quality)
          Sets the rendering quality of the photo.
 void setTime(long time)
          Sets the edited time in UTC time zone.
 void setVisualProperty(java.lang.String propertyName, java.lang.Object propertyValue)
          Controls the change of value of a visual property in home.
 void setWidth(int width)
          Sets the width of the photo.
protected  void updateProperties()
          Updates edited properties from the photo creation preferences.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhotoController

public PhotoController(Home home,
                       UserPreferences preferences,
                       View view3D,
                       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(PhotoController.Property property,
                                      java.beans.PropertyChangeListener listener)
Adds the property change listener in parameter to this controller.


removePropertyChangeListener

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


updateProperties

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


setAspectRatio

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


getAspectRatio

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


setWidth

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


getWidth

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


setHeight

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


getHeight

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


setQuality

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


getQuality

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


getQualityLevelCount

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


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.


setLens

public void setLens(Camera.Lens lens)
Sets the edited camera lens.


getLens

public Camera.Lens getLens()
Returns the edited camera lens.


setCeilingLightColor

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


getCeilingLightColor

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


set3DViewAspectRatio

public void set3DViewAspectRatio(float view3DAspectRatio)
Sets the aspect ratio of the 3D view.


get3DViewAspectRatio

public float get3DViewAspectRatio()
Returns the aspect ratio of the 3D view.


get3DView

public View get3DView()
Returns the 3D view used to compute aspect ratio bound to it.


setVisualProperty

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


Sweet Home 3D 3.4

? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License