public abstract class AbstractPhotoController extends java.lang.Object implements Controller
Modifier and Type | Class and Description |
---|---|
static class |
AbstractPhotoController.Property
The properties that may be edited by the view associated to this controller.
|
Constructor and Description |
---|
AbstractPhotoController(Home home,
UserPreferences preferences,
View view3D,
ContentManager contentManager) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(AbstractPhotoController.Property property,
java.beans.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,
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 |
setHomeProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Controls the change of value of a property in home.
|
void |
setQuality(int quality)
Sets the rendering quality of the photo.
|
void |
setVisualProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
Deprecated.
setVisualProperty should be replaced by a call to
setHomeProperty(String, String) to ensure the property can be easily saved and read. |
void |
setWidth(int width)
Sets the width of the photo.
|
protected void |
updateProperties()
Updates edited properties from the photo creation preferences.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getView
public AbstractPhotoController(Home home, UserPreferences preferences, View view3D, ContentManager contentManager)
public ContentManager getContentManager()
public void addPropertyChangeListener(AbstractPhotoController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(AbstractPhotoController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this controller.protected void updateProperties()
public void setAspectRatio(AspectRatio aspectRatio)
public AspectRatio getAspectRatio()
public void setWidth(int width)
public int getWidth()
public void setHeight(int height)
public int getHeight()
public void setQuality(int quality)
public int getQuality()
public int getQualityLevelCount()
public void setCeilingLightColor(int ceilingLightColor)
public int getCeilingLightColor()
public void set3DViewAspectRatio(float view3DAspectRatio)
public float get3DViewAspectRatio()
public View get3DView()
public void setVisualProperty(java.lang.String propertyName, java.lang.Object propertyValue)
setVisualProperty
should be replaced by a call to
setHomeProperty(String, String)
to ensure the property can be easily saved and read.public void setHomeProperty(java.lang.String propertyName, java.lang.String propertyValue)
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License