|
Sweet Home 3D 4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.sweethome3d.viewcontroller.ModelMaterialsController
public class ModelMaterialsController
A MVC controller for model materials choice.
Nested Class Summary | |
---|---|
static class |
ModelMaterialsController.Property
|
Constructor Summary | |
---|---|
ModelMaterialsController(String title,
UserPreferences preferences,
ViewFactory viewFactory,
ContentManager contentManager)
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(ModelMaterialsController.Property property,
PropertyChangeListener listener)
Adds the property change listener in parameter to this controller. |
String |
getDialogTitle()
Returns the text that should be displayed as materials choice dialog title. |
HomeMaterial[] |
getMaterials()
Returns the materials displayed by view. |
Content |
getModel()
Returns the 3D model which materials are displayed by the view. |
float |
getModelDepth()
Returns the depth of the 3D model used to preview materials change. |
float |
getModelHeight()
Returns the height of the 3D model used to preview materials change. |
float[][] |
getModelRotation()
Returns the rotation of the 3D model used to preview materials change. |
float |
getModelWidth()
Returns the width of the 3D model used to preview materials change. |
TextureChoiceController |
getTextureController()
Returns the texture controller of the model materials. |
View |
getView()
Returns the view associated with this controller. |
boolean |
isBackFaceShown()
Returns true if the 3D model used to preview materials change should show back face. |
void |
removePropertyChangeListener(ModelMaterialsController.Property property,
PropertyChangeListener listener)
Removes the property change listener in parameter from this controller. |
void |
setMaterials(HomeMaterial[] materials)
Sets the materials displayed by view and fires a PropertyChangeEvent . |
void |
setModel(Content model)
Sets the 3D model which materials are displayed by the 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 |
---|
public ModelMaterialsController(String title, UserPreferences preferences, ViewFactory viewFactory, ContentManager contentManager)
Method Detail |
---|
public View getView()
getView
in interface Controller
public void addPropertyChangeListener(ModelMaterialsController.Property property, PropertyChangeListener listener)
listener
in parameter to this controller.
public void removePropertyChangeListener(ModelMaterialsController.Property property, PropertyChangeListener listener)
listener
in parameter from this controller.
public void setModel(Content model)
PropertyChangeEvent
.
public Content getModel()
public float[][] getModelRotation()
public float getModelWidth()
public float getModelDepth()
public float getModelHeight()
public boolean isBackFaceShown()
true
if the 3D model used to preview materials change should show back face.
public void setMaterials(HomeMaterial[] materials)
PropertyChangeEvent
.
public HomeMaterial[] getMaterials()
public String getDialogTitle()
public TextureChoiceController getTextureController()
|
Sweet Home 3D 4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License |