Sweet Home 3D 4.1

com.eteks.sweethome3d.viewcontroller
Class PhotosController

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

public class PhotosController
extends AbstractPhotoController

The controller of multiple photos creation view.

Since:
4.0
Author:
Emmanuel Puybaret

Nested Class Summary
static class PhotosController.Property
          The properties that may be edited by the view associated to this controller.
 
Constructor Summary
PhotosController(Home home, UserPreferences preferences, View view3D, ViewFactory viewFactory, ContentManager contentManager)
           
 
Method Summary
 void addPropertyChangeListener(PhotosController.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.
 List<Camera> getCameras()
          Returns the cameras available to create photos.
 Float getFileCompressionQuality()
          Returns the compression quality used to save image files.
 String getFileFormat()
          Returns the format used to save image files.
 List<Camera> getSelectedCameras()
          Returns the selected cameras to create photos.
 DialogView getView()
          Returns the view associated with this controller.
 void removePropertyChangeListener(PhotosController.Property property, PropertyChangeListener listener)
          Removes the property change listener in parameter from this controller.
 void setFileCompressionQuality(Float fileCompressionQuality)
          Sets the compression quality used to save image files.
 void setFileFormat(String fileFormat)
          Sets the format used to save image files.
 void setSelectedCameras(List<Camera> selectedCameras)
          Sets the selected cameras to create photos.
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

PhotosController

public PhotosController(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(PhotosController.Property property,
                                      PropertyChangeListener listener)
Adds the property change listener in parameter to this controller.


removePropertyChangeListener

public void removePropertyChangeListener(PhotosController.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

getCameras

public List<Camera> getCameras()
Returns the cameras available to create photos.


getSelectedCameras

public List<Camera> getSelectedCameras()
Returns the selected cameras to create photos.


setSelectedCameras

public void setSelectedCameras(List<Camera> selectedCameras)
Sets the selected cameras to create photos.


getFileFormat

public String getFileFormat()
Returns the format used to save image files.


setFileFormat

public void setFileFormat(String fileFormat)
Sets the format used to save image files.


getFileCompressionQuality

public Float getFileCompressionQuality()
Returns the compression quality used to save image files.


setFileCompressionQuality

public void setFileCompressionQuality(Float fileCompressionQuality)
Sets the compression quality used to save image files.


Sweet Home 3D 4.1

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