Sweet Home 3D 4.0

com.eteks.sweethome3d.viewcontroller
Class PhotoController

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

public class PhotoController
extends AbstractPhotoController

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, PropertyChangeListener listener)
          Adds the property change listener in parameter to this controller.
 void displayView(View parentView)
          Displays the view controlled by this controller.
 Camera.Lens getLens()
          Returns the edited camera lens.
 long getTime()
          Returns the edited time in UTC time zone.
 DialogView getView()
          Returns the view associated with this controller.
 void removePropertyChangeListener(PhotoController.Property property, PropertyChangeListener listener)
          Removes the property change listener in parameter from this controller.
 void setLens(Camera.Lens lens)
          Sets the edited camera lens.
 void setTime(long time)
          Sets the edited time in UTC time zone.
protected  void updateProperties()
          Updates edited properties from the photo creation preferences.
 
Methods inherited from class com.eteks.sweethome3d.viewcontroller.AbstractPhotoController
addPropertyChangeListener, get3DView, get3DViewAspectRatio, getAspectRatio, getCeilingLightColor, getContentManager, getHeight, getQuality, getQualityLevelCount, getWidth, removePropertyChangeListener, set3DViewAspectRatio, setAspectRatio, setCeilingLightColor, setHeight, setQuality, setVisualProperty, setWidth
 
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.


displayView

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


addPropertyChangeListener

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


removePropertyChangeListener

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


updateProperties

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

Overrides:
updateProperties in class AbstractPhotoController

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.


Sweet Home 3D 4.0

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