public class CompassController extends java.lang.Object implements Controller
Modifier and Type | Class and Description |
---|---|
static class |
CompassController.Property
The properties that may be edited by the view associated to this controller.
|
Constructor and Description |
---|
CompassController(Home home,
UserPreferences preferences,
ViewFactory viewFactory,
javax.swing.undo.UndoableEditSupport undoSupport) |
Modifier and Type | Method and Description |
---|---|
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.
|
public CompassController(Home home, UserPreferences preferences, ViewFactory viewFactory, javax.swing.undo.UndoableEditSupport undoSupport)
public DialogView getView()
getView
in interface Controller
public void displayView(View parentView)
public void addPropertyChangeListener(CompassController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter to this controller.public void removePropertyChangeListener(CompassController.Property property, java.beans.PropertyChangeListener listener)
listener
in parameter from this controller.protected void updateProperties()
public float getX()
public void setX(float x)
public float getY()
public void setY(float y)
public float getDiameter()
public void setDiameter(float diameter)
public boolean isVisible()
public void setVisible(boolean visible)
public float getNorthDirectionInDegrees()
public void setNorthDirectionInDegrees(float northDirectionInDegrees)
public final float getLatitudeInDegrees()
public void setLatitudeInDegrees(float latitudeInDegrees)
public final float getLongitudeInDegrees()
public void setLongitudeInDegrees(float longitudeInDegrees)
public java.lang.String getTimeZone()
public void setTimeZone(java.lang.String timeZone)
public void modifyCompass()
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License