public class Home3DAttributesController extends Object implements Controller
| Modifier and Type | Class and Description |
|---|---|
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 and Description |
|---|
Home3DAttributesController(Home home,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager,
UndoableEditSupport undoSupport)
Creates the controller of 3D view with undo support.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public Home3DAttributesController(Home home, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager, UndoableEditSupport undoSupport)
public TextureChoiceController getGroundTextureController()
public TextureChoiceController getSkyTextureController()
public DialogView getView()
getView in interface Controllerpublic void displayView(View parentView)
public void addPropertyChangeListener(Home3DAttributesController.Property property, PropertyChangeListener listener)
listener in parameter to this controller.public void removePropertyChangeListener(Home3DAttributesController.Property property, PropertyChangeListener listener)
listener in parameter from this controller.protected void updateProperties()
public void setGroundColor(int groundColor)
public int getGroundColor()
public void setGroundPaint(Home3DAttributesController.EnvironmentPaint groundPaint)
public Home3DAttributesController.EnvironmentPaint getGroundPaint()
public void setSkyColor(int skyColor)
public int getSkyColor()
public void setSkyPaint(Home3DAttributesController.EnvironmentPaint skyPaint)
public Home3DAttributesController.EnvironmentPaint getSkyPaint()
public void setLightColor(int lightColor)
public int getLightColor()
public void setWallsAlpha(float wallsAlpha)
public float getWallsAlpha()
public void modify3DAttributes()

© Copyrights 2006-2017 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License