|
Sweet Home 3D 2.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eteks.sweethome3d.viewcontroller.LabelController
public class LabelController
A MVC controller for label view.
| Nested Class Summary | |
|---|---|
static class |
LabelController.Property
The property that may be edited by the view associated to this controller. |
| Constructor Summary | |
|---|---|
LabelController(Home home,
float x,
float y,
UserPreferences preferences,
ViewFactory viewFactory,
UndoableEditSupport undoSupport)
Creates the controller of label creation with undo support. |
|
LabelController(Home home,
UserPreferences preferences,
ViewFactory viewFactory,
UndoableEditSupport undoSupport)
Creates the controller of label modifications with undo support. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(LabelController.Property property,
PropertyChangeListener listener)
Adds the property change listener in parameter to this controller. |
void |
createLabel()
Controls the creation of a label. |
void |
displayView(View parentView)
Displays the view controlled by this controller. |
String |
getText()
Returns the edited text. |
DialogView |
getView()
Returns the view associated with this controller. |
protected boolean |
isLabelPartOfBasePlan(Label label)
Returns true. |
void |
modifyLabels()
Controls the modification of selected labels. |
void |
removePropertyChangeListener(LabelController.Property property,
PropertyChangeListener listener)
Removes the property change listener in parameter from this controller. |
void |
setText(String text)
Sets the edited text. |
protected void |
updateProperties()
Updates edited properties from selected labels 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 LabelController(Home home,
UserPreferences preferences,
ViewFactory viewFactory,
UndoableEditSupport undoSupport)
public LabelController(Home home,
float x,
float y,
UserPreferences preferences,
ViewFactory viewFactory,
UndoableEditSupport undoSupport)
| Method Detail |
|---|
protected void updateProperties()
public DialogView getView()
getView in interface Controllerpublic void displayView(View parentView)
public void addPropertyChangeListener(LabelController.Property property,
PropertyChangeListener listener)
listener in parameter to this controller.
public void removePropertyChangeListener(LabelController.Property property,
PropertyChangeListener listener)
listener in parameter from this controller.
public void setText(String text)
public String getText()
public void createLabel()
protected boolean isLabelPartOfBasePlan(Label label)
true.
public void modifyLabels()
|
Sweet Home 3D 2.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
![]() |
© Copyrights 2006-2010 eTeks - All rights reserved
Distributed under GNU General Public License |