public class ImportedFurnitureWizardController extends WizardController implements Controller
Modifier and Type | Class and Description |
---|---|
protected class |
ImportedFurnitureWizardController.ImportedFurnitureWizardStepState
Step state superclass.
|
static class |
ImportedFurnitureWizardController.Property |
static class |
ImportedFurnitureWizardController.Step |
WizardController.WizardControllerStepState
Constructor and Description |
---|
ImportedFurnitureWizardController(CatalogPieceOfFurniture piece,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager)
Creates a controller that edits
piece values. |
ImportedFurnitureWizardController(Home home,
java.lang.String modelName,
UserPreferences preferences,
FurnitureController furnitureController,
ViewFactory viewFactory,
ContentManager contentManager,
javax.swing.undo.UndoableEditSupport undoSupport)
Creates a controller that edits a new imported home piece of furniture
with a given
modelName . |
ImportedFurnitureWizardController(Home home,
UserPreferences preferences,
FurnitureController furnitureController,
ViewFactory viewFactory,
ContentManager contentManager,
javax.swing.undo.UndoableEditSupport undoSupport)
Creates a controller that edits a new imported home piece of furniture.
|
ImportedFurnitureWizardController(java.lang.String modelName,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager)
Creates a controller that edits a new catalog piece of furniture with a given
modelName . |
ImportedFurnitureWizardController(UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager)
Creates a controller that edits a new catalog piece of furniture.
|
Modifier and Type | Method and Description |
---|---|
void |
addPieceOfFurniture(HomePieceOfFurniture piece)
Controls new piece added to home.
|
void |
addPropertyChangeListener(ImportedFurnitureWizardController.Property property,
java.beans.PropertyChangeListener listener)
Adds the property change
listener in parameter to this home. |
void |
finish()
Imports piece in catalog and/or home and posts an undoable operation.
|
FurnitureCategory |
getCategory()
Returns the category of the imported piece.
|
java.lang.Integer |
getColor()
Returns the color of the imported piece.
|
ContentManager |
getContentManager()
Returns the content manager of this controller.
|
float |
getDepth()
Returns the depth of the imported piece.
|
float |
getElevation()
Returns the elevation of the imported piece.
|
protected ImportedFurnitureWizardController.ImportedFurnitureWizardStepState |
getFurnitureAttributesStepState()
Returns the furniture attributes step state.
|
protected ImportedFurnitureWizardController.ImportedFurnitureWizardStepState |
getFurnitureIconStepState()
Returns the furniture icon step state.
|
protected ImportedFurnitureWizardController.ImportedFurnitureWizardStepState |
getFurnitureModelStepStatee()
Returns the furniture choice step state.
|
protected ImportedFurnitureWizardController.ImportedFurnitureWizardStepState |
getFurnitureOrientationStepState()
Returns the furniture orientation step state.
|
float |
getHeight()
Returns the height.
|
float |
getIconYaw()
Returns the yaw of the piece icon.
|
Content |
getModel()
Returns the model content of the imported piece.
|
float[][] |
getModelRotation()
Returns the pitch angle of the imported piece model.
|
java.lang.String |
getName()
Returns the name of the imported piece.
|
java.lang.String |
getStaircaseCutOutShape()
Returns the shape used to cut out upper levels at its intersection with a staircase.
|
ImportedFurnitureWizardController.Step |
getStep()
Returns the current step in wizard view.
|
protected ImportedFurnitureWizardController.ImportedFurnitureWizardStepState |
getStepState()
Returns the current step state.
|
protected ImportedFurnitureWizardStepsView |
getStepsView()
Returns the unique wizard view used for all steps.
|
float |
getWidth()
Returns the width.
|
boolean |
isBackFaceShown()
Returns
true if imported piece back face should be shown. |
boolean |
isDoorOrWindow()
Returns
true if imported piece is a door or a window. |
boolean |
isMovable()
Returns
true if imported piece is movable. |
boolean |
isPieceOfFurnitureNameValid()
Returns
true if piece name is valid. |
boolean |
isProportional()
Returns
true if piece proportions should be kept. |
void |
removePropertyChangeListener(ImportedFurnitureWizardController.Property property,
java.beans.PropertyChangeListener listener)
Removes the property change
listener in parameter from this home. |
void |
setBackFaceShown(boolean backFaceShown)
Sets whether imported piece back face should be shown.
|
void |
setCategory(FurnitureCategory category)
Sets the category of the imported piece.
|
void |
setColor(java.lang.Integer color)
Sets the color of the imported piece.
|
void |
setDepth(float depth)
Sets the depth of the imported piece.
|
void |
setDoorOrWindow(boolean doorOrWindow)
Sets whether imported piece is a door or a window.
|
void |
setElevation(float elevation)
Sets the elevation of the imported piece.
|
void |
setHeight(float height)
Sets the size of the imported piece.
|
void |
setIconYaw(float iconYaw)
Sets the yaw angle of the piece icon.
|
void |
setModel(Content model)
Sets the model content of the imported piece.
|
void |
setModelRotation(float[][] modelRotation)
Sets the orientation pitch angle of the imported piece model.
|
void |
setMovable(boolean movable)
Sets whether imported piece is movable.
|
void |
setName(java.lang.String name)
Sets the name of the imported piece.
|
void |
setProportional(boolean proportional)
Sets whether piece proportions should be kept or not.
|
void |
setStaircaseCutOutShape(java.lang.String staircaseCutOutShape)
Sets the shape used to cut out upper levels at its intersection with a staircase.
|
protected void |
setStep(ImportedFurnitureWizardController.Step step)
Switch in the wizard view to the given
step . |
void |
setWidth(float width)
Sets the width of the imported piece.
|
addPropertyChangeListener, displayView, getStepIcon, getStepView, getTitle, getView, goBackToPreviousStep, goToNextStep, isBackStepEnabled, isLastStep, isNextStepEnabled, isResizable, removePropertyChangeListener, setResizable, setStepState, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getView
public ImportedFurnitureWizardController(UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
public ImportedFurnitureWizardController(java.lang.String modelName, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
modelName
.public ImportedFurnitureWizardController(CatalogPieceOfFurniture piece, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
piece
values.public ImportedFurnitureWizardController(Home home, UserPreferences preferences, FurnitureController furnitureController, ViewFactory viewFactory, ContentManager contentManager, javax.swing.undo.UndoableEditSupport undoSupport)
public ImportedFurnitureWizardController(Home home, java.lang.String modelName, UserPreferences preferences, FurnitureController furnitureController, ViewFactory viewFactory, ContentManager contentManager, javax.swing.undo.UndoableEditSupport undoSupport)
modelName
.public void finish()
finish
in class WizardController
public void addPieceOfFurniture(HomePieceOfFurniture piece)
piece
- the piece of furniture to add.public ContentManager getContentManager()
protected ImportedFurnitureWizardController.ImportedFurnitureWizardStepState getStepState()
getStepState
in class WizardController
protected ImportedFurnitureWizardController.ImportedFurnitureWizardStepState getFurnitureModelStepStatee()
protected ImportedFurnitureWizardController.ImportedFurnitureWizardStepState getFurnitureOrientationStepState()
protected ImportedFurnitureWizardController.ImportedFurnitureWizardStepState getFurnitureAttributesStepState()
protected ImportedFurnitureWizardController.ImportedFurnitureWizardStepState getFurnitureIconStepState()
protected ImportedFurnitureWizardStepsView getStepsView()
protected void setStep(ImportedFurnitureWizardController.Step step)
step
.public ImportedFurnitureWizardController.Step getStep()
public void addPropertyChangeListener(ImportedFurnitureWizardController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this home.public void removePropertyChangeListener(ImportedFurnitureWizardController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this home.public Content getModel()
public void setModel(Content model)
public boolean isBackFaceShown()
true
if imported piece back face should be shown.public void setBackFaceShown(boolean backFaceShown)
public float[][] getModelRotation()
public void setModelRotation(float[][] modelRotation)
public java.lang.String getName()
public void setName(java.lang.String name)
public float getWidth()
public void setWidth(float width)
public float getDepth()
public void setDepth(float depth)
public float getHeight()
public void setHeight(float height)
public float getElevation()
public void setElevation(float elevation)
public boolean isMovable()
true
if imported piece is movable.public void setMovable(boolean movable)
public boolean isDoorOrWindow()
true
if imported piece is a door or a window.public void setDoorOrWindow(boolean doorOrWindow)
public java.lang.String getStaircaseCutOutShape()
public void setStaircaseCutOutShape(java.lang.String staircaseCutOutShape)
public java.lang.Integer getColor()
public void setColor(java.lang.Integer color)
public FurnitureCategory getCategory()
public void setCategory(FurnitureCategory category)
public float getIconYaw()
public void setIconYaw(float iconYaw)
public boolean isProportional()
true
if piece proportions should be kept.public void setProportional(boolean proportional)
public boolean isPieceOfFurnitureNameValid()
true
if piece name is valid.
© Copyrights 2006-2014 eTeks - All rights reserved
Distributed under GNU General Public License