public class WallController extends java.lang.Object implements Controller
Modifier and Type | Class and Description |
---|---|
static class |
WallController.Property
The properties that may be edited by the view associated to this controller.
|
static class |
WallController.WallPaint
The possible values for wall paint type.
|
static class |
WallController.WallShape
The possible values for wall shape.
|
Constructor and Description |
---|
WallController(Home home,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager,
javax.swing.undo.UndoableEditSupport undoSupport)
Creates the controller of wall view with undo support.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(WallController.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.
|
java.lang.Float |
getArcExtentInDegrees()
Returns the edited arc extent.
|
java.lang.Float |
getArcLength()
Returns the length of wall after applying the edited arc extent.
|
java.lang.Float |
getDistanceToEndPoint()
Returns the edited distance to end point.
|
BaseboardChoiceController |
getLeftSideBaseboardController()
Returns the controller of the wall left side baseboard.
|
java.lang.Integer |
getLeftSideColor()
Returns the edited color of the left side.
|
WallController.WallPaint |
getLeftSidePaint()
Returns whether the left side is colored, textured or unknown painted.
|
java.lang.Float |
getLeftSideShininess()
Returns the edited left side shininess.
|
TextureChoiceController |
getLeftSideTextureController()
Returns the texture controller of the wall left side.
|
java.lang.Float |
getLength()
Returns the edited length.
|
TextureImage |
getPattern()
Returns the pattern of edited wall in plan.
|
java.lang.Float |
getRectangularWallHeight()
Returns the edited height of a rectangular wall.
|
BaseboardChoiceController |
getRightSideBaseboardController()
Returns the controller of the wall right side baseboard.
|
java.lang.Integer |
getRightSideColor()
Returns the edited color of the right side.
|
WallController.WallPaint |
getRightSidePaint()
Returns whether the right side is colored, textured or unknown painted.
|
java.lang.Float |
getRightSideShininess()
Returns the edited right side shininess.
|
TextureChoiceController |
getRightSideTextureController()
Returns the texture controller of the wall right side.
|
WallController.WallShape |
getShape()
Returns whether the edited wall is a rectangular wall, a sloping wall or unknown.
|
java.lang.Float |
getSlopingWallHeightAtEnd()
Returns the edited height at end of a sloping wall.
|
java.lang.Float |
getSlopingWallHeightAtStart()
Returns the edited height at start of a sloping wall.
|
java.lang.Float |
getThickness()
Returns the edited thickness.
|
java.lang.Integer |
getTopColor()
Returns the edited top color in the 3D view.
|
WallController.WallPaint |
getTopPaint()
Returns whether the top of the wall in the 3D view uses default rendering, is colored, or unknown painted.
|
DialogView |
getView()
Returns the view associated with this controller.
|
java.lang.Float |
getXEnd()
Returns the edited abscissa of the end point.
|
java.lang.Float |
getXStart()
Returns the edited abscissa of the start point.
|
java.lang.Float |
getYEnd()
Returns the edited ordinate of the end point.
|
java.lang.Float |
getYStart()
Returns the edited ordinate of the start point.
|
boolean |
isEditablePoints()
Returns whether the point coordinates can be be edited or not.
|
void |
modifyWalls()
Controls the modification of selected walls in edited home.
|
void |
removePropertyChangeListener(WallController.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this controller. |
void |
setArcExtentInDegrees(java.lang.Float arcExtentInDegrees)
Sets the edited arc extent.
|
void |
setDistanceToEndPoint(java.lang.Float distanceToEndPoint)
Sets the edited distance to end point.
|
void |
setEditablePoints(boolean editablePoints)
Sets whether the point coordinates can be be edited or not.
|
void |
setLeftSideColor(java.lang.Integer leftSideColor)
Sets the edited color of the left side.
|
void |
setLeftSidePaint(WallController.WallPaint leftSidePaint)
Sets whether the left side is colored, textured or unknown painted.
|
void |
setLeftSideShininess(java.lang.Float leftSideShininess)
Sets the edited left side shininess.
|
void |
setLength(java.lang.Float length)
Sets the edited length.
|
void |
setPattern(TextureImage pattern)
Sets the pattern of edited wall in plan, and notifies
listeners of this change.
|
void |
setRectangularWallHeight(java.lang.Float rectangularWallHeight)
Sets the edited height of a rectangular wall.
|
void |
setRightSideColor(java.lang.Integer rightSideColor)
Sets the edited color of the right side.
|
void |
setRightSidePaint(WallController.WallPaint rightSidePaint)
Sets whether the right side is colored, textured or unknown painted.
|
void |
setRightSideShininess(java.lang.Float rightSideShininess)
Sets the edited right side shininess.
|
void |
setShape(WallController.WallShape shape)
Sets whether the edited wall is a rectangular wall, a sloping wall or unknown.
|
void |
setSlopingWallHeightAtEnd(java.lang.Float sloppingWallHeightAtEnd)
Sets the edited height at end of a sloping wall.
|
void |
setSlopingWallHeightAtStart(java.lang.Float slopingWallHeightAtStart)
Sets the edited height at start of a sloping wall.
|
void |
setThickness(java.lang.Float thickness)
Sets the edited thickness.
|
void |
setTopColor(java.lang.Integer topColor)
Sets the edited top color in the 3D view.
|
void |
setTopPaint(WallController.WallPaint topPaint)
Sets whether the top of the wall in the 3D view uses default rendering, is colored, or unknown painted.
|
void |
setXEnd(java.lang.Float xEnd)
Sets the edited abscissa of the end point.
|
void |
setXStart(java.lang.Float xStart)
Sets the edited abscissa of the start point.
|
void |
setYEnd(java.lang.Float yEnd)
Sets the edited ordinate of the end point.
|
void |
setYStart(java.lang.Float yStart)
Sets the edited ordinate of the start point.
|
protected void |
updateProperties()
Updates edited properties from selected walls in the home edited by this controller.
|
public WallController(Home home, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager, javax.swing.undo.UndoableEditSupport undoSupport)
public TextureChoiceController getLeftSideTextureController()
public BaseboardChoiceController getLeftSideBaseboardController()
public TextureChoiceController getRightSideTextureController()
public BaseboardChoiceController getRightSideBaseboardController()
public DialogView getView()
getView
in interface Controller
public void displayView(View parentView)
public void addPropertyChangeListener(WallController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(WallController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this controller.protected void updateProperties()
public void setXStart(java.lang.Float xStart)
public java.lang.Float getXStart()
public void setYStart(java.lang.Float yStart)
public java.lang.Float getYStart()
public void setXEnd(java.lang.Float xEnd)
public java.lang.Float getXEnd()
public void setYEnd(java.lang.Float yEnd)
public java.lang.Float getYEnd()
public void setLength(java.lang.Float length)
public java.lang.Float getLength()
public void setDistanceToEndPoint(java.lang.Float distanceToEndPoint)
public java.lang.Float getDistanceToEndPoint()
public void setEditablePoints(boolean editablePoints)
public boolean isEditablePoints()
public void setLeftSideColor(java.lang.Integer leftSideColor)
public java.lang.Integer getLeftSideColor()
public void setLeftSidePaint(WallController.WallPaint leftSidePaint)
public WallController.WallPaint getLeftSidePaint()
WallController.WallPaint.COLORED
, WallController.WallPaint.TEXTURED
or null
public void setLeftSideShininess(java.lang.Float leftSideShininess)
public java.lang.Float getLeftSideShininess()
public void setRightSideColor(java.lang.Integer rightSideColor)
public java.lang.Integer getRightSideColor()
public void setRightSidePaint(WallController.WallPaint rightSidePaint)
public WallController.WallPaint getRightSidePaint()
WallController.WallPaint.COLORED
, WallController.WallPaint.TEXTURED
or null
public void setRightSideShininess(java.lang.Float rightSideShininess)
public java.lang.Float getRightSideShininess()
public void setPattern(TextureImage pattern)
public TextureImage getPattern()
public void setTopColor(java.lang.Integer topColor)
public java.lang.Integer getTopColor()
public void setTopPaint(WallController.WallPaint topPaint)
public WallController.WallPaint getTopPaint()
WallController.WallPaint.DEFAULT
, WallController.WallPaint.COLORED
or null
public void setShape(WallController.WallShape shape)
public WallController.WallShape getShape()
public void setRectangularWallHeight(java.lang.Float rectangularWallHeight)
public java.lang.Float getRectangularWallHeight()
public void setSlopingWallHeightAtStart(java.lang.Float slopingWallHeightAtStart)
public java.lang.Float getSlopingWallHeightAtStart()
public void setSlopingWallHeightAtEnd(java.lang.Float sloppingWallHeightAtEnd)
public java.lang.Float getSlopingWallHeightAtEnd()
public void setThickness(java.lang.Float thickness)
public java.lang.Float getThickness()
public void setArcExtentInDegrees(java.lang.Float arcExtentInDegrees)
public java.lang.Float getArcExtentInDegrees()
public java.lang.Float getArcLength()
public void modifyWalls()
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License