public class BaseboardChoiceController extends java.lang.Object implements Controller
Modifier and Type | Class and Description |
---|---|
static class |
BaseboardChoiceController.BaseboardPaint
The possible values for paint type.
|
static class |
BaseboardChoiceController.Property
The properties that may be edited by the view associated to this controller.
|
Constructor and Description |
---|
BaseboardChoiceController(UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager)
Creates the controller of room view with undo support.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(BaseboardChoiceController.Property property,
java.beans.PropertyChangeListener listener)
Adds the property change
listener in parameter to this controller. |
java.lang.Integer |
getColor()
Returns the edited color of the baseboard.
|
java.lang.Float |
getHeight()
Returns the edited height of the baseboard.
|
java.lang.Float |
getMaxHeight()
Returns the maximum height allowed for the edited baseboard.
|
BaseboardChoiceController.BaseboardPaint |
getPaint()
Returns whether the baseboard side is colored, textured or unknown painted.
|
TextureChoiceController |
getTextureController()
Returns the texture controller of the baseboard.
|
java.lang.Float |
getThickness()
Returns the edited thickness of the baseboard.
|
View |
getView()
Returns the view associated with this controller.
|
java.lang.Boolean |
getVisible()
Returns
true if the baseboard should be visible. |
void |
removePropertyChangeListener(BaseboardChoiceController.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this controller. |
void |
setBaseboard(Baseboard baseboard)
Set controller properties from the given
baseboard . |
void |
setColor(java.lang.Integer baseboardColor)
Sets the edited color of the baseboard.
|
void |
setHeight(java.lang.Float baseboardHeight)
Sets the edited height of the baseboard.
|
void |
setMaxHeight(java.lang.Float maxHeight)
Sets the maximum height allowed for the edited baseboard.
|
void |
setPaint(BaseboardChoiceController.BaseboardPaint baseboardPaint)
Sets whether the baseboard is as its wall, colored, textured or unknown painted.
|
void |
setThickness(java.lang.Float baseboardThickness)
Sets the edited thickness of the baseboard.
|
void |
setVisible(java.lang.Boolean baseboardVisible)
Sets whether the baseboard should be visible.
|
public BaseboardChoiceController(UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
public TextureChoiceController getTextureController()
public View getView()
getView
in interface Controller
public void addPropertyChangeListener(BaseboardChoiceController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(BaseboardChoiceController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this controller.public java.lang.Boolean getVisible()
true
if the baseboard should be visible.public void setVisible(java.lang.Boolean baseboardVisible)
public void setThickness(java.lang.Float baseboardThickness)
public java.lang.Float getThickness()
public void setHeight(java.lang.Float baseboardHeight)
public java.lang.Float getHeight()
public void setMaxHeight(java.lang.Float maxHeight)
public java.lang.Float getMaxHeight()
public void setColor(java.lang.Integer baseboardColor)
public java.lang.Integer getColor()
public void setPaint(BaseboardChoiceController.BaseboardPaint baseboardPaint)
public BaseboardChoiceController.BaseboardPaint getPaint()
public void setBaseboard(Baseboard baseboard)
baseboard
.
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License