Sweet Home 3D 3.4

com.eteks.sweethome3d.viewcontroller
Class BackgroundImageWizardController

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

public class BackgroundImageWizardController
extends WizardController
implements Controller

Wizard controller for background image in plan.

Author:
Emmanuel Puybaret

Nested Class Summary
protected  class BackgroundImageWizardController.BackgroundImageWizardStepState
          Step state superclass.
static class BackgroundImageWizardController.Property
           
static class BackgroundImageWizardController.Step
           
 
Nested classes/interfaces inherited from class com.eteks.sweethome3d.viewcontroller.WizardController
WizardController.WizardControllerStepState
 
Constructor Summary
BackgroundImageWizardController(Home home, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager, javax.swing.undo.UndoableEditSupport undoSupport)
           
 
Method Summary
 void addPropertyChangeListener(BackgroundImageWizardController.Property property, java.beans.PropertyChangeListener listener)
          Adds the property change listener in parameter to this controller.
 void finish()
          Changes background image in model and posts an undoable operation.
 ContentManager getContentManager()
          Returns the content manager of this controller.
 Content getImage()
          Returns the image content of the background image.
protected  BackgroundImageWizardController.BackgroundImageWizardStepState getImageChoiceStepState()
          Returns the image choice step state.
protected  BackgroundImageWizardController.BackgroundImageWizardStepState getImageOriginStepState()
          Returns the image origin step state.
protected  BackgroundImageWizardController.BackgroundImageWizardStepState getImageScaleStepState()
          Returns the image scale step state.
 java.lang.Float getScaleDistance()
          Returns the scale distance of the background image.
 float[][] getScaleDistancePoints()
          Returns the coordinates of the scale distance points of the background image.
 BackgroundImageWizardController.Step getStep()
          Returns the current step in wizard view.
protected  BackgroundImageWizardController.BackgroundImageWizardStepState getStepState()
          Returns the current step state.
protected  View getStepsView()
          Returns the unique wizard view used for all steps.
 float getXOrigin()
          Returns the abcissa of the origin of the background image.
 float getYOrigin()
          Returns the ordinate of the origin of the background image.
 void removePropertyChangeListener(BackgroundImageWizardController.Property property, java.beans.PropertyChangeListener listener)
          Removes the property change listener in parameter from this controller.
 void setImage(Content image)
          Sets the image content of the background image.
 void setOrigin(float xOrigin, float yOrigin)
          Sets the origin of the background image.
 void setScaleDistance(java.lang.Float scaleDistance)
          Sets the scale distance of the background image.
 void setScaleDistancePoints(float scaleDistanceXStart, float scaleDistanceYStart, float scaleDistanceXEnd, float scaleDistanceYEnd)
          Sets the coordinates of the scale distance points of the background image.
protected  void setStep(BackgroundImageWizardController.Step step)
          Switch in the wizard view to the given step.
 
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

BackgroundImageWizardController

public BackgroundImageWizardController(Home home,
                                       UserPreferences preferences,
                                       ViewFactory viewFactory,
                                       ContentManager contentManager,
                                       javax.swing.undo.UndoableEditSupport undoSupport)
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 BackgroundImageWizardController.BackgroundImageWizardStepState getStepState()
Returns the current step state.

Overrides:
getStepState in class WizardController

getImageChoiceStepState

protected BackgroundImageWizardController.BackgroundImageWizardStepState getImageChoiceStepState()
Returns the image choice step state.


getImageOriginStepState

protected BackgroundImageWizardController.BackgroundImageWizardStepState getImageOriginStepState()
Returns the image origin step state.


getImageScaleStepState

protected BackgroundImageWizardController.BackgroundImageWizardStepState getImageScaleStepState()
Returns the image scale step state.


getStepsView

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


setStep

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


getStep

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


addPropertyChangeListener

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


removePropertyChangeListener

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


setImage

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


getImage

public Content getImage()
Returns the image content of the background image.


setScaleDistance

public void setScaleDistance(java.lang.Float scaleDistance)
Sets the scale distance of the background image.


getScaleDistance

public java.lang.Float getScaleDistance()
Returns the scale distance of the background image.


setScaleDistancePoints

public void setScaleDistancePoints(float scaleDistanceXStart,
                                   float scaleDistanceYStart,
                                   float scaleDistanceXEnd,
                                   float scaleDistanceYEnd)
Sets the coordinates of the scale distance points of the background image.


getScaleDistancePoints

public float[][] getScaleDistancePoints()
Returns the coordinates of the scale distance points of the background image.


setOrigin

public void setOrigin(float xOrigin,
                      float yOrigin)
Sets the origin of the background image.


getXOrigin

public float getXOrigin()
Returns the abcissa of the origin of the background image.


getYOrigin

public float getYOrigin()
Returns the ordinate of the origin of the background image.


Sweet Home 3D 3.4

? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License