Class Index | File Index

Classes


Class TextureChoiceController


Defined in: SweetHome3D.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
TextureChoiceController(title, rotationSupported, preferences, viewFactory, contentManager)
A MVC controller for texture choice.
Method Summary
Method Attributes Method Name and Description
 
addPropertyChangeListener(property, listener)
Adds the property change listener in parameter to this controller.
 
Adds the given texture to the recent textures set.
 
deleteTexture(texture)
Controls the deletion of a texture.
 
Returns the text that should be displayed as texture choice dialog title.
 
Returns the texture displayed by view.
 
Returns the view associated with this controller.
 
importTexture(textureName)
Controls the import of a texture with a given name.
 
Returns true if the rotation of the edited texture is supported.
 
modifyTexture(texture)
Controls the modification of a texture.
 
removePropertyChangeListener(property, listener)
Removes the property change listener in parameter from this controller.
 
setTexture(texture)
Sets the texture displayed by view and fires a PropertyChangeEvent.
Class Detail
TextureChoiceController(title, rotationSupported, preferences, viewFactory, contentManager)
A MVC controller for texture choice.
Author: Emmanuel Puybaret.
Parameters:
{string} title
{boolean} rotationSupported
{UserPreferences} preferences
{Object} viewFactory
{Object} contentManager
Method Detail
addPropertyChangeListener(property, listener)
Adds the property change listener in parameter to this controller.
Parameters:
{string} property
{PropertyChangeListener} listener

addRecentTexture(texture)
Adds the given texture to the recent textures set.
Parameters:
{Object} texture

deleteTexture(texture)
Controls the deletion of a texture.
Parameters:
{CatalogTexture} texture

{string} getDialogTitle()
Returns the text that should be displayed as texture choice dialog title.
Returns:
{string}

{HomeTexture} getTexture()
Returns the texture displayed by view.
Returns:
{HomeTexture}

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

importTexture(textureName)
Controls the import of a texture with a given name.
Parameters:
{string} textureName

{boolean} isRotationSupported()
Returns true if the rotation of the edited texture is supported.
Returns:
{boolean}

modifyTexture(texture)
Controls the modification of a texture.
Parameters:
{CatalogTexture} texture

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

setTexture(texture)
Sets the texture displayed by view and fires a PropertyChangeEvent.
Parameters:
{HomeTexture} texture

© Copyright 2021 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Tue Mar 02 2021 19:55:53 GMT+0100 (CET)