Sweet Home 3D 4.0

com.eteks.sweethome3d.viewcontroller
Class Home3DAttributesController

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

public class Home3DAttributesController
extends Object
implements Controller

A MVC controller for home 3D attributes view.

Author:
Emmanuel Puybaret

Nested Class Summary
static class Home3DAttributesController.EnvironmentPaint
          The possible values for ground paint type.
static class Home3DAttributesController.Property
          The properties that may be edited by the view associated to this controller.
 
Constructor Summary
Home3DAttributesController(Home home, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager, UndoableEditSupport undoSupport)
          Creates the controller of 3D view with undo support.
 
Method Summary
 void addPropertyChangeListener(Home3DAttributesController.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.
 int getGroundColor()
          Returns the edited ground color.
 Home3DAttributesController.EnvironmentPaint getGroundPaint()
          Returns whether the ground is colored or textured.
 TextureChoiceController getGroundTextureController()
          Returns the texture controller of the ground.
 int getLightColor()
          Returns the edited light color.
 int getSkyColor()
          Returns the edited sky color.
 Home3DAttributesController.EnvironmentPaint getSkyPaint()
          Returns whether the sky is colored or textured.
 TextureChoiceController getSkyTextureController()
          Returns the texture controller of the sky.
 DialogView getView()
          Returns the view associated with this controller.
 float getWallsAlpha()
          Returns the edited walls transparency alpha.
 void modify3DAttributes()
          Controls the modification of the 3D attributes of the edited home.
 void removePropertyChangeListener(Home3DAttributesController.Property property, PropertyChangeListener listener)
          Removes the property change listener in parameter from this controller.
 void setGroundColor(int groundColor)
          Sets the edited ground color.
 void setGroundPaint(Home3DAttributesController.EnvironmentPaint groundPaint)
          Sets whether the ground is colored or textured.
 void setLightColor(int lightColor)
          Sets the edited light color.
 void setSkyColor(int skyColor)
          Sets the edited sky color.
 void setSkyPaint(Home3DAttributesController.EnvironmentPaint skyPaint)
          Sets whether the sky is colored or textured.
 void setWallsAlpha(float wallsAlpha)
          Sets the edited walls transparency alpha.
protected  void updateProperties()
          Updates edited properties from the 3D attributes of the home edited by this controller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Home3DAttributesController

public Home3DAttributesController(Home home,
                                  UserPreferences preferences,
                                  ViewFactory viewFactory,
                                  ContentManager contentManager,
                                  UndoableEditSupport undoSupport)
Creates the controller of 3D view with undo support.

Method Detail

getGroundTextureController

public TextureChoiceController getGroundTextureController()
Returns the texture controller of the ground.


getSkyTextureController

public TextureChoiceController getSkyTextureController()
Returns the texture controller of the sky.


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.


addPropertyChangeListener

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


removePropertyChangeListener

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


updateProperties

protected void updateProperties()
Updates edited properties from the 3D attributes of the home edited by this controller.


setGroundColor

public void setGroundColor(int groundColor)
Sets the edited ground color.


getGroundColor

public int getGroundColor()
Returns the edited ground color.


setGroundPaint

public void setGroundPaint(Home3DAttributesController.EnvironmentPaint groundPaint)
Sets whether the ground is colored or textured.


getGroundPaint

public Home3DAttributesController.EnvironmentPaint getGroundPaint()
Returns whether the ground is colored or textured.


setSkyColor

public void setSkyColor(int skyColor)
Sets the edited sky color.


getSkyColor

public int getSkyColor()
Returns the edited sky color.


setSkyPaint

public void setSkyPaint(Home3DAttributesController.EnvironmentPaint skyPaint)
Sets whether the sky is colored or textured.


getSkyPaint

public Home3DAttributesController.EnvironmentPaint getSkyPaint()
Returns whether the sky is colored or textured.


setLightColor

public void setLightColor(int lightColor)
Sets the edited light color.


getLightColor

public int getLightColor()
Returns the edited light color.


setWallsAlpha

public void setWallsAlpha(float wallsAlpha)
Sets the edited walls transparency alpha.


getWallsAlpha

public float getWallsAlpha()
Returns the edited walls transparency alpha.


modify3DAttributes

public void modify3DAttributes()
Controls the modification of the 3D attributes of the edited home.


Sweet Home 3D 4.0

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