Sweet Home 3D 3.4

com.eteks.sweethome3d.viewcontroller
Class CompassController

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

public class CompassController
extends java.lang.Object
implements Controller

A MVC controller for the compass view.

Author:
Emmanuel Puybaret

Nested Class Summary
static class CompassController.Property
          The properties that may be edited by the view associated to this controller.
 
Constructor Summary
CompassController(Home home, UserPreferences preferences, ViewFactory viewFactory, javax.swing.undo.UndoableEditSupport undoSupport)
           
 
Method Summary
 void addPropertyChangeListener(CompassController.Property property, java.beans.PropertyChangeListener listener)
          Adds the property change listener in parameter to this controller.
 void displayView(View parentView)
          Displays the view controlled by this controller.
 float getDiameter()
          Returns the edited diameter.
 float getLatitudeInDegrees()
          Returns the edited latitude in degrees.
 float getLongitudeInDegrees()
          Returns the edited longitude in degrees.
 float getNorthDirectionInDegrees()
          Returns the edited North direction angle in degrees.
 java.lang.String getTimeZone()
          Returns the edited time zone identifier.
 DialogView getView()
          Returns the view associated with this controller.
 float getX()
          Returns the edited abscissa of the center.
 float getY()
          Returns the edited ordinate of the center.
 boolean isVisible()
          Returns whether compass is visible or not.
 void modifyCompass()
          Modifies home compass from the values stored in this controller.
 void removePropertyChangeListener(CompassController.Property property, java.beans.PropertyChangeListener listener)
          Removes the property change listener in parameter from this controller.
 void setDiameter(float diameter)
          Sets the edited diameter.
 void setLatitudeInDegrees(float latitudeInDegrees)
          Sets the edited latitude in degrees.
 void setLongitudeInDegrees(float longitudeInDegrees)
          Sets the edited longitude of the center.
 void setNorthDirectionInDegrees(float northDirectionInDegrees)
          Sets the edited North direction angle.
 void setTimeZone(java.lang.String timeZone)
          Sets the edited time zone identifier.
 void setVisible(boolean visible)
          Sets whether this compass is visible or not.
 void setX(float x)
          Sets the edited abscissa of the center.
 void setY(float y)
          Sets the edited ordinate of the center.
protected  void updateProperties()
          Updates compass properties edited by this controller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompassController

public CompassController(Home home,
                         UserPreferences preferences,
                         ViewFactory viewFactory,
                         javax.swing.undo.UndoableEditSupport undoSupport)
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(CompassController.Property property,
                                      java.beans.PropertyChangeListener listener)
Adds the property change listener in parameter to this controller.


removePropertyChangeListener

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


updateProperties

protected void updateProperties()
Updates compass properties edited by this controller.


getX

public float getX()
Returns the edited abscissa of the center.


setX

public void setX(float x)
Sets the edited abscissa of the center.


getY

public float getY()
Returns the edited ordinate of the center.


setY

public void setY(float y)
Sets the edited ordinate of the center.


getDiameter

public float getDiameter()
Returns the edited diameter.


setDiameter

public void setDiameter(float diameter)
Sets the edited diameter.


isVisible

public boolean isVisible()
Returns whether compass is visible or not.


setVisible

public void setVisible(boolean visible)
Sets whether this compass is visible or not.


getNorthDirectionInDegrees

public float getNorthDirectionInDegrees()
Returns the edited North direction angle in degrees.


setNorthDirectionInDegrees

public void setNorthDirectionInDegrees(float northDirectionInDegrees)
Sets the edited North direction angle.


getLatitudeInDegrees

public final float getLatitudeInDegrees()
Returns the edited latitude in degrees.


setLatitudeInDegrees

public void setLatitudeInDegrees(float latitudeInDegrees)
Sets the edited latitude in degrees.


getLongitudeInDegrees

public final float getLongitudeInDegrees()
Returns the edited longitude in degrees.


setLongitudeInDegrees

public void setLongitudeInDegrees(float longitudeInDegrees)
Sets the edited longitude of the center.


getTimeZone

public java.lang.String getTimeZone()
Returns the edited time zone identifier.


setTimeZone

public void setTimeZone(java.lang.String timeZone)
Sets the edited time zone identifier.


modifyCompass

public void modifyCompass()
Modifies home compass from the values stored in this controller.


Sweet Home 3D 3.4

? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License