|
Sweet Home 3D 4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.sweethome3d.viewcontroller.LevelController
public class LevelController
A MVC controller for home levels view.
Nested Class Summary | |
---|---|
static class |
LevelController.Property
The properties that may be edited by the view associated to this controller. |
Constructor Summary | |
---|---|
LevelController(Home home,
UserPreferences preferences,
ViewFactory viewFactory,
UndoableEditSupport undoSupport)
Creates the controller of home levels view with undo support. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(LevelController.Property property,
PropertyChangeListener listener)
Adds the property change listener in parameter to this controller. |
void |
displayView(View parentView)
Displays the view controlled by this controller. |
Float |
getElevation()
Returns the edited elevation. |
Float |
getFloorThickness()
Returns the edited floor thickness. |
Float |
getHeight()
Returns the edited height. |
Level[] |
getLevels()
Returns a copy of home levels. |
String |
getName()
Returns the edited name. |
Integer |
getSelectedLevelIndex()
Returns the selected level index. |
DialogView |
getView()
Returns the view associated with this controller. |
boolean |
isPropertyEditable(LevelController.Property property)
Returns true if the given property is editable. |
void |
modifyLevels()
Controls the modification of selected level in the edited home. |
void |
removePropertyChangeListener(LevelController.Property property,
PropertyChangeListener listener)
Removes the property change listener in parameter from this controller. |
void |
setElevation(Float elevation)
Sets the edited elevation. |
void |
setFloorThickness(Float floorThickness)
Sets the edited floor thickness. |
void |
setHeight(Float height)
Sets the edited height. |
void |
setName(String name)
Sets the edited name. |
protected void |
updateProperties()
Updates edited properties from selected level in the home edited by this controller. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LevelController(Home home, UserPreferences preferences, ViewFactory viewFactory, UndoableEditSupport undoSupport)
Method Detail |
---|
public DialogView getView()
getView
in interface Controller
public void displayView(View parentView)
public void addPropertyChangeListener(LevelController.Property property, PropertyChangeListener listener)
listener
in parameter to this controller.
public void removePropertyChangeListener(LevelController.Property property, PropertyChangeListener listener)
listener
in parameter from this controller.
protected void updateProperties()
public boolean isPropertyEditable(LevelController.Property property)
true
if the given property
is editable.
Depending on whether a property is editable or not, the view associated to this controller
may render it differently.
The implementation of this method always returns true
except
for FLOOR_THICKNESS
if the selected level is the first level
and HEIGHT
if the selected level is the last level.
public void setName(String name)
public String getName()
public void setElevation(Float elevation)
public Float getElevation()
public void setFloorThickness(Float floorThickness)
public Float getFloorThickness()
public void setHeight(Float height)
public Float getHeight()
public Level[] getLevels()
public Integer getSelectedLevelIndex()
public void modifyLevels()
|
Sweet Home 3D 4.1 | |||||||||
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 |