Class CompassController
Defined in: SweetHome3D.js.
Constructor Attributes | Constructor Name and Description |
---|---|
CompassController(home, preferences, viewFactory, undoSupport)
A MVC controller for the compass view.
|
Method Attributes | Method Name and Description |
---|---|
addPropertyChangeListener(property, listener)
Adds the property change
listener in parameter to this controller. |
|
displayView(parentView)
Displays the view controlled by this controller.
|
|
Returns the edited diameter.
|
|
Returns the edited latitude in degrees.
|
|
Returns the edited longitude in degrees.
|
|
Returns the edited North direction angle in degrees.
|
|
Returns the edited time zone identifier.
|
|
getView()
Returns the view associated with this controller.
|
|
getX()
Returns the edited abscissa of the center.
|
|
getY()
Returns the edited ordinate of the center.
|
|
Returns whether compass is visible or not.
|
|
Modifies home compass from the values stored in this controller.
|
|
removePropertyChangeListener(property, listener)
Removes the property change
listener in parameter from this controller. |
|
setDiameter(diameter)
Sets the edited diameter.
|
|
setLatitudeInDegrees(latitudeInDegrees)
Sets the edited latitude in degrees.
|
|
setLongitudeInDegrees(longitudeInDegrees)
Sets the edited longitude of the center.
|
|
setNorthDirectionInDegrees(northDirectionInDegrees)
Sets the edited North direction angle.
|
|
setTimeZone(timeZone)
Sets the edited time zone identifier.
|
|
setVisible(visible)
Sets whether this compass is visible or not.
|
|
setX(x)
Sets the edited abscissa of the center.
|
|
setY(y)
Sets the edited ordinate of the center.
|
|
Updates compass properties edited by this controller.
|
Class Detail
CompassController(home, preferences, viewFactory, undoSupport)
A MVC controller for the compass view.
Author: Emmanuel Puybaret.
Author: Emmanuel Puybaret.
- Parameters:
- {Home} home
- {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
displayView(parentView)
Displays the view controlled by this controller.
- Parameters:
- {Object} parentView
{number}
getDiameter()
Returns the edited diameter.
- Returns:
- {number}
{number}
getLatitudeInDegrees()
Returns the edited latitude in degrees.
- Returns:
- {number}
{number}
getLongitudeInDegrees()
Returns the edited longitude in degrees.
- Returns:
- {number}
{number}
getNorthDirectionInDegrees()
Returns the edited North direction angle in degrees.
- Returns:
- {number}
{string}
getTimeZone()
Returns the edited time zone identifier.
- Returns:
- {string}
{Object}
getView()
Returns the view associated with this controller.
- Returns:
- {Object}
{number}
getX()
Returns the edited abscissa of the center.
- Returns:
- {number}
{number}
getY()
Returns the edited ordinate of the center.
- Returns:
- {number}
{boolean}
isVisible()
Returns whether compass is visible or not.
- Returns:
- {boolean}
modifyCompass()
Modifies home compass from the values stored in this controller.
removePropertyChangeListener(property, listener)
Removes the property change
listener
in parameter from this controller.
- Parameters:
- {string} property
- {PropertyChangeListener} listener
setDiameter(diameter)
Sets the edited diameter.
- Parameters:
- {number} diameter
setLatitudeInDegrees(latitudeInDegrees)
Sets the edited latitude in degrees.
- Parameters:
- {number} latitudeInDegrees
setLongitudeInDegrees(longitudeInDegrees)
Sets the edited longitude of the center.
- Parameters:
- {number} longitudeInDegrees
setNorthDirectionInDegrees(northDirectionInDegrees)
Sets the edited North direction angle.
- Parameters:
- {number} northDirectionInDegrees
setTimeZone(timeZone)
Sets the edited time zone identifier.
- Parameters:
- {string} timeZone
setVisible(visible)
Sets whether this compass is visible or not.
- Parameters:
- {boolean} visible
setX(x)
Sets the edited abscissa of the center.
- Parameters:
- {number} x
setY(y)
Sets the edited ordinate of the center.
- Parameters:
- {number} y
updateProperties()
Updates compass properties edited by this controller.