public class Home3DAttributesController extends java.lang.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,
javax.swing.undo.UndoableEditSupport undoSupport)
Creates the controller of 3D view with undo support.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(Home3DAttributesController.Property property,
java.beans.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.
|
boolean |
isBackgroundImageVisibleOnGround3D()
Returns
true if the background image should be displayed on the ground in 3D. |
void |
modify3DAttributes()
Controls the modification of the 3D attributes of the edited home.
|
void |
removePropertyChangeListener(Home3DAttributesController.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this controller. |
void |
setBackgroundImageVisibleOnGround3D(boolean backgroundImageVisibleOnGround3D)
Sets whether the background image should be displayed on the ground in 3D.
|
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, javax.swing.undo.UndoableEditSupport undoSupport)
public TextureChoiceController getGroundTextureController()
public TextureChoiceController getSkyTextureController()
public DialogView getView()
getView
in interface Controller
public void displayView(View parentView)
public void addPropertyChangeListener(Home3DAttributesController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(Home3DAttributesController.Property property, java.beans.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 boolean isBackgroundImageVisibleOnGround3D()
true
if the background image should be displayed on the ground in 3D.public void setBackgroundImageVisibleOnGround3D(boolean backgroundImageVisibleOnGround3D)
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()
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License