Class Index | File Index

Classes


Class DimensionLineController


Defined in: SweetHome3D.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
DimensionLineController(home, x, y, preferences, viewFactory, undoSupport)
Creates the controller of dimension line view with undo support.
Method Summary
Method Attributes Method Name and Description
 
addPropertyChangeListener(property, listener)
Adds the property change listener in parameter to this controller.
 
createDimensionLine(xStart, yStart, elevationStart, xEnd, yEnd, elevationEnd, offset)
Returns a new dimension line instance added to home.
 
displayView(parentView)
Displays the view controlled by this controller.
 
Returns the edited color.
 
Returns the edited distance to end point.
 
Returns the edited elevation of the end point.
 
Returns the edited elevation of the start point.
 
Returns the edited font size.
 
Returns the edited offset.
 
Returns the edited orientation.
 
Returns the edited pitch.
 
Returns the view associated with this controller.
 
Returns the edited abscissa of the end point.
 
Returns the edited abscissa of the start point.
 
Returns the edited ordinate of the end point.
 
Returns the edited ordinate of the start point.
 
Returns whether the distance can be be edited or not.
 
Returns Boolean.TRUE if all edited dimension lines are viewed in 3D, or Boolean.FALSE if no dimension line is viewed in 3D.
 
Controls the modification of selected dimension lines in edited home.
 
removePropertyChangeListener(property, listener)
Removes the property change listener in parameter from this controller.
 
setColor(color)
Sets the edited color.
 
setEditableDistance(editableDistance)
Sets whether the distance can be be edited or not.
 
setLengthFontSize(lengthFontSize)
Sets the edited font size.
 
setOffset(offset)
Sets the edited offset.
 
setPitch(pitch)
Sets the edited pitch angle.
 
setVisibleIn3D(visibleIn3D)
Sets whether all edited dimension lines are viewed in 3D.
 
Updates edited properties from selected dimension lines in the home edited by this controller.
Class Detail
DimensionLineController(home, x, y, preferences, viewFactory, undoSupport)
Creates the controller of dimension line view with undo support.
Author: Emmanuel Puybaret.
Parameters:
{Home} home
{number} x
{number} y
{UserPreferences} preferences
{Object} viewFactory
{javax.swing.undo.UndoableEditSupport} undoSupport
Method Detail
addPropertyChangeListener(property, listener)
Adds the property change listener in parameter to this controller.
Parameters:
{string} property
{PropertyChangeListener} listener

{DimensionLine} createDimensionLine(xStart, yStart, elevationStart, xEnd, yEnd, elevationEnd, offset)
Returns a new dimension line instance added to home.
Parameters:
{number} xStart
{number} yStart
{number} elevationStart
{number} xEnd
{number} yEnd
{number} elevationEnd
{number} offset
Returns:
{DimensionLine}

displayView(parentView)
Displays the view controlled by this controller.
Parameters:
{Object} parentView

{number} getColor()
Returns the edited color.
Returns:
{number}

{number} getDistanceToEndPoint()
Returns the edited distance to end point.
Returns:
{number}

{number} getElevationEnd()
Returns the edited elevation of the end point.
Returns:
{number}

{number} getElevationStart()
Returns the edited elevation of the start point.
Returns:
{number}

{number} getLengthFontSize()
Returns the edited font size.
Returns:
{number}

{number} getOffset()
Returns the edited offset.
Returns:
{number}

{DimensionLineController.DimensionLineOrientation} getOrientation()
Returns the edited orientation.
Returns:
{DimensionLineController.DimensionLineOrientation}

{number} getPitch()
Returns the edited pitch.
Returns:
{number}

{Object} getView()
Returns the view associated with this controller.
Returns:
{Object}

{number} getXEnd()
Returns the edited abscissa of the end point.
Returns:
{number}

{number} getXStart()
Returns the edited abscissa of the start point.
Returns:
{number}

{number} getYEnd()
Returns the edited ordinate of the end point.
Returns:
{number}

{number} getYStart()
Returns the edited ordinate of the start point.
Returns:
{number}

{boolean} isEditableDistance()
Returns whether the distance can be be edited or not.
Returns:
{boolean}

{boolean} isVisibleIn3D()
Returns Boolean.TRUE if all edited dimension lines are viewed in 3D, or Boolean.FALSE if no dimension line is viewed in 3D.
Returns:
{boolean}

modifyDimensionLines()
Controls the modification of selected dimension lines in edited home.

removePropertyChangeListener(property, listener)
Removes the property change listener in parameter from this controller.
Parameters:
{string} property
{PropertyChangeListener} listener

setColor(color)
Sets the edited color.
Parameters:
{number} color

setEditableDistance(editableDistance)
Sets whether the distance can be be edited or not.
Parameters:
{boolean} editableDistance

setLengthFontSize(lengthFontSize)
Sets the edited font size.
Parameters:
{number} lengthFontSize

setOffset(offset)
Sets the edited offset.
Parameters:
{number} offset

setPitch(pitch)
Sets the edited pitch angle.
Parameters:
{number} pitch

setVisibleIn3D(visibleIn3D)
Sets whether all edited dimension lines are viewed in 3D.
Parameters:
{boolean} visibleIn3D

updateProperties()
Updates edited properties from selected dimension lines in the home edited by this controller.

© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Aug 21 2024 17:43:23 GMT+0200 (CEST)