Sweet Home 3D 4.1

com.eteks.sweethome3d.viewcontroller
Class AbstractPhotoController

java.lang.Object
  extended by com.eteks.sweethome3d.viewcontroller.AbstractPhotoController
All Implemented Interfaces:
Controller
Direct Known Subclasses:
PhotoController, PhotosController

public abstract class AbstractPhotoController
extends Object
implements Controller

The base class for controllers of photo creation views.

Since:
4.0
Author:
Emmanuel Puybaret

Nested Class Summary
static class AbstractPhotoController.Property
          The properties that may be edited by the view associated to this controller.
 
Constructor Summary
AbstractPhotoController(Home home, UserPreferences preferences, View view3D, ContentManager contentManager)
           
 
Method Summary
 void addPropertyChangeListener(AbstractPhotoController.Property property, PropertyChangeListener listener)
          Adds the property change listener in parameter to 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.
 int getQuality()
          Returns the rendering quality of the photo.
 int getQualityLevelCount()
          Returns the maximum value for quality.
 int getWidth()
          Returns the width of the photo.
 void removePropertyChangeListener(AbstractPhotoController.Property property, 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 setQuality(int quality)
          Sets the rendering quality of the photo.
 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 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
 
Methods inherited from interface com.eteks.sweethome3d.viewcontroller.Controller
getView
 

Constructor Detail

AbstractPhotoController

public AbstractPhotoController(Home home,
                               UserPreferences preferences,
                               View view3D,
                               ContentManager contentManager)
Method Detail

getContentManager

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


addPropertyChangeListener

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


removePropertyChangeListener

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


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.


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(String propertyName,
                              Object propertyValue)
Controls the change of value of a visual property in home.


Sweet Home 3D 4.1

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