Class Index | File Index

Classes


Class UserPreferences


Defined in: UserPreferences.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
User preferences.
Method Summary
Method Attributes Method Name and Description
 
addPropertyChangeListener(property, listener)
Adds the listener in parameter to these preferences.
 
Returns the length unit currently in use.
 
Returns whether aerial view should be centered on selection or not.
 
Returns true if the navigation panel should be displayed.
 
Returns whether the observer camera should be selected at each change.
 
removePropertyChangeListener(property, listener)
Removes the listener in parameter from these preferences.
 
setAerialViewCenteredOnSelectionEnabled(aerialViewCenteredOnSelectionEnabled)
Sets whether aerial view should be centered on selection or not.
 
setNavigationPanelVisible(navigationPanelVisible)
Sets whether the navigation panel should be displayed or not.
 
setObserverCameraSelectedAtChange(observerCameraSelectedAtChange)
Sets whether the observer camera should be selected at each change.
 
setUnit(unit)
Changes the unit currently in use, and notifies listeners of this change.
Class Detail
UserPreferences()
User preferences.
Author: Emmanuel Puybaret.
Method Detail
addPropertyChangeListener(property, listener)
Adds the listener in parameter to these preferences. The listener is a function that will receive in parameter an event of PropertyChangeEvent class.
Parameters:
property
listener

getLengthUnit()
Returns the length unit currently in use.

isAerialViewCenteredOnSelectionEnabled()
Returns whether aerial view should be centered on selection or not.

isNavigationPanelVisible()
Returns true if the navigation panel should be displayed.

isObserverCameraSelectedAtChange()
Returns whether the observer camera should be selected at each change.
Since:
5.5

removePropertyChangeListener(property, listener)
Removes the listener in parameter from these preferences.
Parameters:
property
listener

setAerialViewCenteredOnSelectionEnabled(aerialViewCenteredOnSelectionEnabled)
Sets whether aerial view should be centered on selection or not.
Parameters:
aerialViewCenteredOnSelectionEnabled

setNavigationPanelVisible(navigationPanelVisible)
Sets whether the navigation panel should be displayed or not.
Parameters:
navigationPanelVisible

setObserverCameraSelectedAtChange(observerCameraSelectedAtChange)
Sets whether the observer camera should be selected at each change.
Parameters:
observerCameraSelectedAtChange
Since:
5.5

setUnit(unit)
Changes the unit currently in use, and notifies listeners of this change.
Parameters:
unit
one of the values of Unit.

© Copyrights 2017 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Oct 25 2017 16:36:09 GMT+0200 (CEST)