Sweet Home 3D 4.1

com.eteks.sweethome3d.viewcontroller
Class PageSetupController

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

public class PageSetupController
extends Object
implements Controller

A MVC controller for home page setup view.

Author:
Emmanuel Puybaret

Nested Class Summary
static class PageSetupController.Property
          The property that may be edited by the view associated to this controller.
 
Constructor Summary
PageSetupController(Home home, UserPreferences preferences, ViewFactory viewFactory, UndoableEditSupport undoSupport)
          Creates the controller of page setup with undo support.
 
Method Summary
 void addPropertyChangeListener(PageSetupController.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.
 HomePrint getPrint()
          Returns the edited print attributes.
 DialogView getView()
          Returns the view associated with this controller.
 void modifyPageSetup()
          Controls the modification of home print attributes.
 void removePropertyChangeListener(PageSetupController.Property property, PropertyChangeListener listener)
          Removes the property change listener in parameter from this controller.
 void setPrint(HomePrint print)
          Sets the edited print attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageSetupController

public PageSetupController(Home home,
                           UserPreferences preferences,
                           ViewFactory viewFactory,
                           UndoableEditSupport undoSupport)
Creates the controller of page setup with undo support.

Method Detail

getView

public DialogView getView()
Returns the view associated with this controller.

Specified by:
getView in interface Controller

displayView

public void displayView(View parentView)
Displays the view controlled by this controller.


addPropertyChangeListener

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


removePropertyChangeListener

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


setPrint

public void setPrint(HomePrint print)
Sets the edited print attributes.


getPrint

public HomePrint getPrint()
Returns the edited print attributes.


modifyPageSetup

public void modifyPageSetup()
Controls the modification of home print attributes.


Sweet Home 3D 4.1

© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License