Sweet Home 3D 4.0

com.eteks.sweethome3d.viewcontroller
Class ImportedTextureWizardController

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

public class ImportedTextureWizardController
extends WizardController
implements Controller

Wizard controller for background image in plan.

Author:
Emmanuel Puybaret

Nested Class Summary
protected  class ImportedTextureWizardController.ImportedTextureWizardStepState
          Step state superclass.
static class ImportedTextureWizardController.Property
           
static class ImportedTextureWizardController.Step
           
 
Nested classes/interfaces inherited from class com.eteks.sweethome3d.viewcontroller.WizardController
WizardController.WizardControllerStepState
 
Constructor Summary
ImportedTextureWizardController(CatalogTexture texture, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
          Creates a controller that edits texture values.
ImportedTextureWizardController(String textureName, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
          Creates a controller that edits a new catalog texture with a given textureName.
ImportedTextureWizardController(UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
          Creates a controller that edits a new catalog texture.
 
Method Summary
 void addPropertyChangeListener(ImportedTextureWizardController.Property property, PropertyChangeListener listener)
          Adds the property change listener in parameter to this home.
 void finish()
          Changes background image in model and posts an undoable operation.
 TexturesCategory getCategory()
          Returns the category of the imported texture.
 ContentManager getContentManager()
          Returns the content manager of this controller.
 float getHeight()
          Returns the height.
 Content getImage()
          Returns the image content of the imported texture.
 String getName()
          Returns the name of the imported texture.
 ImportedTextureWizardController.Step getStep()
          Returns the current step in wizard view.
protected  ImportedTextureWizardController.ImportedTextureWizardStepState getStepState()
          Returns the current step state.
protected  View getStepsView()
          Returns the unique wizard view used for all steps.
protected  ImportedTextureWizardController.ImportedTextureWizardStepState getTextureAttributesStepState()
          Returns the texture attributes step state.
protected  ImportedTextureWizardController.ImportedTextureWizardStepState getTextureImageStepState()
          Returns the texture image step state.
 float getWidth()
          Returns the width.
 boolean isTextureNameValid()
          Returns true if texture name is valid.
 void removePropertyChangeListener(ImportedTextureWizardController.Property property, PropertyChangeListener listener)
          Removes the property change listener in parameter from this home.
 void setCategory(TexturesCategory category)
          Sets the category of the imported texture.
 void setHeight(float height)
          Sets the size of the imported texture.
 void setImage(Content image)
          Sets the image content of the imported texture.
 void setName(String name)
          Sets the name of the imported texture.
protected  void setStep(ImportedTextureWizardController.Step step)
          Switch in the wizard view to the given step.
 void setWidth(float width)
          Sets the width of the imported texture.
 
Methods inherited from class com.eteks.sweethome3d.viewcontroller.WizardController
addPropertyChangeListener, displayView, getStepIcon, getStepView, getTitle, getView, goBackToPreviousStep, goToNextStep, isBackStepEnabled, isLastStep, isNextStepEnabled, isResizable, removePropertyChangeListener, setResizable, setStepState, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eteks.sweethome3d.viewcontroller.Controller
getView
 

Constructor Detail

ImportedTextureWizardController

public ImportedTextureWizardController(UserPreferences preferences,
                                       ViewFactory viewFactory,
                                       ContentManager contentManager)
Creates a controller that edits a new catalog texture.


ImportedTextureWizardController

public ImportedTextureWizardController(String textureName,
                                       UserPreferences preferences,
                                       ViewFactory viewFactory,
                                       ContentManager contentManager)
Creates a controller that edits a new catalog texture with a given textureName.


ImportedTextureWizardController

public ImportedTextureWizardController(CatalogTexture texture,
                                       UserPreferences preferences,
                                       ViewFactory viewFactory,
                                       ContentManager contentManager)
Creates a controller that edits texture values.

Method Detail

finish

public void finish()
Changes background image in model and posts an undoable operation.

Specified by:
finish in class WizardController

getContentManager

public ContentManager getContentManager()
Returns the content manager of this controller.


getStepState

protected ImportedTextureWizardController.ImportedTextureWizardStepState getStepState()
Returns the current step state.

Overrides:
getStepState in class WizardController

getTextureImageStepState

protected ImportedTextureWizardController.ImportedTextureWizardStepState getTextureImageStepState()
Returns the texture image step state.


getTextureAttributesStepState

protected ImportedTextureWizardController.ImportedTextureWizardStepState getTextureAttributesStepState()
Returns the texture attributes step state.


getStepsView

protected View getStepsView()
Returns the unique wizard view used for all steps.


setStep

protected void setStep(ImportedTextureWizardController.Step step)
Switch in the wizard view to the given step.


getStep

public ImportedTextureWizardController.Step getStep()
Returns the current step in wizard view.


addPropertyChangeListener

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


removePropertyChangeListener

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


setImage

public void setImage(Content image)
Sets the image content of the imported texture.


getImage

public Content getImage()
Returns the image content of the imported texture.


getName

public String getName()
Returns the name of the imported texture.


setName

public void setName(String name)
Sets the name of the imported texture.


getCategory

public TexturesCategory getCategory()
Returns the category of the imported texture.


setCategory

public void setCategory(TexturesCategory category)
Sets the category of the imported texture.


getWidth

public float getWidth()
Returns the width.


setWidth

public void setWidth(float width)
Sets the width of the imported texture.


getHeight

public float getHeight()
Returns the height.


setHeight

public void setHeight(float height)
Sets the size of the imported texture.


isTextureNameValid

public boolean isTextureNameValid()
Returns true if texture name is valid.


Sweet Home 3D 4.0

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