Class TextureChoiceController
Defined in: SweetHome3D.js.
Constructor Attributes | Constructor Name and Description |
---|---|
TextureChoiceController(title, fitAreaText, rotationSupported, preferences, viewFactory, contentManager)
A MVC controller for texture choice.
|
Method Attributes | Method Name and Description |
---|---|
addPropertyChangeListener(property, listener)
Adds the property change
listener in parameter to this controller. |
|
addRecentTexture(texture)
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 text that should be displayed if fit area option is supported.
|
|
Returns the texture displayed by view.
|
|
getView()
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, fitAreaText, rotationSupported, preferences, viewFactory, contentManager)
A MVC controller for texture choice.
Author: Emmanuel Puybaret.
Author: Emmanuel Puybaret.
- Parameters:
- {string} title
- {string} fitAreaText
- {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}
{string}
getFitAreaText()
Returns the text that should be displayed if fit area option is supported.
- 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