Sweet Home 3D 4.0

com.eteks.sweethome3d.viewcontroller
Class TextureChoiceController

java.lang.Object
  extended by com.eteks.sweethome3d.viewcontroller.TextureChoiceController
All Implemented Interfaces:
Controller

public class TextureChoiceController
extends Object
implements Controller

A MVC controller for texture choice.

Author:
Emmanuel Puybaret

Nested Class Summary
static class TextureChoiceController.Property
           
 
Constructor Summary
TextureChoiceController(String title, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
           
 
Method Summary
 void addPropertyChangeListener(TextureChoiceController.Property property, PropertyChangeListener listener)
          Adds the property change listener in parameter to this controller.
 void deleteTexture(CatalogTexture texture)
          Controls the deletion of a texture.
 String getDialogTitle()
          Returns the text that should be displayed as texture choice dialog title.
 HomeTexture getTexture()
          Returns the texture displayed by view.
 TextureChoiceView getView()
          Returns the view associated with this controller.
 void importTexture()
          Controls texture import.
 void importTexture(String textureName)
          Controls the import of a texture with a given name.
 void modifyTexture(CatalogTexture texture)
          Controls the modification of a texture.
 void removePropertyChangeListener(TextureChoiceController.Property property, PropertyChangeListener listener)
          Removes the property change listener in parameter from this controller.
 void setTexture(HomeTexture texture)
          Sets the texture displayed by view and fires a PropertyChangeEvent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextureChoiceController

public TextureChoiceController(String title,
                               UserPreferences preferences,
                               ViewFactory viewFactory,
                               ContentManager contentManager)
Method Detail

getView

public TextureChoiceView getView()
Returns the view associated with this controller.

Specified by:
getView in interface Controller

addPropertyChangeListener

public void addPropertyChangeListener(TextureChoiceController.Property property,
                                      PropertyChangeListener listener)
Adds the property change listener in parameter to this controller.


removePropertyChangeListener

public void removePropertyChangeListener(TextureChoiceController.Property property,
                                         PropertyChangeListener listener)
Removes the property change listener in parameter from this controller.


setTexture

public void setTexture(HomeTexture texture)
Sets the texture displayed by view and fires a PropertyChangeEvent.


getTexture

public HomeTexture getTexture()
Returns the texture displayed by view.


getDialogTitle

public String getDialogTitle()
Returns the text that should be displayed as texture choice dialog title.


importTexture

public void importTexture()
Controls texture import.


importTexture

public void importTexture(String textureName)
Controls the import of a texture with a given name.


modifyTexture

public void modifyTexture(CatalogTexture texture)
Controls the modification of a texture.


deleteTexture

public void deleteTexture(CatalogTexture texture)
Controls the deletion of a texture.


Sweet Home 3D 4.0

© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License